Move translations to a separate package

Makes it easier to find non-language files as necessary
This commit is contained in:
Jikoo
2022-05-15 11:50:34 -04:00
parent a5b21cbbf5
commit 70d8999b48
7 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2011-2021 lishid. All rights reserved. * Copyright (C) 2011-2022 lishid. All rights reserved.
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@@ -56,7 +56,7 @@ public class LanguageManager {
return loaded; return loaded;
} }
InputStream resourceStream = plugin.getResource(locale + ".yml"); InputStream resourceStream = plugin.getResource("locale/" + locale + ".yml");
YamlConfiguration localeConfigDefaults; YamlConfiguration localeConfigDefaults;
if (resourceStream == null) { if (resourceStream == null) {
localeConfigDefaults = new YamlConfiguration(); localeConfigDefaults = new YamlConfiguration();