Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2012-02-17 22:04:49 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-02-17 22:04:49 +0400
commit99d0ba6299d9f2acdf2446b2f52e812877ebcc70 (patch)
treecf51ca026a45e721f348017a3bf8f95ae3e24714 /source/blender
parentca4ef8aa263a356a0e900ba81af4ff7e4207ddb9 (diff)
Use BLF API to check whether translation is enabled, when possible!
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_access.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 5339ee58acf..0df8a625caf 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -475,7 +475,7 @@ static const char *rna_ensure_property_description(PropertyRNA *prop)
}
#ifdef WITH_INTERNATIONAL
- if(description && (U.transopts&USER_DOTRANSLATE) && (U.transopts&USER_TR_TOOLTIPS))
+ if(description && BLF_translate_tooltips())
description= BLF_gettext(description);
#endif
@@ -492,7 +492,7 @@ static const char *rna_ensure_property_name(PropertyRNA *prop)
name= ((IDProperty*)prop)->name;
#ifdef WITH_INTERNATIONAL
- if((U.transopts&USER_DOTRANSLATE) && (U.transopts&USER_TR_IFACE)) {
+ if(BLF_translate_iface()) {
if(prop->translation_context)
name = BLF_pgettext(prop->translation_context, name);
else
@@ -1182,7 +1182,7 @@ void RNA_property_enum_items_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA
RNA_property_enum_items(C, ptr, prop, item, totitem, free);
#ifdef WITH_INTERNATIONAL
- if((U.transopts&USER_DOTRANSLATE) && (U.transopts&USER_TR_IFACE)) {
+ if(BLF_translate_iface()) {
int i;
EnumPropertyItem *nitem;