I18n: improve geometry nodes field tooltips #107257

Merged
Bastien Montagne merged 1 commits from pioverfour/blender:dp_fix_geo_nodes_field_tooltips into main 2023-04-28 21:37:40 +02:00

1 Commits

Author SHA1 Message Date
Damien Picard fc6fc8edb0 I18n: improve geometry nodes field tooltips
buildbot/vexp-code-patch-coordinator Build done. Details
Node socket tooltips suffered from several issues.

- Some could not be translated because they were not properly
  extracted, so extraction macros were added.

- Some were extracted but included newlines at the end which did not
  get translated, such as `ss << TIP_("Geometry:\n")`, changed to
  `ss << TIP_("Geometry:") << "\n"`.

- Some translations were not functional, such as:
  `TIP_(attributes_num == 1 ? " Named Attribute" : " Named Attributes");`
  because `TIP_()` needs to be around a single string.

- Some extraction macros had no effect and were removed, such as:
  `.description(N_(leading_out_description));`
  This is a no-op macro which can be used only around a string literal.
2023-04-25 15:25:35 +02:00