Skip to content

Commit 2016011

Browse files
committed
fix translation file
1 parent 0e20f8e commit 2016011

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@
212212
<pattern>net.kyori.</pattern>
213213
<shadedPattern>org.maxgamer.quickshop.shade.org.net.kyori.</shadedPattern>
214214
</relocation>
215+
<relocation>
216+
<pattern>com.squareup.</pattern>
217+
<shadedPattern>org.maxgamer.quickshop.shade.org.com.squareup.</shadedPattern>
218+
</relocation>
219+
215220

216221

217222
<!-- <relocation>-->
@@ -883,12 +888,14 @@
883888
<groupId>commons-codec</groupId>
884889
<artifactId>commons-codec</artifactId>
885890
<version>1.15</version>
891+
<scope>compile</scope>
886892
</dependency>
887893
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-nop -->
888894
<dependency>
889895
<groupId>org.slf4j</groupId>
890896
<artifactId>slf4j-nop</artifactId>
891897
<version>1.7.32</version>
898+
<scope>compile</scope>
892899
</dependency>
893900
<!-- <dependency>-->
894901
<!-- <groupId>com.github.simplix-softworks</groupId>-->

src/main/java/org/maxgamer/quickshop/util/language/text/TextManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ public void load() {
5252
try (InputStream stream = plugin.getResource("lang-original/messages.json")) {
5353
if (stream != null)
5454
bundledLang.loadFromString(new String(Util.inputStream2ByteArray(stream), StandardCharsets.UTF_8));
55-
} catch (IOException | InvalidConfigurationException ignored) {
55+
} catch (IOException | InvalidConfigurationException ex) {
5656
bundledLang = new JsonConfiguration();
57+
plugin.getLogger().log(Level.SEVERE,"Cannot load bundled language file from Jar, some strings may missing!",ex);
5758
}
5859
distribution.getAvailableLanguages().parallelStream().forEach(availableLanguage -> {
5960
try {

src/main/resources/lang-original/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
"command-type-mismatch": "&cThis command only can executed by &b{0}.",
326326
"unlimited-shop-owner-changed": "&eThis unlimited shop owner has been changed to {0}.",
327327
"unlimited-shop-owner-keeped": "&eAttention: The shop owner still is unlimited shop owner, you need re-set new shop owner by yourself.",
328-
"server-crash-warning": "&cServer may crash after execute /qs reload command if you replace/delete QuickShop plugin Jar file while server running."
328+
"server-crash-warning": "&cServer may crash after execute /qs reload command if you replace/delete QuickShop plugin Jar file while server running.",
329329
"reloading-status": {
330330
"success": "&aReload completed without any errors.",
331331
"require-restart": "&aReload completed. &e(Some changes require server restart to affect)",

0 commit comments

Comments
 (0)