Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_userpref.py
| Show First 20 Lines • Show All 1,885 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| box = col.box() | box = col.box() | ||||
| row = box.row() | row = box.row() | ||||
| row.label(text="Multiple add-ons with the same name found!") | row.label(text="Multiple add-ons with the same name found!") | ||||
| row.label(icon='ERROR') | row.label(icon='ERROR') | ||||
| box.label(text="Delete one of each pair to resolve:") | box.label(text="Delete one of each pair to resolve:") | ||||
| for (addon_name, addon_file, addon_path) in addon_utils.error_duplicates: | for (addon_name, addon_file, addon_path) in addon_utils.error_duplicates: | ||||
| box.separator() | box.separator() | ||||
| sub_col = box.column(align=True) | sub_col = box.column(align=True) | ||||
| sub_col.label(text=addon_name + ":") | sub_col.label(text=addon_name + ":") | ||||
mont29: This is not something we want to do.
I know that in French you are supposed to add an… | |||||
Done Inline ActionsHa ha okay, too bad for my compulsive typesetting ;) pioverfour: Ha ha okay, too bad for my compulsive typesetting ;) | |||||
| sub_col.label(text=" " + addon_file) | sub_col.label(text=" " + addon_file) | ||||
| sub_col.label(text=" " + addon_path) | sub_col.label(text=" " + addon_path) | ||||
| if addon_utils.error_encoding: | if addon_utils.error_encoding: | ||||
| self.draw_error( | self.draw_error( | ||||
| col, | col, | ||||
| "One or more addons do not have UTF-8 encoding\n" | "One or more addons do not have UTF-8 encoding\n" | ||||
| "(see console for details)", | "(see console for details)", | ||||
| ▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| self.draw_light_list(layout, lights) | self.draw_light_list(layout, lights) | ||||
| def draw_light_list(self, layout, lights): | def draw_light_list(self, layout, lights): | ||||
| if lights: | if lights: | ||||
| flow = layout.grid_flow(row_major=False, columns=4, even_columns=True, even_rows=True, align=False) | flow = layout.grid_flow(row_major=False, columns=4, even_columns=True, even_rows=True, align=False) | ||||
| for studio_light in lights: | for studio_light in lights: | ||||
| self.draw_studio_light(flow, studio_light) | self.draw_studio_light(flow, studio_light) | ||||
| else: | else: | ||||
| layout.label(text="No custom %s configured" % self.bl_label) | layout.label(text=iface_("No custom %s configured") % self.bl_label) | ||||
Not Done Inline ActionsThat one should not be needed? the string is already in the PO files at least. mont29: That one should not be needed? the string is already in the PO files at least. | |||||
Done Inline Actionspioverfour: I thought so too, but probably because of the format string it’s not translated right now…… | |||||
Not Done Inline ActionsOOOohhh yes indeed, you are right! mont29: OOOohhh yes indeed, you are right! | |||||
| def draw_studio_light(self, layout, studio_light): | def draw_studio_light(self, layout, studio_light): | ||||
| box = layout.box() | box = layout.box() | ||||
| row = box.row() | row = box.row() | ||||
| row.template_icon(layout.icon(studio_light), scale=3.0) | row.template_icon(layout.icon(studio_light), scale=3.0) | ||||
| col = row.column() | col = row.column() | ||||
| op = col.operator("preferences.studiolight_uninstall", text="", icon='REMOVE') | op = col.operator("preferences.studiolight_uninstall", text="", icon='REMOVE') | ||||
| ▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines | |||||

This is not something we want to do.
I know that in French you are supposed to add an unbreakable space in front of the colon, but we cannot start translating a single character, for many reasons (performances, way too generic translation, unexpected side effects, etc.).
So I think French UI translation will have to live with some non-spaced colons for the time being. ;)