Skip to content

Commit

Permalink
doc: 更新翻译指南
Browse files Browse the repository at this point in the history
  • Loading branch information
XeroAlpha committed Jun 4, 2024
1 parent 623cb79 commit 81c6a34
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 28 deletions.
33 changes: 14 additions & 19 deletions output/lang_parity/beta/difference.json
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@
]
},
"javaLookup": {
"": [
"新闻": [
"known_server_link.news"
]
}
Expand Down Expand Up @@ -766,24 +766,6 @@
]
}
},
{
"source": "Feedback",
"bedrockLookup": {
"反馈": [
"hbui.InboxRoute.feedback",
"hbui.InboxRoute.feedbackMainButton",
"options.group.feedback"
]
},
"javaLookup": {
"": [
"known_server_link.feedback"
],
"反馈": [
"menu.feedback.title"
]
}
},
{
"source": "Blocked",
"bedrockLookup": {
Expand Down Expand Up @@ -962,6 +944,19 @@
]
}
},
{
"source": "By submitting this report, you confirm that the information you have provided is accurate and complete to the best of your knowledge.",
"bedrockLookup": {
"提交此报告即确认所提供的信息据你所知是准确和完整的。": [
"hbui.RealmsStories.ReportFeedItem.reportPanel.description"
]
},
"javaLookup": {
"": [
"gui.abuseReport.attestation"
]
}
},
{
"source": "Drugs or alcohol",
"bedrockLookup": {
Expand Down
20 changes: 18 additions & 2 deletions translation/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# 翻译指南

您可以修改本目录下的 JSON 文件来修改或添加翻译。
您可以修改本目录下的 JSON 文件来修改或添加翻译。目前仅接受修正已有的翻译以及新增客观类或部分客观类翻译。如果您希望增加主观类翻译,或者只想反馈问题,请[加群](https://projectxero.top/qqgroup/cabeta)

> 客观类翻译是指方块、物品等通过某种规则能够被唯一确定的翻译。主观类翻译是指需要根据数据或现象进行概括的翻译,例如粒子发射器、动画。由于目前暂未确定大部分主观类翻译的规则,因此暂不接受新增主观类翻译(除非您愿意在 Pull Request 中同时说明主观类翻译所使用的规则)。
**请尽量引用 [标准译名表](https://zh.minecraft.wiki/w/Minecraft_Wiki:%E8%AF%91%E5%90%8D%E6%A0%87%E5%87%86%E5%8C%96)[基岩版开发Wiki标准译名表](https://wiki.mcbe-dev.net/p/Minecraft%E5%9F%BA%E5%B2%A9%E7%89%88%E5%BC%80%E5%8F%91Wiki:%E8%AF%91%E5%90%8D%E6%A0%87%E5%87%86%E5%8C%96) 中的对应译名。**

欢迎通过 [MCBEID 表](#通过-mcbeid-表参与翻译) 或者 [Fork & Pull Request](https://docs.github.com/zh/pull-requests/collaborating-with-pull-requests/getting-started/about-collaborative-development-models) 参与此项目!

> [!TIP]
> 在 Fork 仓库中,GitHub Actions 会默认开启,用于在每次 Push 时构建对应的网页版本。如果您不需要,请 [禁用工作流](https://docs.github.com/zh/actions/using-workflows/disabling-and-enabling-a-workflow)
|`translation/*.json`|内容|
| - | - |
|glossary|术语表|
Expand Down Expand Up @@ -39,6 +46,15 @@
|lang_parity|译名修正表|
|documentation|文档翻译|

## 通过 MCBEID表 参与翻译

1. 打开 [MCBEID表](https://ca.projectxero.top/idlist/)
2. 在主菜单中启用“编辑模式”。
3. 查找希望修改的条目,点击进入详情页面后进行编辑。编辑完成后点击保存。
4. 在主菜单中点击“导出编辑数据”。
5. [创建 Issue](https://github.com/XeroAlpha/caidlist/issues/new),说明对翻译修改的部分,并附上导出的“编辑数据.json”。
6. 如果不会第 5 步,请[加群](https://projectxero.top/qqgroup/cabeta)并将编辑数据私聊发送给群主。

## 流程

ID 表生成工具在生成时会尝试依次从以下途径加载翻译:用户自定义译名表、标准译名表、基岩版语言文件。
Expand Down Expand Up @@ -120,7 +136,7 @@ ID 表生成工具在生成时会尝试依次从以下途径加载翻译:用

|ID|译名|
|---|---|
|stonecutter|*切石机*旧版|
|stonecutter|*切石机*MATTIS|

物品:

Expand Down
6 changes: 3 additions & 3 deletions translation/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@
"stonebrick.1": "ST: mossy stone bricks", // 苔石砖
"stonebrick.2": "ST: cracked stone bricks", // 裂纹石砖
"stonebrick.3": "ST: chiseled stone bricks", // 雕纹石砖
"stonecutter": "{{stonecutter_block}}(MATTIS)", // 切石机(MATTIS)
"stonecutter": "{{ST!stonecutter mattis}}(MATTIS)", // 切石机(MATTIS)
"stonecutter_block": "ST: stonecutter", // 切石机
"stripped_acacia_log": "ST: stripped acacia log", // 去皮金合欢原木
"stripped_birch_log": "ST: stripped birch log", // 去皮白桦原木
Expand Down Expand Up @@ -1258,8 +1258,8 @@
"hard_light_blue_stained_glass_pane": "ST: hardened light blue stained glass pane", // 淡蓝色强化玻璃板
"hard_light_gray_stained_glass": "ST: hardened light gray stained glass", // 淡灰色强化玻璃
"hard_light_gray_stained_glass_pane": "ST: hardened light gray stained glass pane", // 淡灰色强化玻璃板
"hard_lime_stained_glass": "ST: hardened lime stained glass", // 青绿色强化玻璃
"hard_lime_stained_glass_pane": "ST: hardened lime stained glass pane", // 青绿色强化玻璃板
"hard_lime_stained_glass": "ST: hardened lime stained glass", // 黄绿色强化玻璃
"hard_lime_stained_glass_pane": "ST: hardened lime stained glass pane", // 黄绿色强化玻璃板
"hard_magenta_stained_glass": "ST: hardened magenta stained glass", // 品红色强化玻璃
"hard_magenta_stained_glass_pane": "ST: hardened magenta stained glass pane", // 品红色强化玻璃板
"hard_orange_stained_glass": "ST: hardened orange stained glass", // 橙色强化玻璃
Expand Down
15 changes: 13 additions & 2 deletions version/common/java/lang.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"__VERSION__": "1.21-pre1",
"__VERSION__": "1.21-pre2",
"__VERSION_TYPE__": "snapshot",
"__VERSION_TIME__": "2024-05-29T12:04:43+00:00",
"__VERSION_TIME__": "2024-05-31T12:44:56+00:00",
"zh_cn": {
"accessibility.onboarding.accessibility.button": "辅助功能设置…",
"accessibility.onboarding.screen.narrator": "按下Enter键启用复述功能",
Expand Down Expand Up @@ -4676,7 +4676,16 @@
"key.swapOffhand": "与副手交换物品",
"key.togglePerspective": "切换视角",
"key.use": "使用物品/放置方块",
"known_server_link.announcements": "公告",
"known_server_link.community": "社区",
"known_server_link.community_guidelines": "社区方针",
"known_server_link.feedback": "反馈",
"known_server_link.forums": "论坛",
"known_server_link.news": "新闻",
"known_server_link.report_bug": "报告服务器漏洞",
"known_server_link.status": "状态",
"known_server_link.support": "支持",
"known_server_link.website": "网站",
"lanServer.otherPlayers": "对其他玩家的设置",
"lanServer.port": "端口号",
"lanServer.port.invalid": "端口无效。\n请将编辑框留空,或输入一个介于1024和65535之间的数字。",
Expand Down Expand Up @@ -10495,6 +10504,7 @@
"generator.minecraft.single_biome_surface": "Single Biome",
"generator.single_biome_caves": "Caves",
"generator.single_biome_floating_islands": "Floating Islands",
"gui.abuseReport.attestation": "By submitting this report, you confirm that the information you have provided is accurate and complete to the best of your knowledge.",
"gui.abuseReport.comments": "Comments",
"gui.abuseReport.describe": "Sharing details will help us make a well-informed decision.",
"gui.abuseReport.discard.content": "If you leave, you'll lose this report and your comments.\nAre you sure you want to leave?",
Expand Down Expand Up @@ -10548,6 +10558,7 @@
"gui.abuseReport.send.http_error": "An unexpected HTTP error occurred while sending your report.",
"gui.abuseReport.send.json_error": "Encountered malformed payload while sending your report.",
"gui.abuseReport.send.no_reason": "Please select a report category",
"gui.abuseReport.send.not_attested": "Please read the text above and tick the checkbox to be able to send the report",
"gui.abuseReport.send.service_unavailable": "Unable to reach the Abuse Reporting service. Please make sure you are connected to the internet and try again.",
"gui.abuseReport.sending.title": "Sending your report...",
"gui.abuseReport.sent.title": "Report sent",
Expand Down
4 changes: 2 additions & 2 deletions version/common/wiki/standardized_translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2863,8 +2863,8 @@
"hardened light blue stained glass pane": "淡蓝色强化玻璃板",
"hardened light gray stained glass": "淡灰色强化玻璃",
"hardened light gray stained glass pane": "淡灰色强化玻璃板",
"hardened lime stained glass": "青绿色强化玻璃",
"hardened lime stained glass pane": "青绿色强化玻璃板",
"hardened lime stained glass": "黄绿色强化玻璃",
"hardened lime stained glass pane": "黄绿色强化玻璃板",
"hardened magenta stained glass": "品红色强化玻璃",
"hardened magenta stained glass pane": "品红色强化玻璃板",
"hardened orange stained glass": "橙色强化玻璃",
Expand Down

0 comments on commit 81c6a34

Please sign in to comment.