diff --git a/core/src/main/java/co/aikar/commands/CommandManager.java b/core/src/main/java/co/aikar/commands/CommandManager.java index 12de42a7..220a5b19 100644 --- a/core/src/main/java/co/aikar/commands/CommandManager.java +++ b/core/src/main/java/co/aikar/commands/CommandManager.java @@ -76,7 +76,7 @@ public abstract class CommandManager< protected boolean usePerIssuerLocale = false; protected List> localeChangedCallbacks = new ArrayList<>(); - protected Set supportedLanguages = new HashSet<>(Arrays.asList(Locales.ENGLISH, Locales.DUTCH, Locales.GERMAN, Locales.SPANISH, Locales.FRENCH, Locales.CZECH, Locales.PORTUGUESE, Locales.SWEDISH, Locales.NORWEGIAN_BOKMAAL, Locales.NORWEGIAN_NYNORSK, Locales.RUSSIAN, Locales.BULGARIAN, Locales.HUNGARIAN, Locales.TURKISH, Locales.JAPANESE)); + protected Set supportedLanguages = new HashSet<>(Arrays.asList(Locales.ENGLISH, Locales.DUTCH, Locales.GERMAN, Locales.SPANISH, Locales.FRENCH, Locales.CZECH, Locales.PORTUGUESE, Locales.SWEDISH, Locales.NORWEGIAN_BOKMAAL, Locales.NORWEGIAN_NYNORSK, Locales.RUSSIAN, Locales.BULGARIAN, Locales.HUNGARIAN, Locales.TURKISH, Locales.JAPANESE, Locales.SIMPLIFIED_CHINESE, Locales.TRADITIONAL_CHINESE)); protected Map formatters = new IdentityHashMap<>(); protected MF defaultFormatter; protected int defaultHelpPerPage = 10; diff --git a/languages/core/acf-core_zh_CN.properties b/languages/core/acf-core_zh_CN.properties new file mode 100644 index 00000000..538c4c93 --- /dev/null +++ b/languages/core/acf-core_zh_CN.properties @@ -0,0 +1,47 @@ +# +# Copyright (c) 2016-2021 Daniel Ennis (Aikar) - MIT License +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +acf-core.permission_denied=很抱歉,你没有执行此命令的权限。 +acf-core.permission_denied_parameter=很抱歉,你没有执行此命令的权限。 +acf-core.error_generic_logged=很抱歉,插件产生了内部错误。问题已输出在游戏日志中。 +acf-core.unknown_command=您输入了未知的指令,输入 /help 获得指令帮助。 +acf-core.invalid_syntax=指令用法:{command} {syntax} +acf-core.error_prefix=错误:{message} +acf-core.error_performing_command=很抱歉,指令执行中出现了错误。 +acf-core.info_message={message} +acf-core.please_specify_one_of=错误:请输入 {valid} 中的某一个。 +acf-core.must_be_a_number=错误:{num} 必须是数字。 +acf-core.must_be_min_length=错误:至少需要输入 {min} 个字符。 +acf-core.must_be_max_length=错误:最多需要输入 {max} 个字符。 +acf-core.please_specify_at_most=错误:请输入一个不大于 {max} 的值。 +acf-core.please_specify_at_least=错误:请输入一个不小于 {min} 的值。 +acf-core.not_allowed_on_console=错误:控制台不能执行此命令。 +acf-core.could_not_find_player=错误:找不到名叫 {search} 的玩家。 +acf-core.no_command_matched_search=没有找到匹配 {search} 的指令。 +acf-core.help_page_information=- 页面 {page} / {totalpages} (共计 {results} 个结果)。 +acf-core.help_no_results=错误:没有更多的搜索结果。 +acf-core.help_header==== 关于指令 {commandprefix}{command} 的使用说明 === +acf-core.help_format={command} {parameters} {separator} {description} +acf-core.help_detailed_header==== 显示指令 {commandprefix}{command} 的详细使用说明 === +acf-core.help_detailed_command_format={command} {parameters} {separator} {description} +acf-core.help_detailed_parameter_format={syntaxorname}: {description} +acf-core.help_search_header==== 指令 {commandprefix}{command} {search} 的搜索结果 === \ No newline at end of file diff --git a/languages/core/acf-core_zh_TW.properties b/languages/core/acf-core_zh_TW.properties new file mode 100644 index 00000000..d8aa225a --- /dev/null +++ b/languages/core/acf-core_zh_TW.properties @@ -0,0 +1,47 @@ +# +# Copyright (c) 2016-2021 Daniel Ennis (Aikar) - MIT License +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +acf-core.permission_denied=很抱歉,您沒有權限執行此指令。 +acf-core.permission_denied_parameter=很抱歉,您沒有權限執行此指令。 +acf-core.error_generic_logged=插件發生錯誤,相關問題已記錄在遊戲日誌中,造成不便敬請見諒。 +acf-core.unknown_command=未知的指令,輸入 /help 取得指令說明。 +acf-core.invalid_syntax=指令用法:{command} {syntax} +acf-core.error_prefix=錯誤:{message} +acf-core.error_performing_command=很抱歉,執行指令時發生錯誤。 +acf-core.info_message={message} +acf-core.please_specify_one_of=錯誤:請輸入 {valid} 其中之一 +acf-core.must_be_a_number=錯誤:{num} 必須為數字。 +acf-core.must_be_min_length=錯誤:至少需要輸入 {min} 個字元。 +acf-core.must_be_max_length=錯誤:最多需要輸入 {max} 個字元。 +acf-core.please_specify_at_most=錯誤:請輸入一個最多為 {max} 的數值。 +acf-core.please_specify_at_least=錯誤:請輸入一個至少為 {min} 的數值。 +acf-core.not_allowed_on_console=錯誤:無法在控制台執行此指令。 +acf-core.could_not_find_player=錯誤:找不到名稱為 {search} 的玩家。 +acf-core.no_command_matched_search=沒有找到符合 {search} 的指令。 +acf-core.help_page_information=- 頁面 {page} / {totalpages} (共 {results} 個結果)。 +acf-core.help_no_results=錯誤:找不到符合搜尋的結果。 +acf-core.help_header==== 關於指令 {commandprefix}{command} 的使用說明 === +acf-core.help_format={command} {parameters} {separator} {description} +acf-core.help_detailed_header==== 顯示指令 {commandprefix}{command} 的詳細使用說明 === +acf-core.help_detailed_command_format={command} {parameters} {separator} {description} +acf-core.help_detailed_parameter_format={syntaxorname}: {description} +acf-core.help_search_header==== 指令 {commandprefix}{command} {search} 的搜尋結果 === \ No newline at end of file diff --git a/languages/minecraft/acf-minecraft_zh_CN.properties b/languages/minecraft/acf-minecraft_zh_CN.properties new file mode 100644 index 00000000..6f4a9da9 --- /dev/null +++ b/languages/minecraft/acf-minecraft_zh_CN.properties @@ -0,0 +1,38 @@ +# +# Copyright (c) 2016-2021 Daniel Ennis (Aikar) - MIT License +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + +acf-minecraft.invalid_world = 错误:该世界不存在。 +acf-minecraft.you_must_be_holding_item = 错误:你的主手上必须持有物品。 +acf-minecraft.player_is_vanished_confirm = \ + 警告:{vanished} 已被隐藏。不要暴露他们的身份!\n\ + 如果你确认这么做,请在他们的名字后面加上 :confirm 。\n\ + 例如:{vanished}:confirm +acf-minecraft.username_too_short = 错误:名字太短,请至少输入三个字符。 +acf-minecraft.is_not_a_valid_name = 错误:{name} 不是一个可以用的名字。 +acf-minecraft.multiple_players_match = 错误:{search} 的搜索结果过多(共计{all}人),请再详细一点。 +acf-minecraft.no_player_found_server = 没有搜索到匹配 {search} 的在线玩家。 +acf-minecraft.no_player_found_offline = 没有搜索到匹配 {search} 的在线/离线玩家。 +acf-minecraft.no_player_found = 没有搜索到匹配 {search} 的玩家。 +acf-minecraft.location_please_specify_world = 错误:请指明世界。例如:world:x,y,z。 +acf-minecraft.location_please_specify_xyz = 错误:请指明坐标x,y和z。例如:world:x,y,z。 +acf-minecraft.location_console_not_relative = 错误:控制台不能使用相对坐标来指明位置。 \ No newline at end of file diff --git a/languages/minecraft/acf-minecraft_zh_TW.properties b/languages/minecraft/acf-minecraft_zh_TW.properties new file mode 100644 index 00000000..d10659de --- /dev/null +++ b/languages/minecraft/acf-minecraft_zh_TW.properties @@ -0,0 +1,37 @@ +# +# Copyright (c) 2016-2021 Daniel Ennis (Aikar) - MIT License +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +acf-minecraft.invalid_world=錯誤:找不到指定的世界。 +acf-minecraft.you_must_be_holding_item=錯誤:您的慣用手上必須持有物品。 +acf-minecraft.player_is_vanished_confirm=\ + 警告:{vanished} 已被隱身。請不要揭穿他們的身份!\n\ + 請在名稱後面加上 :confirm 來確認您的操作。\n\ + 例如:{vanished}:confirm +acf-minecraft.username_too_short=錯誤:名稱太短,請至少輸入三個字元。 +acf-minecraft.is_not_a_valid_name=錯誤:{name} 名稱無效。 +acf-minecraft.multiple_players_match=錯誤:名稱為 {search} 的玩家不止一位(共 {all} 位),請提供更多細節。 +acf-minecraft.no_player_found_server=沒有搜尋到名稱為 {search} 的線上玩家。 +acf-minecraft.no_player_found_offline=沒有搜尋到名稱為 {search} 的線上/離線玩家。 +acf-minecraft.no_player_found=沒有搜尋到名稱為 {search} 的玩家。 +acf-minecraft.location_please_specify_world=錯誤:請指定世界。例如:world:x,y,z。 +acf-minecraft.location_please_specify_xyz=錯誤:請指定坐標 x,y 和 z 。例如:world:x,y,z。 +acf-minecraft.location_console_not_relative=錯誤:控制台不能使用相對坐標來指定位置。 \ No newline at end of file