Re: [PATCH] C style: use standard style for "TRANSLATORS" comments
- From
Jiang Xin <worldhello.net@gmail.com>
- Date
- May 30, 2017, 16:02 UTC
- Message-ID
- <CANYiYbH=EJy51yAdiMg6R_yDzZ3PLUuLMsLxdkf9zXJPhLcwKA@mail.gmail.com>
- In-Reply-To
- <20170511212012.6782-1-avarab@gmail.com>
2017-05-12 5:20 GMT+08:00 Ævar Arnfjörð Bjarmason <avarab@gmail.com>:
Show 13 quoted lines
> Change all the "TRANSLATORS: [...]" comments in the C code to use the
> regular Git coding style, and amend the style guide so that the
> example there uses that style.
>
> This custom style was necessary back in 2010 when the gettext support
> was initially added, and was subsequently documented in commit
> cbcfd4e3ea ("i18n: mention "TRANSLATORS:" marker in
> Documentation/CodingGuidelines", 2014-04-18).
>
> GNU xgettext hasn't had the parsing limitation that necessitated this
> exception for almost 3 years. Since its 0.19 release on 2014-06-02
> it's been able to recognize TRANSLATOR comments in the standard Git
> comment syntax[1].My gettext version is 0.19.8.1. I applied this patch and checked the new generated `git.pot` file, all "TRANSLATORS:" directions are well kept as usual.
This patch is nice.
-- Jiang Xin