diff --git a/source/backend/Language.hx b/source/backend/Language.hx index f23e9906328..02f03ffd226 100644 --- a/source/backend/Language.hx +++ b/source/backend/Language.hx @@ -77,8 +77,10 @@ class Language // More optimized for file loading inline public static function getFileTranslation(key:String) { + #if TRANSLATIONS_ALLOWED var str:String = phrases.get(key.trim().toLowerCase()); if(str != null) key = str; + #end return key; }