[PATCH 1 of 7] namespaces: add singular name of a namespace

Sean Farley sean.michael.farley at gmail.com
Tue Dec 16 20:11:33 CST 2014


Pierre-Yves David writes:

> On 12/16/2014 04:01 PM, Sean Farley wrote:
>> # HG changeset patch
>> # User Sean Farley <sean.michael.farley at gmail.com>
>> # Date 1418630992 28800
>> #      Mon Dec 15 00:09:52 2014 -0800
>> # Node ID 47d0996687d81753386f01e26037be30992dbb59
>> # Parent  39cead85fd58ae6693592074656b284ed736d9bc
>> namespaces: add singular name of a namespace
>>
>> Since there is no easy way to get the singular or plural form of a word in the
>> English language, we store both. This will be used later in the templating
>> machinery to automatically generate keywords.
>
> It is not clear to me who you plan to use this singular vs plurals 
> things. But in all case, it seems doomed:
>
>    http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html
>
> Mercurial took the party of not dealing with pluras/singular at all instead.

Oh, then why translate the singular form at all?

> What was your planned usecase.

It's in patch 5 of 7 [templatekw: add helper method to generate a
template keyword for a namespace],

return showlist(repo.names.singular(namespace), names, plural=namespace,
**args)


More information about the Mercurial-devel mailing list