[Bf-blender-cvs] [c3d8fa1301f] master: UI: Always check if IME Supported After Changing Language

Harley Acheson noreply at git.blender.org
Wed Apr 22 20:28:23 CEST 2020


Commit: c3d8fa1301f7bc0785f82453b9d9760dc4447670
Author: Harley Acheson
Date:   Wed Apr 22 11:27:29 2020 -0700
Branches: master
https://developer.blender.org/rBc3d8fa1301f7bc0785f82453b9d9760dc4447670

UI: Always check if IME Supported After Changing Language

Changing from IME-enabled language to English did not turn off IME.

Differential Revision: https://developer.blender.org/D7486

Reviewed by Campbell Barton

===================================================================

M	source/blender/blentranslation/intern/blt_lang.c

===================================================================

diff --git a/source/blender/blentranslation/intern/blt_lang.c b/source/blender/blentranslation/intern/blt_lang.c
index a533d29b188..bcbffe56636 100644
--- a/source/blender/blentranslation/intern/blt_lang.c
+++ b/source/blender/blentranslation/intern/blt_lang.c
@@ -265,10 +265,6 @@ void BLT_lang_set(const char *str)
   const char *short_locale = str ? str : LOCALE(ulang);
   const char *short_locale_utf8 = NULL;
 
-  if (U.language == ULANGUAGE_ENGLISH) {
-    return;
-  }
-
   /* We want to avoid locales like '.UTF-8'! */
   if (short_locale[0]) {
     /* Hurrey! encoding needs to be placed *before* variant! */



More information about the Bf-blender-cvs mailing list