Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_userpref.py
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| row.operator( | row.operator( | ||||
| "preferences.addon_disable" if is_enabled else "preferences.addon_enable", | "preferences.addon_disable" if is_enabled else "preferences.addon_enable", | ||||
| icon='CHECKBOX_HLT' if is_enabled else 'CHECKBOX_DEHLT', text="", | icon='CHECKBOX_HLT' if is_enabled else 'CHECKBOX_DEHLT', text="", | ||||
| emboss=False, | emboss=False, | ||||
| ).module = module_name | ).module = module_name | ||||
| sub = row.row() | sub = row.row() | ||||
| sub.active = is_enabled | sub.active = is_enabled | ||||
| sub.label(text="%s: %s" % (info["category"], info["name"])) | sub.label(text=iface_("%s: %s") % (iface_(info["category"]), iface_(info["name"]))) | ||||
| if info["warning"]: | if info["warning"]: | ||||
| sub.label(icon='ERROR') | sub.label(icon='ERROR') | ||||
mont29: not sure there is much point in translating that one? | |||||
Done Inline ActionsAre you talking about the whole line, or just the "%s: %s" bit? If the whole line, then I believe most add-ons need to have their name translated, except if they have an original / fancy / brand name. And the category is already translated in the Enum, so it makes sense to translate it here as well. But maybe as a tip_, though, not sure… If the %s bit, it’s not strictly needed but it was already extracted here and in several other places anyway. It allows changing the punctuation, which is more correct (and pleasing) in French and possibly other languages (well, that’s dubious but who knows!). pioverfour: Are you talking about the whole line, or just the `"%s: %s"` bit?
If the whole line, then I… | |||||
Not Done Inline ActionsWas talking about the "%s: %s" part yes, but fair enough. mont29: Was talking about the `"%s: %s"` part yes, but fair enough. | |||||
| # icon showing support level. | # icon showing support level. | ||||
| sub.label(icon=self._support_icon_mapping.get(info["support"], 'QUESTION')) | sub.label(icon=self._support_icon_mapping.get(info["support"], 'QUESTION')) | ||||
| # Expanded UI (only if additional info is available) | # Expanded UI (only if additional info is available) | ||||
| if info["show_expanded"]: | if info["show_expanded"]: | ||||
| if info["description"]: | if info["description"]: | ||||
| split = colsub.row().split(factor=0.15) | split = colsub.row().split(factor=0.15) | ||||
| ▲ Show 20 Lines • Show All 463 Lines • Show Last 20 Lines | |||||
not sure there is much point in translating that one?