Blender Git Loki

Git Commits -> Revision 43f4f80

Revision 43f4f80 by Bastien Montagne (master)
February 13, 2013, 11:52 (GMT)
Fix physics' name not translated in main physics panel (reported on bf-translations ML).

This also revealed another bug, as you could not explicitely set default context to text_ctxt UI func parameter (None is not accpeted by RNA string props), so I had to change default context from py POV to "*" instead of None.

Anyway, that physics UI translation remains weak, as the trick used here (helper func) prevents message extractor script to directly find them. Currently it works because specified labels are also defined elsewhere, but it would be nice to have some kind of "translation markers" in py code too (similar to our N_/CTX_N_ C macros, unfortunately python does not have preprocessing ;) )...

Commit Details:

Full Hash: 43f4f807d986f0c50a336d73b10ebcb243b142a8
SVN Revision: 54527
Parent Commit: 4061f96
Lines Changed: +24, -21

4 Modified Paths:

/release/scripts/startup/bl_ui/properties_physics_common.py (+6, -4) (Diff)
/source/blender/blenfont/BLF_translation.h (+8, -3) (Diff)
/source/blender/blenfont/intern/blf_translation.c (+3, -3) (Diff)
/source/blender/python/intern/bpy_app_translations.c (+7, -11) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021