I18n: translate missing geometry node attribute tooltips
As remarked by Harley Acheson in !109163, some tooltip lines regarding geometry nodes attributes were not translated. They are basically just bullet points followed by an actual line of text so they may not seem important, but given that list items may not use the same bullet points in all languages*, and other items are already translatable, it makes sense to also translate these ones. * For instance, the bullet point character used in Japanese is the KATAKANA MIDDLE DOT, a monospaced variant. Pull Request: https://projects.blender.org/blender/blender/pulls/109384
This commit is contained in:
@@ -927,7 +927,7 @@ static void create_inspection_string_for_field_info(const bNodeSocket &socket,
|
||||
|
||||
for (const int i : input_tooltips.index_range()) {
|
||||
const blender::StringRef tooltip = input_tooltips[i];
|
||||
ss << "\u2022 " << TIP_(tooltip.data());
|
||||
ss << fmt::format(TIP_("\u2022 {}"), TIP_(tooltip.data()));
|
||||
if (i < input_tooltips.size() - 1) {
|
||||
ss << ".\n";
|
||||
}
|
||||
@@ -1920,7 +1920,7 @@ static char *named_attribute_tooltip(bContext * /*C*/, void *argN, const char *
|
||||
for (const NameWithUsage &attribute : sorted_used_attribute) {
|
||||
const StringRefNull name = attribute.name;
|
||||
const geo_log::NamedAttributeUsage usage = attribute.usage;
|
||||
ss << " \u2022 \"" << name << "\": ";
|
||||
ss << fmt::format(TIP_(" \u2022 \"{}\": "), std::string_view(name));
|
||||
Vector<std::string> usages;
|
||||
if ((usage & geo_log::NamedAttributeUsage::Read) != geo_log::NamedAttributeUsage::None) {
|
||||
usages.append(TIP_("read"));
|
||||
|
||||
Reference in New Issue
Block a user