mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 06:48:50 +02:00
Fixed locales not being in the jar #561
This commit is contained in:
parent
c67d57e5e9
commit
01431cf4aa
@ -19,6 +19,7 @@
|
|||||||
<include>**/*.html</include>
|
<include>**/*.html</include>
|
||||||
<include>**/*.js</include>
|
<include>**/*.js</include>
|
||||||
<include>**/*.css</include>
|
<include>**/*.css</include>
|
||||||
|
<include>locale/*.txt</include>
|
||||||
</includes>
|
</includes>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>licence.yml</exclude>
|
<exclude>licence.yml</exclude>
|
||||||
|
@ -148,6 +148,7 @@
|
|||||||
<include>**/*.html</include>
|
<include>**/*.html</include>
|
||||||
<include>**/*.js</include>
|
<include>**/*.js</include>
|
||||||
<include>**/*.css</include>
|
<include>**/*.css</include>
|
||||||
|
<include>locale/*.txt</include>
|
||||||
</includes>
|
</includes>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>licence.yml</exclude>
|
<exclude>licence.yml</exclude>
|
||||||
|
@ -71,7 +71,7 @@ public class Locale {
|
|||||||
} else if (locale.equals("DEFAULT")) {
|
} else if (locale.equals("DEFAULT")) {
|
||||||
Log.info("Using Locale: Default (EN)");
|
Log.info("Using Locale: Default (EN)");
|
||||||
} else {
|
} else {
|
||||||
loadFromResource("locale_" + locale + ".txt");
|
loadFromResource("locale/locale_" + locale + ".txt");
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.toLog(this.getClass(), e);
|
Log.toLog(this.getClass(), e);
|
||||||
|
Loading…
Reference in New Issue
Block a user