Skip to content

feat(i18n): add simplified Chinese (zh-CN) translations - #277

Closed
lovesion wants to merge 2 commits into
noctalia-dev:mainfrom
lovesion:feat/zh-cn-translations
Closed

lovesion wants to merge 2 commits into
noctalia-dev:mainfrom
lovesion:feat/zh-cn-translations

Conversation

@lovesion

@lovesion lovesion commented Dec 1, 2026 •

Copy link
Copy Markdown

Summary

Adds a complete simplified Chinese (zh-CN) translation catalog for Luciole: assets/translations/zh-CN.json, covering all 2414 keys of en.json (grid/list/Miller views, settings dialog, permissions/ACL editors, archive operations, file picker, status bar, and error messages).

Motivation

Luciole currently ships English, German, Portuguese (Brazil) and Ukrainian catalogs but no Chinese. With the Noctalia family (shell, Umbriel, greeter) being adopted on Chinese-language systems, a full zh-CN catalog makes the file manager usable in the user's native language. Locale detection already resolves zh_CN.UTF-8 to zh-CN.json, so this change is purely additive — no code change is required upstream.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Build / packaging
  • Documentation only

Related Issue

n/a

Testing

  • python3 tools/i18n-check.py → OK: 2414 key(s) used, all present in the catalog (2414 entries).
  • python3 tools/i18n-check.py --unused → same OK output.
  • Key set, top-level groups and placeholder sets verified against en.json (no missing/extra keys; {name}, {count}, {error} etc. preserved).
  • Loaded the catalog in a running Luciole under LANG=zh_CN.UTF-8; log reports [i18n] language: zh-CN (previously no catalog for 'zh-CN', falling back to English).

Screenshots / Videos

n/a (translation catalog only)

Checklist

  • This PR is ready for review, or it is marked as Draft.
  • This change fits SCOPE.md, or its scope was agreed in an issue or on Discord first.
  • I read and followed the relevant guidance in CONTRIBUTING.md.
  • I ran just format, or this PR has no C++ changes.
  • I ran just lint and the relevant build or test commands, or explained why they were not run.
  • I ran just role-alpha-check, or this PR does not change UI colors.
  • I tested the change in a running Luciole where automated checks are insufficient.
  • I self-reviewed the changes.
  • I checked for new warnings or errors.
  • I updated docs/, or this PR does not change user-facing behavior or settings.
  • I used canonical names for settings, paths, and identifiers.

Additional Notes

None.

Full translation of the Luciole UI into simplified Chinese, covering all
2414 catalog keys (grid/list/Miller views, settings, permissions, archive
operations, file picker and error messages). Keys and placeholders stay
aligned with en.json; i18n-check passes with no missing or unused keys.
@github-actions
github-actions Bot marked this pull request as draft December 1, 2026 08:38
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The description now contains the required template structure.

@lovesion
lovesion marked this pull request as ready for review December 1, 2026 08:40
@ItsLemmy

ItsLemmy commented Dec 1, 2026

Copy link
Copy Markdown
Member

Marking this as draft for now, since the manual translation has already been started on https://i18n.noctalia.dev

@ItsLemmy
ItsLemmy marked this pull request as draft December 1, 2026 14:19
@Obelusod

Obelusod commented Dec 1, 2026

Copy link
Copy Markdown

Hi @lovesion, thanks for translating the entire project! I'm one of the Chinese translators for Noctalia v5, and I've recently been working on Luciole's translations through the i18n website as well, though progress has been pretty slow (

I took a quick look at your translations and noticed some awkward wording and inconsistencies in terminology. We'd like to review the translations thoroughly and maintain the same natural phrasing, familiar terminology, and consistency we've been aiming for in Noctalia.

欢迎随时加入 Noctalia Discord 的 translations 频道和我们一起讨论和完善 Luciole、Noctalia 等项目的翻译!

Catalog aligned 1:1 with the 290 zh-Hans strings already on i18n.noctalia.dev,
with terminology propagated across all keys (主文件夹/上级文件夹/分栏视图/
拆分视图/常用位置/固定项/移至回收站) and the 19 keys added to en.json since
the original commit. Renamed zh-CN.json to zh-Hans.json to match the site
locale id used by tools/i18n-pull.sh.

python3 tools/i18n-check.py: OK: 2433 key(s) used, all present (2433 entries).
@lovesion

lovesion commented Dec 1, 2026

Copy link
Copy Markdown
Author

Thanks both — and sorry about the process miss.

I hadn't realized assets/translations/*.json is generated from i18n.noctalia.dev (tools/i18n-pull.sh); I only saw the checked-in de/pt-BR/uk-UA catalogs, so I hand-wrote the catalog. That's on me.

