lang: Refactored langtool, updated chinese translation (#1623)

- Better argument parsing
- Allow processing all language folders at the same time
- Allow an optional reference language when translating
- Save translations on KeyboardInterrupt
- Fixes a ooold input issues by importing readline
(https://github.com/kovidgoyal/kitty/issues/6560)
- Add untranslate mode to remove translations by a key regex

---------

Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
xtex
2024-05-02 02:49:55 +08:00
committed by GitHub
parent 6fbbf899b0
commit aa5a3ed080
9 changed files with 489 additions and 375 deletions

View File

@@ -10,7 +10,7 @@
"hex.ui.common.begin": "起始",
"hex.ui.common.big": "大",
"hex.ui.common.big_endian": "大端序",
"hex.ui.common.browse": "浏览...",
"hex.ui.common.browse": "浏览……",
"hex.ui.common.bytes": "字节",
"hex.ui.common.cancel": "取消",
"hex.ui.common.choose_file": "选择文件",
@@ -28,7 +28,6 @@
"hex.ui.common.encoding.utf8": "UTF-8",
"hex.ui.common.end": "末尾",
"hex.ui.common.endian": "端序",
"hex.ui.common.warning": "警告",
"hex.ui.common.error": "错误",
"hex.ui.common.fatal": "致命错误",
"hex.ui.common.file": "文件",
@@ -41,17 +40,17 @@
"hex.ui.common.little": "小",
"hex.ui.common.little_endian": "小端序",
"hex.ui.common.load": "加载",
"hex.ui.common.loading": "加载...",
"hex.ui.common.loading": "加载……",
"hex.ui.common.match_selection": "匹配选择",
"hex.ui.common.name": "名称",
"hex.ui.common.no": "否",
"hex.ui.common.number_format": "数字进制",
"hex.ui.common.octal": "八进制",
"hex.ui.common.off": "关",
"hex.ui.common.offset": "偏移",
"hex.ui.common.okay": "确认",
"hex.ui.common.open": "打开",
"hex.ui.common.on": "开",
"hex.ui.common.off": "",
"hex.ui.common.open": "打开",
"hex.ui.common.path": "路径",
"hex.ui.common.percentage": "百分比",
"hex.ui.common.processing": "处理",
@@ -82,13 +81,16 @@
"hex.ui.common.type.u64": "uint64_t",
"hex.ui.common.type.u8": "uint8_t",
"hex.ui.common.value": "值",
"hex.ui.common.warning": "警告",
"hex.ui.common.yes": "是",
"hex.ui.diagram.byte_type_distribution.plain_text": "纯文本",
"hex.ui.diagram.byte_type_distribution.similar_bytes": "类似字节",
"hex.ui.hex_editor.ascii_view": "显示 ASCII 栏",
"hex.ui.hex_editor.custom_encoding_view": "显示高级解码栏",
"hex.ui.hex_editor.columns": "栏",
"hex.ui.hex_editor.human_readable_units_footer": "将数据转换为人类可读的单位",
"hex.ui.hex_editor.custom_encoding_view": "显示高级解码栏",
"hex.ui.hex_editor.data_size": "数据大小",
"hex.ui.hex_editor.gray_out_zero": "显示零字节为灰色",
"hex.ui.hex_editor.human_readable_units_footer": "将数据转换为人类可读的单位",
"hex.ui.hex_editor.minimap": "小地图",
"hex.ui.hex_editor.minimap.width": "宽度",
"hex.ui.hex_editor.no_bytes": "没有可显示的字节",
@@ -102,22 +104,20 @@
"hex.ui.pattern_drawer.comment": "注释",
"hex.ui.pattern_drawer.double_click": "双击查看更多",
"hex.ui.pattern_drawer.end": "结束",
"hex.ui.pattern_drawer.export": "导出为...",
"hex.ui.pattern_drawer.export": "导出为……",
"hex.ui.pattern_drawer.favorites": "收藏",
"hex.ui.pattern_drawer.local": "本地",
"hex.ui.pattern_drawer.size": "大小",
"hex.ui.pattern_drawer.spec_name": "显示标准名称",
"hex.ui.pattern_drawer.start": "开始",
"hex.ui.pattern_drawer.tree_style.tree": "树",
"hex.ui.pattern_drawer.tree_style.auto_expanded": "自动展开树",
"hex.ui.pattern_drawer.tree_style.flattened": "扁平化",
"hex.ui.pattern_drawer.tree_style.tree": "树",
"hex.ui.pattern_drawer.type": "类型",
"hex.ui.pattern_drawer.updating": "更新模式中...",
"hex.ui.pattern_drawer.updating": "更新模式中……",
"hex.ui.pattern_drawer.value": "值",
"hex.ui.pattern_drawer.var_name": "名称",
"hex.ui.pattern_drawer.visualizer.unknown": "未知可视化器",
"hex.ui.pattern_drawer.visualizer.invalid_parameter_count": "无效参数数",
"hex.ui.diagram.byte_type_distribution.plain_text": "纯文本",
"hex.ui.diagram.byte_type_distribution.similar_bytes": "类似字节"
"hex.ui.pattern_drawer.visualizer.unknown": "未知可视化器"
}
}