Blender Git Loki

Git Commits -> Revision d0f4a23

Revision d0f4a23 by Bastien Montagne (master)
February 10, 2013, 10:29 (GMT)
Actually, UI scripts should not use directly pgettext, but rather the iface or tooltip variants. Added those to bpy.app.translations, and used pgettext_iface.

(Did not add those when I created that module, because I did not thought we would actually need them in usual UI code, but turned out I was wrong).

Also made some optimizations in those py gettext funcs, when i18n is disabled at build time, no need to do pyobject -> cstring -> pyobject conversions!.

Commit Details:

Full Hash: d0f4a2396b38c122b7e56de83532515ae8fa4381
SVN Revision: 54428
Parent Commit: 3b8a0f3
Lines Changed: +106, -57

11 Modified Paths:

/release/scripts/startup/bl_ui/properties_data_modifier.py (+2, -3) (Diff)
/release/scripts/startup/bl_ui/properties_material.py (+2, -3) (Diff)
/release/scripts/startup/bl_ui/properties_particle.py (+2, -3) (Diff)
/release/scripts/startup/bl_ui/properties_physics_fluid.py (+2, -3) (Diff)
/release/scripts/startup/bl_ui/space_clip.py (+5, -4) (Diff)
/release/scripts/startup/bl_ui/space_image.py (+2, -3) (Diff)
/release/scripts/startup/bl_ui/space_sequencer.py (+10, -9) (Diff)
/release/scripts/startup/bl_ui/space_text.py (+3, -4) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+2, -3) (Diff)
/release/scripts/startup/bl_ui/space_userpref_keymap.py (+2, -3) (Diff)
/source/blender/python/intern/bpy_app_translations.c (+74, -19) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021