Created
December 30, 2012 15:49
-
-
Save perky/4413421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String getLocalString(String key) { | |
LanguageRegistry lr = LanguageRegistry.instance(); | |
String localString = lr.getStringLocalization(key); | |
if(localString.equals("")) { | |
localString = lr.getStringLocalization(key, "en_GB"); | |
} | |
return localString; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment