Skip to content

Commit

Permalink
Merge pull request #15509 from LarryFrosty/what-do-i-put-here
Browse files Browse the repository at this point in the history
Add missing `TRANSLATIONS_ALLOWED` check
  • Loading branch information
ShadowMario authored Sep 15, 2024
2 parents 0c727a8 + 82b7664 commit c2b6cdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/backend/Language.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c2b6cdc

Please sign in to comment.