Add Simplified Chinese (zh_CN) translation#1568
Open
Iamliuxiaozhen wants to merge 5 commits intotrifectatechfoundation:mainfrom
Open
Add Simplified Chinese (zh_CN) translation#1568Iamliuxiaozhen wants to merge 5 commits intotrifectatechfoundation:mainfrom
Iamliuxiaozhen wants to merge 5 commits intotrifectatechfoundation:mainfrom
Conversation
Introduce a new `po/zh_CN.po` locale file with initial Simplified Chinese translations for sudo-rs messages and prompts. This starts Chinese language support to improve usability for zh_CN users, while leaving untranslated entries ready for follow-up completion.feat(i18n): add Simplified Chinese zh_CN translation file Introduce a new `po/zh_CN.po` locale file with initial Simplified Chinese translations for sudo-rs messages and prompts. This starts Chinese language support to improve usability for zh_CN users, while leaving untranslated entries ready for follow-up completion.
Fill in previously missing Chinese translations in `po/zh_CN.po` for PAM, audit, and common error messages, and localize the verbose “Options” label. This improves Chinese-language UX by providing clearer, fully translated runtime and authentication feedback.feat(i18n): complete zh_CN translations for PAM and audit errors Fill in previously missing Chinese translations in `po/zh_CN.po` for PAM, audit, and common error messages, and localize the verbose “Options” label. This improves Chinese-language UX by providing clearer, fully translated runtime and authentication feedback. Co-authored-by: Copilot <copilot@github.com>
Swap the `zh_CN.po` entry for “Options” so the English source text is in `msgid` and the Chinese translation is in `msgstr`. This fixes gettext key matching and ensures the option label is translated correctly at runtime.fix(i18n): correct zh_CN msgid/msgstr for “Options” Swap the `zh_CN.po` entry for “Options” so the English source text is in `msgid` and the Chinese translation is in `msgstr`. This fixes gettext key matching and ensures the option label is translated correctly at runtime.
Fill in previously empty Chinese (zh_CN) msgstr entries across sudo error, sudoedit, and pipeline messages to improve localization coverage. This makes runtime and interactive prompts understandable for Chinese users and reduces fallback to untranslated English strings.feat(i18n): complete zh_CN translations for sudo errors Fill in previously empty Chinese (zh_CN) msgstr entries across sudo error, sudoedit, and pipeline messages to improve localization coverage. This makes runtime and interactive prompts understandable for Chinese users and reduces fallback to untranslated English strings. Co-authored-by: Copilot <copilot@github.com>
Author
|
Hi! Just a gentle ping on this PR 😊 This PR adds initial Simplified Chinese (zh_CN) translations for sudo-rs.
I'd really appreciate a quick review when you have time. Thanks 🙏 |
Add Chinese translations for previously empty `msgstr` entries in `po/zh_CN.po`, including `sudoedit` help text and multiple CLI error/usage messages. This improves localization coverage so Chinese users receive clear, fully translated command help and diagnostics.i18n(zh_CN): translate missing sudo CLI help messages Add Chinese translations for previously empty `msgstr` entries in `po/zh_CN.po`, including `sudoedit` help text and multiple CLI error/usage messages. This improves localization coverage so Chinese users receive clear, fully translated command help and diagnostics. Co-authored-by: Copilot <copilot@github.com>
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.
This PR introduces an initial Simplified Chinese (zh_CN) translation.
Key points:
Validation:
Future work: