[Bf-blender-cvs] [7a05ebf84b3] master: Fix T86405: Always translate when in `en_US` locale too.
Bastien Montagne
noreply at git.blender.org
Mon Mar 22 11:50:20 CET 2021
Commit: 7a05ebf84b35cb9af0f6618db489204f2adc3c60
Author: Bastien Montagne
Date: Mon Mar 22 11:48:31 2021 +0100
Branches: master
https://developer.blender.org/rB7a05ebf84b35cb9af0f6618db489204f2adc3c60
Fix T86405: Always translate when in `en_US` locale too.
The impact of translations on UI performances is neglectable, and this
gives better handling of some odd cases where original language of an
add-on is not English.
===================================================================
M source/blender/blentranslation/intern/blt_translation.c
===================================================================
diff --git a/source/blender/blentranslation/intern/blt_translation.c b/source/blender/blentranslation/intern/blt_translation.c
index 00118bc72e6..b5c0addfdfa 100644
--- a/source/blender/blentranslation/intern/blt_translation.c
+++ b/source/blender/blentranslation/intern/blt_translation.c
@@ -81,7 +81,7 @@ const char *BLT_pgettext(const char *msgctxt, const char *msgid)
bool BLT_translate(void)
{
#ifdef WITH_INTERNATIONAL
- return BLI_thread_is_main() && (U.language != ULANGUAGE_ENGLISH);
+ return BLI_thread_is_main();
#else
return false;
#endif
More information about the Bf-blender-cvs
mailing list