Skip to content

Instantly share code, notes, and snippets.

@perky
Created December 30, 2012 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perky/4413421 to your computer and use it in GitHub Desktop.
Save perky/4413421 to your computer and use it in GitHub Desktop.
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