[RFC] Chinese (简体中文) UI Localization - #1653
Open
Andrew2020Yuan wants to merge 1 commit into
Open
Conversation
Add Chinese translation for 702 UI strings across 34 modules. Includes translation mapping (zh_cn_map.py) and applicator script (localize_zh.py). Translation approach: direct source string replacement targeting Base* and PySide6* UI view files, covering all major tabs: - Training, Model, Data, Dataset, Sampling, Backup, Tools - Additional Embeddings, Cloud, Concept Window, Profiling - Video Tool, Caption UI, Convert Model, Generate Captions/Masks Tag labels patched separately for TrainUIView and ConceptWindowView.
Collaborator
|
We have no way to maintain this. If you want to maintain this long-term, please join #dev-general on our Discord |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
为 OneTrainer 提供了简体中文界面本地化方案。
内容
zh_cn_map.py:702 条英→中翻译映射表,覆盖所有主要 UI 标签localize_zh.py:翻译应用脚本,将英文显式字符串替换为中文modules/ui/文件:已应用汉化的界面文件(Base*/PySide6* 系列)覆盖范围
训练、模型、数据、数据集、采样、备份、工具、附加嵌入、云端、概念窗口、视频工具、标注界面等全部主要标签页。
说明
此 PR 目前采用直接替换源文件中英文字符串的方式实现汉化,而非标准的国际化(i18n/gettext)框架。我们清楚这不是长期维护的最佳方案,目的有三:
测试
已通过
py_compile全量编译验证(All files compile OK),并在 Windows 环境下实际启动 OneTrainer GUI 验证通过。截图
(如有需要可补充中英文界面对比截图)