Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Jan 26, 2024
2 parents a474d40 + 1aac863 commit d76c749
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/extract_font.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Generate font subset (I.Ming)

on:
schedule:
- cron: "0 16 * * 0"
- cron: "0 17 * * 3"

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Pylint](https://github.com/SkyEye-FAST/minecraft_translation_flask/actions/workflows/pylint.yml/badge.svg)](https://github.com/SkyEye-FAST/minecraft_translation_flask/actions/workflows/pylint.yml) [![Update language files](https://github.com/SkyEye-FAST/minecraft_translation_flask/actions/workflows/update.yml/badge.svg)](https://github.com/SkyEye-FAST/minecraft_translation_flask/actions/workflows/update.yml) [![Generate font subset (I.Ming)](https://github.com/SkyEye-FAST/minecraft_translation_flask/actions/workflows/extract_font.yml/badge.svg)](https://github.com/SkyEye-FAST/minecraft_translation_flask/actions/workflows/extract_font.yml)

注:**此项目仍在开发中,网页样式仍需完善,尤其是移动端适配的问题。**
注:**⚠️此项目仍在开发中,网页样式仍需完善,尤其是移动端适配的问题。**

可查询Minecraft中文标准译名的简易网页,后端框架使用Flask。

Expand All @@ -22,7 +22,7 @@ pip install flask -U

### 语言文件

本仓库会在每天00:00(UTC+8,即UTC 16:00)自动检查语言文件更新。使用脚本为[`update.py`](/update.py),需要安装库`requests`
本仓库会在每天🕛00:00(UTC+8,即🕓UTC 16:00)自动检查语言文件更新。使用脚本为[`update.py`](/update.py),需要安装库`requests`

如果希望使用其他版本的Java版语言文件,请使用[SkyEye-FAST/minecraft_translation](https://github.com/SkyEye-FAST/minecraft_translation)获取。

Expand All @@ -34,7 +34,7 @@ pip install flask -U

本项目使用思源宋体和[一点明体](https://github.com/ichitenfont/I.Ming)的自动构建子集。

本仓库会在每周日00:00(UTC+8,即UTC 16:00)自动检查一点明体的子集是否需要根据文言更新。
本仓库会在每周四🕐01:00(UTC+8,即UTC每周三🕔17:00)自动检查一点明体的子集是否需要根据文言更新。

使用脚本为[`extract_font.py`](/extract_font.py),需要安装库`fonttools`

Expand Down
15 changes: 13 additions & 2 deletions lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -2719,6 +2719,9 @@
"commands.title.show.title.single": "Showing new title for %s",
"commands.title.times.multiple": "Changed title display times for %s players",
"commands.title.times.single": "Changed title display times for %s",
"commands.transfer.error.no_players": "Must specify at least one player to transfer",
"commands.transfer.success.multiple": "Transferring %s players to %s:%s",
"commands.transfer.success.single": "Transferring %s to %s:%s",
"commands.trigger.add.success": "Triggered %s (added %s to value)",
"commands.trigger.failed.invalid": "You can only trigger objectives that are 'trigger' type",
"commands.trigger.failed.unprimed": "You cannot trigger this objective yet",
Expand Down Expand Up @@ -4811,6 +4814,7 @@
"mco.upload.close.failure": "Could not close your realm, please try again later",
"mco.upload.done": "Upload done",
"mco.upload.entry.cheats": "%1$s, %2$s",
"mco.upload.entry.commands": "%1$s, %2$s",
"mco.upload.entry.id": "%1$s (%2$s)",
"mco.upload.failed": "Upload failed! (%s)",
"mco.upload.hardcore": "Hardcore worlds can't be uploaded!",
Expand Down Expand Up @@ -5005,8 +5009,12 @@
"optimizeWorld.progress.percentage": "%s%%",
"optimizeWorld.stage.counting": "Counting chunks...",
"optimizeWorld.stage.failed": "Failed! :(",
"optimizeWorld.stage.finished": "Finishing up...",
"optimizeWorld.stage.upgrading": "Upgrading all chunks...",
"optimizeWorld.stage.finished.chunks": "Finishing up upgrading chunks...",
"optimizeWorld.stage.finished.entities": "Finishing up upgrading entities...",
"optimizeWorld.stage.finished.poi": "Finishing up upgrading points of interest...",
"optimizeWorld.stage.upgrading.chunks": "Upgrading all chunks...",
"optimizeWorld.stage.upgrading.entities": "Upgrading all entities...",
"optimizeWorld.stage.upgrading.poi": "Upgrading all points of interest...",
"optimizeWorld.title": "Optimizing World '%s'",
"options.accessibility": "Accessibility Settings...",
"options.accessibility.high_contrast": "High Contrast",
Expand Down Expand Up @@ -5386,6 +5394,7 @@
"selectWorld.access_failure": "Failed to access world",
"selectWorld.allowCommands": "Allow Cheats",
"selectWorld.allowCommands.info": "Commands like /gamemode, /experience",
"selectWorld.allowCommands.new": "Allow Commands",
"selectWorld.backupEraseCache": "Erase Cached Data",
"selectWorld.backupJoinConfirmButton": "Create Backup and Load",
"selectWorld.backupJoinSkipButton": "I know what I'm doing!",
Expand All @@ -5399,6 +5408,7 @@
"selectWorld.backupWarning.snapshot": "This world was last played in version %s; you are on version %s. Please make a backup in case you experience world corruptions.",
"selectWorld.bonusItems": "Bonus Chest",
"selectWorld.cheats": "Cheats",
"selectWorld.commands": "Commands",
"selectWorld.conversion": "Must be converted!",
"selectWorld.conversion.tooltip": "This world must be opened in an older version (like 1.6.4) to be safely converted",
"selectWorld.create": "Create New World",
Expand Down Expand Up @@ -5798,6 +5808,7 @@
"subtitles.entity.armadillo.death": "Armadillo dies",
"subtitles.entity.armadillo.eat": "Armadillo eats",
"subtitles.entity.armadillo.hurt": "Armadillo hurts",
"subtitles.entity.armadillo.hurt_reduced": "Armadillo shields itself",
"subtitles.entity.armadillo.land": "Armadillo lands",
"subtitles.entity.armadillo.roll": "Armadillo rolls up",
"subtitles.entity.armadillo.scute_drop": "Armadillo sheds scute",
Expand Down
16 changes: 8 additions & 8 deletions lang/lzh.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
"argument.scoreHolder.empty": "無相應之持分者",
"argument.scoreboardDisplaySlot.invalid": "未知之顯域:%s",
"argument.style.invalid": "無效之式:%s",
"argument.time.invalid_tick_count": "刻數須爲非負",
"argument.time.invalid_tick_count": "刻數不可爲負",
"argument.time.invalid_unit": "無效單位",
"argument.time.tick_count_too_low": "刻計不可逾%s之下界,%s逾之",
"argument.uuid.invalid": "無效UUID",
Expand Down Expand Up @@ -2619,7 +2619,7 @@
"commands.setblock.failed": "不可置塊",
"commands.setblock.success": "既更塊之於%s, %s, %s者",
"commands.setidletimeout.success": "戲者縵限今爲%s分",
"commands.setworldspawn.failure.not_overworld": "仅可設生界生處于主界",
"commands.setworldspawn.failure.not_overworld": "僅可設界生點於主界",
"commands.setworldspawn.success": "界生點既爲 %s, %s, %s [%s]",
"commands.spawnpoint.success.multiple": "已設%6$s戲者%5$s之生處於%1$s, %2$s, %3$s [%4$s]",
"commands.spawnpoint.success.single": "已設%6$s%5$s之生處於%1$s, %2$s, %3$s [%4$s]",
Expand Down Expand Up @@ -2764,7 +2764,7 @@
"connect.connecting": "方連伺服器",
"connect.encrypting": "方加密...",
"connect.failed": "伺服器連線未果",
"connect.failed.transfer": "轉移至伺服器時連線失敗",
"connect.failed.transfer": "轉至伺服器聯線未成",
"connect.joining": "方入生界...",
"connect.negotiating": "方商其連...",
"connect.reconfiging": "方復置...",
Expand Down Expand Up @@ -3106,7 +3106,7 @@
"disconnect.quitting": "方去",
"disconnect.spam": "因濫言而爲逐",
"disconnect.timeout": "連接逾時也",
"disconnect.transfer": "已轉移至另一個伺服器",
"disconnect.transfer": "既轉至別伺服器",
"disconnect.unknownHost": "未知之域",
"download.pack.failed": "%s之%s囊下傳未成",
"download.pack.progress.bytes": "程:%s(廣狹未明)",
Expand Down Expand Up @@ -3489,9 +3489,9 @@
"gamerule.snowAccumulationHeight": "雪厚幾何",
"gamerule.snowAccumulationHeight.description": "雪至厚之窮。",
"gamerule.spawnChunkRadius": "生處區塊之徑",
"gamerule.spawnChunkRadius.description": "圍主界生界生處之恆載區塊數",
"gamerule.spawnChunkRadius.description": "主界生處四裏恆載區塊之數",
"gamerule.spawnRadius": "復生地之徑",
"gamerule.spawnRadius.description": "控宜戲者生之生處圍域之廣",
"gamerule.spawnRadius.description": "控戲者宜生處之廣狹",
"gamerule.spectatorsGenerateChunks": "許觀者生地",
"gamerule.tntExplosionDropDecay": "炸藥爆者,塊或不遺其貨焉",
"gamerule.tntExplosionDropDecay.description": "炸藥之爆也,致有遺失。",
Expand Down Expand Up @@ -4901,7 +4901,7 @@
"multiplayer.disconnect.server_shutdown": "伺服器既閉",
"multiplayer.disconnect.slow_login": "入逾時",
"multiplayer.disconnect.too_many_pending_chats": "未証之論議多矣",
"multiplayer.disconnect.transfers_disabled": "伺服器不纳轉移",
"multiplayer.disconnect.transfers_disabled": "伺服器不受轉移",
"multiplayer.disconnect.unexpected_query_response": "客端所送自定錄,非所期也",
"multiplayer.disconnect.unsigned_chat": "受署名有闕或有舛之議囊也。",
"multiplayer.disconnect.unverified_username": "君之名姓,弗能查驗!",
Expand Down Expand Up @@ -5792,7 +5792,7 @@
"subtitles.entity.allay.item_taken": "悅靈釋然",
"subtitles.entity.allay.item_thrown": "悅靈擲",
"subtitles.entity.armadillo.ambient": "犰狳鳴",
"subtitles.entity.armadillo.brush": "犰狳刷毛聲",
"subtitles.entity.armadillo.brush": "拭鱗",
"subtitles.entity.armadillo.death": "犰狳斃",
"subtitles.entity.armadillo.eat": "犰狳食",
"subtitles.entity.armadillo.hurt": "犰狳傷",
Expand Down
4 changes: 2 additions & 2 deletions lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2696,14 +2696,14 @@
"commands.tick.rate.success": "已设置目标速率为每秒%s刻",
"commands.tick.sprint.report": "游戏加速已完成,速率为每秒%s刻,即每刻%s毫秒",
"commands.tick.sprint.stop.fail": "没有正在执行的游戏刻加速",
"commands.tick.sprint.stop.success": "游戏刻加速已中止",
"commands.tick.sprint.stop.success": "当前游戏刻加速已中止",
"commands.tick.status.frozen": "游戏冻结中",
"commands.tick.status.lagging": "游戏正在运行,但无法达到目标速率",
"commands.tick.status.running": "游戏正在以正常速度运行",
"commands.tick.status.sprinting": "游戏加速运行中",
"commands.tick.step.fail": "无法步进游戏,请先冻结游戏",
"commands.tick.step.stop.fail": "没有正在执行的游戏刻步进",
"commands.tick.step.stop.success": "游戏刻步进已中止",
"commands.tick.step.stop.success": "当前游戏刻步进已中止",
"commands.tick.step.success": "正在步进%s刻",
"commands.time.query": "当前时间为%s",
"commands.time.set": "已将时间设为%s",
Expand Down
36 changes: 18 additions & 18 deletions lang/zh_hk.json
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
"argument.style.invalid": "無效樣式:%s",
"argument.time.invalid_tick_count": "刻數不可為負數",
"argument.time.invalid_unit": "無效單位",
"argument.time.tick_count_too_low": "刻不得少於 %s,但發現 %s",
"argument.time.tick_count_too_low": "刻數不得少於 %s,但發現 %s",
"argument.uuid.invalid": "無效 UUID",
"arguments.block.tag.unknown": "未知方塊標籤 '%s'",
"arguments.function.tag.unknown": "未知函數標籤 '%s'",
Expand Down Expand Up @@ -404,8 +404,8 @@
"attribute.name.generic.scale": "大小",
"attribute.name.generic.step_height": "最大行走高度",
"attribute.name.horse.jump_strength": "馬跳躍能力",
"attribute.name.player.block_interaction_range": "Block Interaction Range",
"attribute.name.player.entity_interaction_range": "Entity Interaction Range",
"attribute.name.player.block_interaction_range": "方塊互動距離",
"attribute.name.player.entity_interaction_range": "實體互動距離",
"attribute.name.zombie.spawn_reinforcements": "喪屍增援隊",
"biome.minecraft.badlands": "惡地",
"biome.minecraft.bamboo_jungle": "竹林",
Expand Down Expand Up @@ -2619,7 +2619,7 @@
"commands.setblock.failed": "無法放置方塊",
"commands.setblock.success": "已變更位於 %s, %s, %s 嘅方塊",
"commands.setidletimeout.success": "已將玩家閒置踢出時間設定為 %s 分鐘",
"commands.setworldspawn.failure.not_overworld": "Can only set the world spawn for overworld",
"commands.setworldspawn.failure.not_overworld": "只能於主世界設定世界重生點",
"commands.setworldspawn.success": "已經將世界重生點設成 %s, %s, %s [%s]",
"commands.spawnpoint.success.multiple": "已經將 %6$s 個玩家喺 %5$s 嘅重生點設成 %1$s, %2$s, %3$s [%4$s]",
"commands.spawnpoint.success.single": "已經將 %6$s 喺 %5$s 嘅重生點設成 %1$s, %2$s, %3$s [%4$s]",
Expand Down Expand Up @@ -2696,14 +2696,14 @@
"commands.tick.rate.success": "已設定目標速率為每秒 %s 刻",
"commands.tick.sprint.report": "遊戲刻加速已完成,速率為每秒 %s 刻,即每刻 %s 毫秒",
"commands.tick.sprint.stop.fail": "尚無正在執行嘅遊戲刻加速",
"commands.tick.sprint.stop.success": "遊戲刻加速已中止",
"commands.tick.sprint.stop.success": "目前遊戲刻加速已中止",
"commands.tick.status.frozen": "遊戲凍結中",
"commands.tick.status.lagging": "遊戲正在執行,但無法維持目標速率",
"commands.tick.status.running": "遊戲正在以正常速度執行",
"commands.tick.status.sprinting": "遊戲正在加速執行",
"commands.tick.step.fail": "無法步進遊戲,請先凍結遊戲",
"commands.tick.step.stop.fail": "尚無正在執行嘅遊戲刻步進",
"commands.tick.step.stop.success": "遊戲刻步進已中止",
"commands.tick.step.stop.success": "目前遊戲刻步進已中止",
"commands.tick.step.success": "正在步進 %s 刻",
"commands.time.query": "目前時間為 %s",
"commands.time.set": "已將時間設定為 %s",
Expand Down Expand Up @@ -2764,12 +2764,12 @@
"connect.connecting": "正在連線到伺服器⋯⋯",
"connect.encrypting": "加密中⋯⋯",
"connect.failed": "與伺服器連線失敗",
"connect.failed.transfer": "Connection failed while transferring to the server",
"connect.failed.transfer": "轉移至伺服器時連線失敗",
"connect.joining": "正在加入世界⋯⋯",
"connect.negotiating": "協議中⋯⋯",
"connect.reconfiging": "正在重新設定⋯⋯",
"connect.reconfiguring": "正在重新設定⋯⋯",
"connect.transferring": "Transferring to new server...",
"connect.transferring": "正在轉移至新嘅伺服器⋯⋯",
"container.barrel": "木桶",
"container.beacon": "烽火台",
"container.blast_furnace": "高爐",
Expand Down Expand Up @@ -3106,7 +3106,7 @@
"disconnect.quitting": "正在離開",
"disconnect.spam": "因為濫發訊息而被踢出",
"disconnect.timeout": "連線逾時",
"disconnect.transfer": "Transferred to another server",
"disconnect.transfer": "已轉移至另一個伺服器",
"disconnect.unknownHost": "未知主機",
"download.pack.failed": "%s 個包下載失敗,共 %s 個包",
"download.pack.progress.bytes": "進度:%s(總大小未知)",
Expand Down Expand Up @@ -3194,7 +3194,7 @@
"enchantment.minecraft.smite": "不死剋星",
"enchantment.minecraft.soul_speed": "靈魂疾走",
"enchantment.minecraft.sweeping": "橫掃之刃",
"enchantment.minecraft.sweeping_edge": "Sweeping Edge",
"enchantment.minecraft.sweeping_edge": "橫掃之刃",
"enchantment.minecraft.swift_sneak": "迅捷潛行",
"enchantment.minecraft.thorns": "荊棘",
"enchantment.minecraft.unbreaking": "耐久",
Expand Down Expand Up @@ -3488,10 +3488,10 @@
"gamerule.showDeathMessages": "顯示死亡訊息",
"gamerule.snowAccumulationHeight": "積雪厚度",
"gamerule.snowAccumulationHeight.description": "落雪時,地面上嘅雪最多可以堆積到此處指定嘅層數。",
"gamerule.spawnChunkRadius": "Spawn chunk radius",
"gamerule.spawnChunkRadius.description": "Amount of chunks that stay loaded around the overworld spawn position.",
"gamerule.spawnChunkRadius": "重生區塊半徑",
"gamerule.spawnChunkRadius.description": "主世界重生點周圍保持載入嘅區塊數量。",
"gamerule.spawnRadius": "重生點半徑",
"gamerule.spawnRadius.description": "Controls the size of the area around the spawn point that players can spawn in.",
"gamerule.spawnRadius.description": "控制玩家可以生成嘅重生點周圍區域大小。",
"gamerule.spectatorsGenerateChunks": "容許旁觀者生成地形",
"gamerule.tntExplosionDropDecay": "TNT 爆炸中,部分方塊唔會跌落戰利品",
"gamerule.tntExplosionDropDecay.description": "TNT 引起嘅爆炸中,被破壞方塊嘅部分跌落物會消失。",
Expand Down Expand Up @@ -4901,7 +4901,7 @@
"multiplayer.disconnect.server_shutdown": "伺服器已關閉",
"multiplayer.disconnect.slow_login": "登入逾時",
"multiplayer.disconnect.too_many_pending_chats": "未確認嘅聊天訊息過多",
"multiplayer.disconnect.transfers_disabled": "Server does not accept transfers",
"multiplayer.disconnect.transfers_disabled": "伺服器不接受轉移",
"multiplayer.disconnect.unexpected_query_response": "喺用户端接收到預期外嘅自訂數據",
"multiplayer.disconnect.unsigned_chat": "收到缺少或含有無效簽章嘅聊天封包。",
"multiplayer.disconnect.unverified_username": "無法驗證用户名稱!",
Expand Down Expand Up @@ -5792,13 +5792,13 @@
"subtitles.entity.allay.item_taken": "悦靈愉悦",
"subtitles.entity.allay.item_thrown": "悦靈掟嘢",
"subtitles.entity.armadillo.ambient": "犰狳呼嚕聲",
"subtitles.entity.armadillo.brush": "犰狳刷毛聲",
"subtitles.entity.armadillo.brush": "鱗甲被刷落",
"subtitles.entity.armadillo.death": "犰狳死亡",
"subtitles.entity.armadillo.eat": "犰狳食嘢",
"subtitles.entity.armadillo.hurt": "犰狳受傷",
"subtitles.entity.armadillo.land": "犰狳落地",
"subtitles.entity.armadillo.roll": "犰狳蜷縮",
"subtitles.entity.armadillo.scute_drop": "犰狳掉落鱗甲",
"subtitles.entity.armadillo.scute_drop": "犰狳脱落鱗甲",
"subtitles.entity.armadillo.unroll": "犰狳伸展",
"subtitles.entity.armor_stand.fall": "實體跌落",
"subtitles.entity.arrow.hit": "箭擊中物體",
Expand Down Expand Up @@ -6382,8 +6382,8 @@
"subtitles.item.armor.equip_leather": "裝備皮革盔甲",
"subtitles.item.armor.equip_netherite": "裝備地獄合金盔甲",
"subtitles.item.armor.equip_turtle": "戴上海龜殼",
"subtitles.item.armor.equip_wolf": "狼甲被裝上",
"subtitles.item.armor.unequip_wolf": "狼甲脱落",
"subtitles.item.armor.equip_wolf": "狼甲配戴聲",
"subtitles.item.armor.unequip_wolf": "狼甲滑落",
"subtitles.item.axe.scrape": "斧頭剝皮",
"subtitles.item.axe.strip": "斧頭剝皮",
"subtitles.item.axe.wax_off": "除蠟",
Expand Down
Loading

0 comments on commit d76c749

Please sign in to comment.