I've now rebased it on current en.json and made it match the site 1:1:

  • All 290 zh-Hans strings already on i18n.noctalia.dev are adopted verbatim (182 were already identical, 108 changed), and the same terminology is propagated through the remaining ~2100 strings: 主文件夹, 上级文件夹, 分栏视图, 拆分视图, 常用位置 / 固定项, 移至回收站, 拖动, 地址栏, 可用 {size} ordering, pronoun-free imperatives (no 您).
  • Added the 19 keys that landed in en.json after I opened the PR (file grouping + disk-usage limit) → 2433/2433.
  • Renamed zh-CN.json → zh-Hans.json: catalogLanguageCandidates() resolves zh_CN → zh-Hans, and i18n-pull.sh writes <locale>.json using the site's locale id, so this avoids a duplicate catalog later.
  • python3 tools/i18n-check.py → OK: 2433 key(s) used, all present in the catalog (2433 entries).

Two things I ran into:

  1. The site's en catalog is 30 keys behind main (2403 vs 2433). The missing ones include browser.file-groups.* and ui.settings-dialog.disk-usage-limit, so a pull right now would drop them.
  2. Two site strings read "access" as 权限: "This folder is already open with normal access" → 此文件夹已使用普通权限打开, and "Return to Normal Access" → 恢复普通权限. English-wise these are about 访问(方式). I kept your wording so the PR stays 1:1, but I'd suggest fixing them on the site rather than here.

The glossary I followed (please correct anything): Home 主文件夹, Places 常用位置, pin 固定项, Parent Folder 上级文件夹, Column View 分栏视图, Split View 拆分视图, Move to Trash 移至回收站, location bar 地址栏, native 本地.

On process — since the site is the source of truth, which do you prefer?

(a) I join the Discord translations channel, we settle the glossary, I finish zh-Hans on i18n.noctalia.dev, and this PR gets closed; or
(b) we keep this PR as a seed/review aid until the site catches up (it stays Draft).

Either way I'd like to avoid us translating the same 2400 strings twice. 也欢迎在 Discord 用中文直接聊,我可以把这版对齐后的术语表整理出来一起过一遍。

Thanks!

@Obelusod

Obelusod commented Dec 1, 2026

Copy link
Copy Markdown

Thanks for pointing that out!

Regarding "access", it does relate to permissions here, given the context of opening folders as an administrator. The translations were based on that context rather than a literal reading of the English. That said, I agree these strings could be clearer and more consistent. While “恢复普通访问” is more literal, it doesn't sound particularly natural in Chinese, where terms like “管理员权限” and “普通用户权限” are more commonly used. I think it'd be best to review and revise the related strings together.

图片

The reason I'd prefer not to submit the entire translation at once is that we'd like potentially ambiguous strings to be reviewed by multiple people wherever possible, checked in context, and compared with established translations and conventions in other mature file managers. For example, after looking into how other file managers handle Home and Places, I went with “主文件夹” and “常用位置” rather than “家目录” and “位置”. Of course, none of these choices are set in stone and they may go through several rounds of review and refinement.

Working through strings in batches by key prefix and prioritizing user-facing strings also makes reviewing and maintaining consistent terminology much easier. Revising the entire catalog at once would be more cumbersome. For instance, I've started with app.menu-controller, app.status-bar-controller, and browser.action-registry on the site, focusing on the UI and core functionality so we can quickly review and discuss the key terminology. This helps strike a balance between getting translations to users early and maintaining quality.

As for (a) and (b), I don't think they're mutually exclusive. 如果已经在 Discord 的话可以在 translations 的 zh-hans 子频道随时一起讨论😄

@ItsLemmy

ItsLemmy commented Dec 1, 2026

Copy link
Copy Markdown
Member

I'll close the PR you guys can still comment and discuss here or discord... thx!

@ItsLemmy ItsLemmy closed this Dec 1, 2026
@lovesion

lovesion commented Dec 2, 2026

Copy link
Copy Markdown
Author

Thanks for closing this — and thanks @Obelusod for the context on "access": given the folder-opened-as-administrator flow, 权限 is the right reading, my "访问" was the naive one. 👍

Fully understood on reviewing in batches by key prefix; that makes review much easier than one 2400-string dump. The full catalog from this PR is available for reference at the head of feat/zh-cn-translations (commit f11d55) if anyone wants to mine it later — it's kept 1:1 with whatever is on the site, so it can serve as a hedge, not a competing proposal. I'll keep it dormant.

The glossary I'd propose as a starting point for the zh-hans subchannel (all already in use in what's on the site):

主文件夹 / 常用位置 / 固定项 / 上级文件夹 / 分栏视图 / 拆分视图 / 移至回收站 / 解压 / 归档 / 地址栏 / 常用位置为主、位置为简写 / 无"您"、祈使句 / 本地 (native) / 条目 vs 项目 待定 / 单击 与 双击 统一用"单击"

Also still open for discussion there: 条目 vs 项目, and the site's en catalog being 30 keys behind main (browser.file-groups.*, disk-usage limit strings) — happy to help figure out the sync when the time comes.

Let's continue in the Discord zh-hans channel. Thanks both!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants