Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraculixxT committed Dec 8, 2024
2 parents ef92ad7 + 9774041 commit 0d7e8bc
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ If you have issues with entering colors, please use a generator instead of tryin

## Localization
Change the language of BMarker via ``/bmarker langauge <key>``<br>
Currently english (en_US) and german (de_DE) is provided from installation.

Currently english (en_US), german (de_DE), chinese (zh_CN), and japanese (ja_JP) are provided from installation.
You can create your own translation by coping an existing language file (``<config-folder>/langauge/<key>.yml``),
renaming it to your target langauge code and editing all values inside.
You are responsible for updating it on BMarker updates, missing keys will be displayed as just the key in red.
Expand Down
82 changes: 82 additions & 0 deletions data/language/zh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#----------------------- Translation ------------------------#
# Content of all messages in BlueMap-Marker. #
#------------------------------------------------------------#
# Some messages support MiniMessage styling (marked with #m) #
# and extra variables (marked with #v). #
# Syntax: <input-i> -> #
# i is a number from 0 to the message max #
#------------------------------------------------------------#

creator: colorcard
version: 1.0.0

#-----------------------------------------#
# Common Translations #
# Translation keys that persist in every #
# project for simple values #
#-----------------------------------------#
common:
cancel: "取消"
build: "生成"
or: ""
notSet: "未设置"
use: "使用"

#-----------------------------------------#
# Command Responses #
# Translation keys that fires on command #
# executions and help #
#-----------------------------------------#
command:
alreadyStarted: "<red>您已开始一个标记设置!" #m
alreadyStarted2: "<red> 请先完成或取消它再创建一个新标记" #m (取消或生成 ...)
notValidMarker: "<red>这不是一个有效的标记!(<input-1>)" #m #v1
notValidSet: "<red>无效的标记集 ID 或地图名称!(<input-1> - <input-2>)" #m #v2
mustProvideID: "<red>请提供一个标记 ID!" #m
mustProvideIDSet: "<red>请提供一个标记集 ID 和目标世界!" #m
mustAlphanumeric: "<red>ID 必须为字母数字组合(仅包含字母和数字)" #m
switchLang: "<green>语言已切换至 <u>en_US</u>!" #m
switchLangFailed: "<red>您提供的语言不存在!" #m
createMarker: "<gray>标记 <input-1> 设置已开始!请使用 " #m #v1 (通过 <command> ...)
createMarker2: "<gray> 并通过以下操作完成设置 " #m (<command> ... <command>)
createdMarker: "<green>标记已创建!几秒钟后将在您的 BlueMap 上显示" #m
createdSet: "<green>标记集已创建!您可以在此标记集中添加新标记 "
deleteMarker: "<gray>成功删除 <color:#6e94ff><input-1></color> 标记!几秒钟后将在您的 BlueMap 上消失" #m #v1
deleteSet: "<gray>成功删除 <color:#6e94ff><input-1></color> 标记集!几秒钟后将在您的 BlueMap 上消失" #m #v1
confirmDelete: "<red>您确定要删除地图 '<input-2>' 上的标记集 '<input-1>' 吗?请通过输入以下内容确认 " #m #v2
idAlreadyExist: "<red>ID <u><input-1></u> 已存在于该集合/世界中!" #m #v1
canceledSetup: "<grey>取消了当前标记 <input-1> 设置!" #m #v1
notValidPlayer: "<red>无法找到指定的玩家!" #m
changedVisibility: "<grey><color:#6e94ff><input-1></color> 现在在 BlueMap 上为 <input-2>" #m #v2
setNotFound: "<red>无法找到 ID 为 <u><input-1></u> 的标记集! (/<input-2> set-create)" #m #v1
mapNotFound: "<red>无法找到名称为 <u><input-1></u> 的地图!" #m #v1
missingImportant: "<red>缺少一个或多个重要值!请填写所有红色标记的值" #m
selectMap: "<gray>选择一个 BlueMap 地图:" #m
selectSet: "<gray>选择一个标记集:" #m
noSets: "<red>地图 <input-1> 中没有标记集! (/<input-2> set-create)" #m #v1
notYourSet: "<red>您不是该标记集的所有者!" #m
notYourMarker: "<red>您不是该标记的所有者!" #m
maxMarkers: "<red>您已达到此集合中标记的最大数量!(<input-1>)" #m #v1
maxSets: "<red>您已达到此地图中标记集的最大数量!(<input-1>)" #m #v1
notTeleportMarker: "<red>此标记未设置为可传送!" #m
teleportMarker: "<green>传送到标记 <u><input-1></u>!" #m #v1
settings:
current: "<gray>当前值:<color:#6e94ff><input-1></color>" #m #v1
changed: "<gray>值已更改为:<color:#6e94ff><input-1></color>" #m #v1
template:
help: "<gray>模板是一种强大的工具,可以更快速或自动化地创建标记。初次设置可能会稍显复杂,欢迎随时 <click:open_url:'https://discord.gg/zmkyJa3'><u>向我寻求帮助</u></click> :)\n\n- 模板有自己的自定义命令 <blue>(/id)</blue>\n- 模板需要自己的集合 <blue>(/id edit set)</blue>\n- 可以包含多个“模板”标记 <blue>(/id edit marker)</blue>\n- 可以通过特定事件自动化 <blue>(/id edit automate)</blue>"
help-marker: "<gray>模板标记和普通标记相似,但它们不会直接出现在地图上。可通过单一命令 <blue>(/id mark <marker-id>)</blue> 放置在地图上。\n\n- 标记会复制目标位置\n- 标签和详情支持占位符 <blue>(%NAME%)</blue>"
create: "<green>模板已创建!使用 <u>/<input-1> edit <...></u> 添加新模板标记、规则等内容" #m #v1
delete: "<red>模板 <input-1> 及其所有关联标记和集合已删除!" #m #v1
setArg: "<green>应用了新值 <color:#6e94ff><input-1></color>" #m #v1
addTemplateMarker: "<green>已将模板标记 <input-1> 添加到模板!您现在可以快速放置或自动化它。\n" #m #v1
removeMarkerTemplate: "<gray>已移除模板 <color:#6e94ff><input-1></color> 及所有与其关联的标记。" #m #v1
updateMarker: "<green>更新了模板标记 <input-1> 及所有关联标记!" #m #v1
noValidTemplate: "<red><input-1> 不是此集合中的有效模板!" #m #v1
invalidWorld: "<red>该集合在当前世界中不可用!" #m
place: "<green>新标记 <input-1> 已放置!" #m #v1
unplace: "<red>已移除您的标记 <input-1>!" #m #v1
mapAlreadyAdded: "<red>地图 <input-1> 已添加到模板!" #m #v1
mapNotAdded: "<red>地图 <input-1> 未添加到模板!" #m #v1
addMap: "<green>将地图 <input-1> 添加到模板!<gray>(此操作未克隆现有标记)" #m #v1
confirmRemoval: "<grey>您确定要 <red>删除</red> 此模板集合吗?这将 <red>删除其中的所有标记!</red>\n\n请通过 <red><u><input-1> 确认</u></red>"

0 comments on commit 0d7e8bc

Please sign in to comment.