[PATCH 2 of 2 STABLE] i18n: look translation of both "DEPRECATED" and "(DEPRECATED)" up
Yuya Nishihara
yuya at tcha.org
Sun Nov 1 13:53:16 UTC 2015
On Sun, 01 Nov 2015 08:57:33 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> # Date 1446334736 -32400
> # Sun Nov 01 08:38:56 2015 +0900
> # Branch stable
> # Node ID 04bd19bf32794ae29fded5865e826fb681d6c148
> # Parent 6d0e49b14bc092b89b81a15cf31e0ad1f63eb639
> i18n: look translation of both "DEPRECATED" and "(DEPRECATED)" up
>
> Since 44cc9f63a2f1, deprecated commands, options and so on are
> detected by "(DEPRECATED)" instead of "DEPRECATED".
>
> "hg.pot" generated from recent source files doesn't contain msgid
> "DEPRECATED", and looking the translation of "DEPRECATED" up in
> up-to-date *.po files works incorrectly.
>
> But on the other hand, there are still old *.po files, which contain
> msgid "DEPRECATED" but not "(DEPRECATED)". Looking the translation of
> "(DEPRECATED)" up in such old *.po files also works incorrectly.
>
> This patch resolves this problem by looking translation of both
> "DEPRECATED" and "(DEPRECATED)" up.
Here's a magic that old *.po files can have "(DEPRECATED)" out of the box.
https://selenic.com/repo/hg/file/tip/hgext/rebase.py#l103
So, if it doesn't have "(DEPRECATED)", that message catalogue would be really
deprecated.
More information about the Mercurial-devel
mailing list