Repository navigation
zh_CN: fix translation - #11833
zh_CN: fix translation#11833Berrysoft wants to merge 1 commit into
Conversation
|
thanks and sorry about that; These updates were huge so I'm sure they were mostly LLM-generated and probably only superficially reviewed by a human. If you prefer, we can also revert the relevant commit (i.e. 035cd36 (Supplement Chinese translation, 2025-05-08)), FWIW most translations are for completion descriptions in German translations have a similar problem, they're more confusing than helpful sometimes. |
Well, I think the current one is OK to start with. About 20% to 30% of the translation is acceptable.
Thank you for pointing it out! |
|
I fixed the translations for ~2000 lines, and deleted the remaining ones with poedit. Please remind me if I delete some ones that should be translated. A general notice is added as comments in the beginning of this po file, to help the future contributors or the LLMs (if they read them) to keep the consistency of translation terms. |
|
I have to notice that some sentences are a bit difficult to translate: A natural translation will be but it needs to swap the parameter order. I have to write It's a little wierd. I hope a more flexible i18n template engine will be used so that I can adjust the parameter order. |
we could switch to something like fluent in future, see https://github.com/projectfluent/fluent/wiki/Fluent-vs-gettext |
|
Thanks! This PR is ready now, at least for the Rust code part. The diff might be too large to review, but it's mainly because of 64c9fff. |
ae1d9f0 to
5d4550a
Compare
|
I rebased the PR to merge other changes and move the deletion to the end. It might be easier to review. |
Fluent is awkward license-wise - it's apache2-only, as far as I can see. That's incompatible with fish's gpl2. |
It was found that this machine translator gave similar results. Even various machine translators (e.g. Google Translate) outperform some of the translations in fish. |
|
@Berrysoft This translation is incorrect: msgid "Changes to locale variables"
msgstr "更改局域变量"The term "locale" has distinct meanings that differ from "local":
Moreover, "Changes to locale variables" is a noun phrase, while "更改局域变量" is a verb phrase. To maintain consistency, you can translate it to "对区域设置变量的更改". |
|
Oh, yes. I'll fix it. Thanks. |
This string is for log categories. I think a verb-object phrase is ok to be a noun phrase. Anyway thanks to your advice, and I have also fixed another item related to "locale". |
See the next commit. Part of #11833
The overwhelming majority of localizable messages comes from
completions:
$ ls share/completions/ | wc -l
$ 1048
OTOH functions also contribute a small amount, mostly via their
descriptions (so usually just one per file).
$ ls share/functions/ | wc -l
$ 237
Most of these are private and almost never shown to the user, so it's
not worth bothering translators with them. So:
- Skip private (see the parent commit) and deprecated functions.
- Skip wrapper functions like grep (where the translation seems to
be provided by apropos), and even the English description is not
helpful.
- Assume that most real systems have "seq", "realpath" etc.,
so it's no use providing our own translations for our fallbacks.
- Mark fish's own functions as tier1, and some barely-used functiosn
and completions as tier3, so we can order them that way in
po/*.po. Most translators should only look at tier1 and tier2.
In future we could disable localization for tier3.
See the explanation at the bottom of
tests/checks/message-localization-tier-is-declared.fish
Part of #11833
I'm sure there's many ways around that (either can relicense, or we can use it only at build-time, or "link to it", or reimplement the relevant parts). |
461630b to
3336856
Compare
|
I reverted the deletion commit because it makes reviewing hard. |
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to solve the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but probably people are more likely to use something that fits into existing newsreaders / mail clients. Expose atom feeds of translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. This is experimental; our concrete need for automation is not super high, but I want to address the general problem. Feeds are already online, for example use: https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/refs/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
(This is experimental, and our concrete need to automate this is not super high, but I want to have a solution for this problem in general.) There are various automated ways to notify people of changes to a component, without them having to set up complicated filtering. For example 1. using GitHub's codeowners feature, perhaps creating a GitHub team per component 2. by requiring all changes to the component to go through a fork 3. Using [public-inbox](https://public-inbox.org/)'s "lei" tool, which makes it easy to create a filter for all patches touching a given file (consumable as pull-based mbox or RSS feed), see https://people.kernel.org/monsieuricon/lore-lei-part-1-getting-started Option 3 seems ideal because it allows anyone to subscribe/unsubscribe, and it remains obvious where to send PRs to. It would be fairly easy to write a client-side tool (fetch all commits and/or PRs and look for interesting changes) but people are more likely to use something that works OOTB with newsreaders / mail clients. Expose atom feeds of PRs proposing translation additions/removals. The one with removals is higher traffic because it can be triggered when rewording a source string. Feeds are already online. For example, use: https://raw.githubusercontent.com/fish-shell/fish-shell/fish-shell-events/po/zh_CN-additions.atom https://raw.githubusercontent.com/fish-shell/fish-shell/fish-shell-events/po/zh_CN-removals.atom Ref: #11833 (comment)
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end' TODO: 1. fix the perf regressions (push_utfstr etc.) 2. call `to_string()` automatically for WString/wstr fluent args?
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end' TODO: 1. fix the perf regressions (push_utfstr etc.) 2. call `to_string()` automatically for WString/wstr fluent args?
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end'
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end'
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end'
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end'
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end'
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end'
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end'
Reword zh_CN as suggested in fish-shell#11833 (comment) fish -c 'for LC_MESSAGES in fr_FR zh_CN zh_TW argparse h- end'
The latest Chinese translation is TOO BAD. I'll try to fix them, but it might take some time.
NOTE (edited for visibility):
You can work around this issue with
set -g LC_MESSAGES en, to use English messages inside fish,without affecting fish's child processes (unless
LC_MESSAGESwas already exported).