Blender Git Loki

Git Commits -> Revision 8a99dc2

Revision 8a99dc2 by Bastien Montagne (master)
April 10, 2015, 13:34 (GMT)
BLF translation: fix BLF_lang_get(), add UI-agnostic BLF_translate/_do helpers.

BLF_lang_get() shall return 'default' Blender locale (en_US) when translations
are completely disabled!

Also, add BLF_translate() and BLF_translate_do() to allow translating some strings
outside of label/tip context, but still only when i18n global flag is enabled.

Commit Details:

Full Hash: 8a99dc232469a987ca2631b3ab5dd8e0da948054
Parent Commit: a36c43f
Lines Changed: +34, -5

3 Modified Paths:

/source/blender/blenfont/BLF_translation.h (+2, -0) (Diff)
/source/blender/blenfont/intern/blf_lang.c (+8, -5) (Diff)
/source/blender/blenfont/intern/blf_translation.c (+24, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021