Skip to content

Commit

Permalink
Add Simplified Chinese localization translation (#30)
Browse files Browse the repository at this point in the history
Translations may contain inaccuracies as not all features have been
tested. When I was testing, I found that some places did not seem to
provide translatable characters. Please fix it.

In order to comply with Chinese word order, some characters/symbols may
be added or removed, so this is not a translation error.
  • Loading branch information
guobao2333 authored Dec 22, 2024
1 parent 01101d6 commit 91ddc20
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packTemplate/texts/languages.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[
"en_US"
"en_US",
"zh_CN"
]
7 changes: 7 additions & 0 deletions packTemplate/texts/zh_CN.lang
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pack.name={PACK_NAME}
pack.description=§u★全息打印§r 资源包生成于 §o{PACK_GENERATION_TIME}§r\n开发者: §l§6SuperLlama88888§r{AUTHORS_SECTION}{DESCRIPTION_SECTION}{CONTROLS_SECTION}\n\n§l总方块数: {TOTAL_MATERIAL_COUNT}\n§r{MATERIAL_LIST} ## ★ at the start forces unicode font which makes it smaller so more text fits in
pack.description.authors=\n结构作者: {STRUCTURE_AUTHORS[ and ]} ## Authors/Description/Controls will be substituted into the actual description by the JS
pack.description.description=\n{DESCRIPTION}
pack.description.controls=\n\n§l控制:§r{CONTROLS}

holoprint.material_list.heading={PACK_NAME} 的材料清单
3 changes: 2 additions & 1 deletion translations/languages.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"en": "English"
"en": "English",
"zh_CN": "简体中文"
}
60 changes: 60 additions & 0 deletions translations/zh_CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"app_name": "全息打印",
"change_language": "更换语言",
"generate": "生成资源包",
"generate_heading": "生成投影资源包(`*.mcpack`)",
"item_criteria_input.item_name": "物品名称",
"item_criteria_input.item_tag": "物品标签",
"item_criteria_input.matching": "匹配:",
"item_criteria_input.nothing": "暂无",
"metadata.description": "描述:",
"metadata.description.placeholder": "这是我超酷炫的房子!",
"metadata.heading": "元数据",
"metadata.pack_icon": "包图标(`*.png`):",
"metadata.pack_name": "包名:",
"metadata.reset": "元数据已重置!",
"metadata.structure_author": "结构作者:",
"metadata.structure_author.placeholder": "guobao2333",
"player_controls.toggle_rendering": "切换渲染",
"player_controls.change_opacity": "改变不透明度",
"player_controls.toggle_validating": "切换验证",
"player_controls.change_layer": "改变层数",
"player_controls.decrease_layer": "减少层数",
"player_controls.move_hologram": "移动投影",
"player_controls.change_structure": "改变结构",
"player_controls.disable_player_controls": "禁用玩家控制",
"reset": "重置",
"resource_packs.clear_cache": "清除资源包缓存",
"resource_packs.heading": "资源包",
"resource_packs.reset": "资源包已重置!",
"resource_packs.upload_local": "上传本地资源包:",
"settings.advanced": "高级",
"settings.heading": "设置",
"settings.hologram_scale": "投影比例:",
"settings.ignored_blocks": "忽略的方块:",
"settings.ignored_blocks.placeholder": "方块_1 方块_2 等",
"settings.layer_mode": "图层模式:",
"settings.layer_mode.all_below": "下方所有层",
"settings.layer_mode.single": "单层",
"settings.material_list_language": "材料清单的语言:",
"settings.opacity": "投影不透明度:",
"settings.opacity_mode": "不透明度模式:",
"settings.opacity_mode.fixed_opacity": "固定数值",
"settings.opacity_mode.in_game_controls": "游戏内控制",
"settings.player_controls": "游戏内控制",
"settings.reset": "设置已重置!",
"settings.spawn_animation": "生成动画:",
"settings.textures": "纹理",
"settings.textures.outline_alpha_comparison_mode": "纹理轮廓 Alpha 比较模式:",
"settings.textures.outline_alpha_comparison_mode.difference": "不同之处",
"settings.textures.outline_alpha_comparison_mode.threshold": "阈值",
"settings.textures.outline_alpha_threshold": "纹理轮廓 Alpha 阈值:",
"settings.textures.outline_color": "纹理轮廓颜色:",
"settings.textures.outline_width": "纹理轮廓宽度:",
"settings.textures.outline_width.no_outline": "",
"terms_of_use_notice": "通过使用[HoloPrint](https://github.com/SuperLlama88888/holoprint)生成包,即表示您同意[使用条款](https://github.com/SuperLlama88888/holoprint/blob/main/TERMS_OF_USE.md)。(真的很短!)",
"upload": "上传结构文件(`*.mcstructure`)",
"upload.button": "上传文件",
"upload.button.drop_notice": "或者将文件拖放到此处",
"upload.drop_file": "将您的结构文件放在此处"
}

0 comments on commit 91ddc20

Please sign in to comment.