Blender Git Loki
Git Commits -> Revision d39c6fd
Revision d39c6fd by Bastien Montagne (master) March 19, 2013, 19:37 (GMT) |
Various cleanup around default i18n context. Issue is that the real default context is NULL, however, in python and RNA, this value can't be used easily. So we use a specific string instead ("*"), defined as BLF_I18NCONTEXT_DEFAULT_BPYRNA. From now on, all bpy/rna code should only use the BLF_I18NCONTEXT_DEFAULT_BPYRNA value, while all "usual" C code should use the BLF_I18NCONTEXT_DEFAULT value (BLF_pgettext is still able to "understand" both, anyway). Also added BLF_is_default_context helper func, so that we can keep that check in a single place! Finally, we should no need anymore to understand the void string "" as default context too - two values for a same thing are more than enough! |
Commit Details:
Full Hash: d39c6fdf2d7efbb3560038184f43f6bf882c5049
SVN Revision: 55424
Parent Commit: 5c48eb3
Lines Changed: +40, -25
8 Modified Paths:
/source/blender/blenfont/BLF_translation.h (+4, -3) (Diff)
/source/blender/blenfont/intern/blf_translation.c (+10, -3) (Diff)
/source/blender/editors/interface/interface.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_access.c (+2, -3) (Diff)
/source/blender/makesrna/intern/rna_define.c (+5, -2) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+9, -4) (Diff)
/source/blender/python/intern/bpy_app_translations.c (+3, -3) (Diff)
/source/blender/blenfont/intern/blf_translation.c (+10, -3) (Diff)
/source/blender/editors/interface/interface.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_access.c (+2, -3) (Diff)
/source/blender/makesrna/intern/rna_define.c (+5, -2) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_ui.c (+9, -4) (Diff)
/source/blender/python/intern/bpy_app_translations.c (+3, -3) (Diff)