mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-16 18:45:11 +00:00
Refactoring resource locations to reference CommonProxy.DOMAIN.
Adding the Mysterious Magnet.
This commit is contained in:
1 parent
58c56623af
commit
608656be73
26 files changed
+302
-86
No files matched your search
@@ -38,4 +38,14 @@ public class LocalizationManager
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public static String getLocalizedString(String key, Object ...objects)
|
||||
{
|
||||
String result = LanguageRegistry.instance().getStringLocalization(key);
|
||||
if (result.isEmpty())
|
||||
{
|
||||
result = LanguageRegistry.instance().getStringLocalization(key, "en_US");
|
||||
}
|
||||
return String.format(result, objects);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user