Skip to content

[RFC] Chinese (简体中文) UI Localization - #1653

Open
Andrew2020Yuan wants to merge 1 commit into
Nerogar:masterfrom
Andrew2020Yuan:chinese
Open

[RFC] Chinese (简体中文) UI Localization#1653
Andrew2020Yuan wants to merge 1 commit into
Nerogar:masterfrom
Andrew2020Yuan:chinese

Conversation

@Andrew2020Yuan

Copy link
Copy Markdown

概述

为 OneTrainer 提供了简体中文界面本地化方案。

内容

  • zh_cn_map.py:702 条英→中翻译映射表,覆盖所有主要 UI 标签
  • localize_zh.py:翻译应用脚本,将英文显式字符串替换为中文
  • 34 个 modules/ui/ 文件:已应用汉化的界面文件(Base*/PySide6* 系列)

覆盖范围

训练、模型、数据、数据集、采样、备份、工具、附加嵌入、云端、概念窗口、视频工具、标注界面等全部主要标签页。

说明

此 PR 目前采用直接替换源文件中英文字符串的方式实现汉化,而非标准的国际化(i18n/gettext)框架。我们清楚这不是长期维护的最佳方案,目的有三:

  1. 证明中文用户群体的需求和可行性
  2. 提供一个可立刻使用的中文版供中国用户
  3. 如果维护者有意向,我们愿意协助构建正式的 i18n 支持

测试

已通过 py_compile 全量编译验证(All files compile OK),并在 Windows 环境下实际启动 OneTrainer GUI 验证通过。

截图

(如有需要可补充中英文界面对比截图)

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.
@dxqb

dxqb commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

We have no way to maintain this. If you want to maintain this long-term, please join #dev-general on our Discord

@dxqb dxqb added the followup Failure to provide config or other info or needs followup label Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

followup Failure to provide config or other info or needs followup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants