Skip to content

zh_CN: fix translation - #11833

Closed
Berrysoft wants to merge 1 commit into
fish-shell:masterfrom
Berrysoft:dev/zh-cn-translation
Closed

Berrysoft wants to merge 1 commit into
fish-shell:masterfrom
Berrysoft:dev/zh-cn-translation

Conversation

@Berrysoft

@Berrysoft Berrysoft commented Sep 28, 2025 •

Copy link
Copy Markdown
Contributor

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_MESSAGES was already exported).

@Berrysoft Berrysoft changed the title zh_CN: fix part of translation zh_CN: fix translation Sep 28, 2025
@krobelus

Copy link
Copy Markdown
Contributor

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)),
and then do your changes on top.

FWIW most translations are for completion descriptions in share/completions;
but the ones that are for fish sources/builtins/functions are more important (that's why they are listed first in po/*.po;
so we could maybe ignore (or even delete) all translations for share/completions/, and focus on all the others.

German translations have a similar problem, they're more confusing than helpful sometimes.

@Berrysoft

Copy link
Copy Markdown
Contributor Author

If you prefer, we can also revert the relevant commit (i.e. 035cd36 (Supplement Chinese translation, 2025-05-08)),
and then do your changes on top.

Well, I think the current one is OK to start with. About 20% to 30% of the translation is acceptable.

so we could maybe ignore (or even delete) all translations for share/completions/, and focus on all the others.

Thank you for pointing it out!

@krobelus krobelus added this to the fish 4.1.1 milestone Sep 28, 2025
Comment thread po/zh_CN.po Resolved
Comment thread po/zh_CN.po Resolved
Comment thread po/zh_CN.po Resolved
Comment thread po/zh_CN.po Resolved
@Berrysoft
Berrysoft marked this pull request as ready for review September 28, 2025 15:56
@Berrysoft

Copy link
Copy Markdown
Contributor Author

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.

@Berrysoft

Copy link
Copy Markdown
Contributor Author

I have to notice that some sentences are a bit difficult to translate:

Invalid option spec '%ls' at char '%lc'

A natural translation will be

在字符 '%lc' 处发现无效选项规范 '%ls'

but it needs to swap the parameter order. I have to write

无效的选项规范 '%ls' 于字符 '%lc'

It's a little wierd. I hope a more flexible i18n template engine will be used so that I can adjust the parameter order.

@krobelus

Copy link
Copy Markdown
Contributor

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
We'd need to figure out how we want ID-assignment to work with fish scripts.

@Berrysoft

Copy link
Copy Markdown
Contributor Author

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.

@Berrysoft
Berrysoft force-pushed the dev/zh-cn-translation branch from ae1d9f0 to 5d4550a Compare September 28, 2025 17:37
@Berrysoft

Copy link
Copy Markdown
Contributor Author

I rebased the PR to merge other changes and move the deletion to the end. It might be easier to review.

@faho

faho commented Sep 29, 2025

Copy link
Copy Markdown
Member

we could switch to something like fluent in future, see https://github.com/projectfluent/fluent/wiki/Fluent-vs-gettext

Fluent is awkward license-wise - it's apache2-only, as far as I can see. That's incompatible with fish's gpl2.

@lilydjwg

lilydjwg commented Sep 29, 2025 •

Copy link
Copy Markdown

These updates were huge so I'm sure they were mostly LLM-generated and probably only superficially reviewed by a human.

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.

@krobelus krobelus self-assigned this Sep 29, 2025
@Integral-Tech

Copy link
Copy Markdown
Contributor

@Berrysoft This translation is incorrect:

msgid "Changes to locale variables"
msgstr "更改局域变量"

The term "locale" has distinct meanings that differ from "local":

In computing, a locale is a set of parameters that defines the user's language, region and any special variant preferences that the user wants to see in their user interface. Usually a locale identifier consists of at least a language code and a country/region code. Locale is an important aspect of i18n.

Moreover, "Changes to locale variables" is a noun phrase, while "更改局域变量" is a verb phrase. To maintain consistency, you can translate it to "对区域设置变量的更改".

@Berrysoft

Copy link
Copy Markdown
Contributor Author

Oh, yes. I'll fix it. Thanks.

@Berrysoft

Copy link
Copy Markdown
Contributor Author

Moreover, "Changes to locale variables" is a noun phrase, while "更改局域变量" is a verb phrase. To maintain consistency, you can translate it to "对区域设置变量的更改".

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".

krobelus pushed a commit that referenced this pull request Sep 29, 2025
krobelus pushed a commit that referenced this pull request Sep 29, 2025
krobelus added a commit that referenced this pull request Sep 29, 2025
krobelus added a commit that referenced this pull request Sep 29, 2025
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
krobelus added a commit that referenced this pull request Sep 29, 2025
krobelus added a commit that referenced this pull request Sep 29, 2025
krobelus added a commit that referenced this pull request Sep 29, 2025
Comment thread po/zh_CN.po Resolved
@krobelus

Copy link
Copy Markdown
Contributor

Fluent is awkward license-wise - it's apache2-only, as far as I can see. That's incompatible with fish's gpl2.

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).

Comment thread po/zh_CN.po Resolved
@Berrysoft
Berrysoft force-pushed the dev/zh-cn-translation branch from 461630b to 3336856 Compare September 30, 2025 04:15
@Berrysoft

Copy link
Copy Markdown
Contributor Author

I reverted the deletion commit because it makes reviewing hard.

krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
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)
krobelus added a commit that referenced this pull request Oct 3, 2025
(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)
krobelus added a commit to krobelus/fish-shell that referenced this pull request Nov 17, 2025
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?
krobelus added a commit to krobelus/fish-shell that referenced this pull request Nov 17, 2025
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?
danielrainer pushed a commit to danielrainer/fish-shell that referenced this pull request Dec 25, 2025
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'
danielrainer pushed a commit to danielrainer/fish-shell that referenced this pull request Jan 2, 2026
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'
danielrainer pushed a commit to danielrainer/fish-shell that referenced this pull request Jan 4, 2026
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'
danielrainer pushed a commit to danielrainer/fish-shell that referenced this pull request Jan 5, 2026
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'
danielrainer pushed a commit to danielrainer/fish-shell that referenced this pull request Jan 6, 2026
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'
danielrainer pushed a commit to danielrainer/fish-shell that referenced this pull request Jan 7, 2026
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'
danielrainer pushed a commit to danielrainer/fish-shell that referenced this pull request Jan 8, 2026
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'
danielrainer pushed a commit to danielrainer/fish-shell that referenced this pull request Jan 16, 2026
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'
@krobelus krobelus mentioned this pull request May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants