mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-07 13:03:06 +00:00
potential fix for translations
This commit is contained in:
parent
e508ac5462
commit
02aa156987
2 changed files with 3 additions and 7 deletions
|
@ -495,12 +495,8 @@ public enum C {
|
|||
}
|
||||
|
||||
public static void setupTranslations() {
|
||||
if (manager == null) {
|
||||
manager = new TranslationManager();
|
||||
}
|
||||
if (defaultFile == null) {
|
||||
defaultFile = new YamlTranslationFile(BukkitTranslation.getParent(PlotMain.getMain()), lang, "PlotSquared", manager).read();
|
||||
}
|
||||
manager = new TranslationManager();
|
||||
defaultFile = new YamlTranslationFile(BukkitTranslation.getParent(PlotMain.getMain()), lang, "PlotSquared", manager).read();
|
||||
// register everything in this class
|
||||
for (final C c : values()) {
|
||||
manager.addTranslationObject(new TranslationObject(c.toString(), c.d, "", ""));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue