Skip to content

Commit 6632a17

Browse files
Merge pull request #1 from xcwl520/main
Add new translations (Chinese Simplified)
2 parents b2d0842 + 2a6b134 commit 6632a17

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

src/main/java/org/strassburger/serverLinksZ/util/LanguageManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
public class LanguageManager {
1313
private final JavaPlugin plugin = ServerLinksZ.getInstance();
14-
public static final List<String> defaultLangs = List.of("en-US", "de-DE");
14+
public static final List<String> defaultLangs = List.of("en-US", "de-DE", "zh-CN");
1515

1616
private HashMap<String, String> translationMap;
1717
private FileConfiguration langConfig;

src/main/resources/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Set the language to any code found in the "lang" folder (don't add the .yml extension)
2020
# You can add your own language files. Use https://github.com/KartoffelChipss/ServerLinksZ/tree/main/src/main/resources/lang/en-US.yml as a template
21-
# | en-US | de-DE |
21+
# | en-US | de-DE | zh-CN |
2222
lang: "en-US"
2323

2424
# Wether to show hints when using commands
@@ -28,4 +28,4 @@ hints: true
2828
linkCommand: true
2929

3030

31-
# [!!!] You can configure the links in the links.yml file!
31+
# [!!!] You can configure the links in the links.yml file!

src/main/resources/lang/zh-CN.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
prefix: "&7[<gradient:#00BFFF:#007BFF>&lServerLinksZ</gradient>&7]"
2+
help: "\n &8<b>></b> <#00BFFF><b><gradient:#00BFFF:#007BFF>ServerLinksZ</gradient></b></#00BFFF>\n\n&7您可以使用 <u>/sl</u> 命令添加或移除服务器链接, 但建议对links.yml文件进行编辑 ,文件位于 <i>/plugins/ServerLinksZ/links.yml</i> 下.\n\n <click:OPEN_URL:https://strassburger.org/discord><#00BFFF><u><b>Support Discord</b></u></click>\n"
3+
linkCommand: "&7-> <click:OPEN_URL:%url%><hover:show_text:'&7%url%'><u>%name%</u></hover></click> &r&7<-"
4+
rejoinHint: "<#E9D502>⚠ 为了更新服务器链接列表,请您重新进入服务器"
5+
moreConfigOptionsHint: "<#E9D502>⚠ 有关更多配置选项,请参阅config.yml文件!"
6+
invalidUrlError: "&c无效的URL!"
7+
urlProtocolError: "&cURL应该以 'http://' 或 'https://' 开头!"
8+
versionMsg: "&7你现在正使用 <#00BFFF>%version%&7版本"
9+
noPermissionError: "&c你没有权限使用这个!"
10+
addLinkMsg: "&7成功添加id为<#00BFFF>%id%&7服务器链接!"
11+
removeLinkMsg: "&7成功移除id为<#00BFFF>%id%&7服务器链接!"
12+
linkCommandDisabled: "&clink命令是禁用状态!"
13+
linkCcommandNotAllowed: "&c不允许您通过命令访问此链接!"
14+
linkNotFound: "&c未发现id为%id%&c 的链接!"

0 commit comments

Comments
 (0)