i18n: Starting Chinese Translation of Mercurial

Martin Geisler mg at daimi.au.dk
Sun Jan 25 05:43:34 CST 2009


Dongsheng Song <dongsheng.song at gmail.com> writes:

> # HG changeset patch
> # User Dongsheng Song <dongsheng.song at gmail.com>
> # Date 1232867503 -28800
> # Node ID f3c9dbddc86777a968a5f723fe2c505ed12a1497
> # Parent  43cfbb21f04dad85faa977588b7597d74cacfc4b
> i18n: Starting Chinese Translation of Mercurial
>
> diff -r 43cfbb21f04d -r f3c9dbddc867 i18n/zh.po
> --- /dev/null
> +++ b/i18n/zh.po
> @@ -0,0 +1,8344 @@
> +#
> +# Chinese (simplified) translation for Mercurial
> +# This file is distributed under the same license as Mercurial
> +#
> +# Copyright (C) 2009 the Mercurial team
> +# Dongsheng Song <dongsheng.song at gmail.com>, 2009
> +#
> +# $Id: zh.po 1133 2009-01-25 06:31:54Z dongsheng.song $
> +#
> +# Please format your translation before commit:
> +#    msgcat --width=80 --sort-by-file -o zh_new.po zh.po
> +#    mv -f zh_new.po zh.po
> +#    msgfmt --statistics -c zh.po
> +#
> +# Please remove '#: filename:line' lines before submit to hg:
> +#    msgcat --width=80 --no-location -o zh_new.po zh.po
> +#    mv -f zh_new.po zh.po
> +#    msgfmt --statistics -c zh.po

Stripping the location info and sorting by file are great ideas!

I've sent some patches which will generate the hg.pot file like that and
updated the wiki page:

  http://www.selenic.com/mercurial/wiki/index.cgi/TranslatingMercurial

Please update it further if you see a way to improve it.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090125/0fa74ccd/attachment.pgp 


More information about the Mercurial-devel mailing list