Re: [L10N] fixed mismatched variable names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> 于2021年7月3日周六 下午7:47写道:
>
> This seems like a good narrow fix for now, but I'd think a much better
> fix would be to e.g. add something to the CI or a lintk check based on
> "git help --config" that errored if any string meant for gettext
> contains such a variable.
>
> It's data that isn't meant to be translated at all, so we should be
> passing it as %s to the format string.
>
> I see there's at least one fix that fixes a reference to a function
> internal to git.git, such a check wouldn't catch that, but that message
> should be fixed too. We shouldn't have anything referencing code names
> except the BUG() messages (which we don't translate)>

There are at least three types of constant strings that should not be
translated: git config variables, function or variable names, git
commands or command options. See new test cases in commit:

https://github.com/git-l10n/git-po-helper/commit/86791cf25b17b6853bcbad7b501a76906ac86a02




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux