mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +01:00
We need to reset customLocale when going back to EN
This commit is contained in:
parent
0e6a8afbb7
commit
fa1531f763
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>Jobs</groupId>
|
<groupId>Jobs</groupId>
|
||||||
<artifactId>jobs</artifactId>
|
<artifactId>jobs</artifactId>
|
||||||
<version>4.15.4</version>
|
<version>4.15.8</version>
|
||||||
<name>Jobs</name>
|
<name>Jobs</name>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
|
|
||||||
|
@ -45,9 +45,7 @@ public class Language {
|
|||||||
*/
|
*/
|
||||||
public void reload() {
|
public void reload() {
|
||||||
String ls = Jobs.getGCManager().localeString.toLowerCase();
|
String ls = Jobs.getGCManager().localeString.toLowerCase();
|
||||||
if (!ls.equals("en")) {
|
customlocale = new YmlMaker(plugin, "locale/messages_" + ls + ".yml").getConfig();
|
||||||
customlocale = new YmlMaker(plugin, "locale/messages_" + ls + ".yml").getConfig();
|
|
||||||
}
|
|
||||||
enlocale = new YmlMaker(plugin, "locale/messages_en.yml").getConfig();
|
enlocale = new YmlMaker(plugin, "locale/messages_en.yml").getConfig();
|
||||||
if (customlocale == null)
|
if (customlocale == null)
|
||||||
customlocale = enlocale;
|
customlocale = enlocale;
|
||||||
|
Loading…
Reference in New Issue
Block a user