Blender Git Loki
Git Commits -> Revision 2caa507
Revision 2caa507 by Bastien Montagne (master) March 16, 2012, 15:39 (GMT) |
i18n stuff: adds translation_context to RNA structs (used for there ui name), and a first default "Operator" one for all operators' label. The fact is, operators' label are nearly always verbs, while properties labels are nearly always nouns. So this should already solve many translations' problems regarding noun/verb confusion. This commit also simplifies a bit i18n usage: *Now IFACE_ and TIP_ macros (or there context versions, CTX_IFACE_/TIP_) are used nearly everywhere (with one exception, where code is a bit complex and needs to manually test whether ui/tip translations is allowed, so no need to redo it later through those macros). *Also, those macros are now defined to NOP in case WITH_INTERNATIONAL is false, which avoid testing that define everywhere in code! |
Commit Details:
Full Hash: 2caa507b7eaa7d55a0be7bda513f08ecfe4791f1
SVN Revision: 44924
Parent Commit: 4e6669c
Lines Changed: +87, -44
12 Modified Paths:
/source/blender/blenfont/BLF_translation.h (+15, -5) (Diff)
/source/blender/blenfont/intern/blf_translation.c (+14, -6) (Diff)
/source/blender/editors/interface/interface.c (+6, -5) (Diff)
/source/blender/editors/interface/interface_layout.c (+4, -1) (Diff)
/source/blender/makesrna/intern/makesrna.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_access.c (+5, -18) (Diff)
/source/blender/makesrna/intern/rna_define.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+16, -1) (Diff)
/source/blender/makesrna/RNA_define.h (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+14, -8) (Diff)
/source/blender/windowmanager/WM_types.h (+2, -0) (Diff)
/source/blender/blenfont/intern/blf_translation.c (+14, -6) (Diff)
/source/blender/editors/interface/interface.c (+6, -5) (Diff)
/source/blender/editors/interface/interface_layout.c (+4, -1) (Diff)
/source/blender/makesrna/intern/makesrna.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_access.c (+5, -18) (Diff)
/source/blender/makesrna/intern/rna_define.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+16, -1) (Diff)
/source/blender/makesrna/RNA_define.h (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+14, -8) (Diff)
/source/blender/windowmanager/WM_types.h (+2, -0) (Diff)