From 82c86af7f7b37e940748e99efe3b19fd5b92d6ca Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 9 Feb 2013 18:26:40 +0000 Subject: Bunch of fixes for py ui messages (all those using 'formating' were not translated previously, now they use bpy.app.translations.pgettext). Also pleas avoid complex py statements in 'text' values (like 'text="foo" if cond else "bar"'), thes make message extraction script fails! And another "final point in UI message" removal! --- release/scripts/startup/bl_ui/properties_physics_fluid.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'release/scripts/startup/bl_ui/properties_physics_fluid.py') diff --git a/release/scripts/startup/bl_ui/properties_physics_fluid.py b/release/scripts/startup/bl_ui/properties_physics_fluid.py index 08278c02693..c03b5323105 100644 --- a/release/scripts/startup/bl_ui/properties_physics_fluid.py +++ b/release/scripts/startup/bl_ui/properties_physics_fluid.py @@ -64,7 +64,9 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, Panel): if fluid.type == 'DOMAIN': # odd formatting here so translation script can extract string - layout.operator("fluid.bake", text="Bake (Req. Memory:" + " %s)" % fluid.memory_estimate, icon='MOD_FLUIDSIM') + pgettext = bpy.app.translations.pgettext + layout.operator("fluid.bake", text=pgettext("Bake (Req. Memory: %s)") % fluid.memory_estimate, + translate=False, icon='MOD_FLUIDSIM') split = layout.split() col = split.column() -- cgit v1.2.3