enhance Makefile for language translators

Martin Geisler mg at daimi.au.dk
Wed Mar 25 19:14:54 CDT 2009


Tobias Bell <tobias.bell at googlemail.com> writes:

> # HG changeset patch
> # User Tobias Bell <tobias.bell at gmail.com>
> # Date 1238023635 -3600
> # Node ID 439189e9a323588fb7af6afbc4ebdd964e5c570e
> # Parent  3c23187a0a24a62abcadada374b5929bd374e26d
> enhance Makefile for language translators
>
> New target 'update-po' to update po-files and explicit prerequisites for
> hg.pot. To update a po-file just do 'make i18n/xx.po'.
>
> diff --git a/Makefile b/Makefile
> --- a/Makefile
> +++ b/Makefile
> @@ -2,6 +2,8 @@
>  export PREFIX
>  PYTHON=python
>  PURE=
> +PYTHON_FILES:=$(shell find mercurial hgext doc -name '*.py')
> +PO_FILES:=$(wildcard i18n/*.po)
>
> [...]
>
> +update-po: $(PO_FILES)

As I read this, this will update all the .po files? Only the translator
should update his/her .po file, so I think we should drop this.

Updating a single .po file could be useful, but at the moment I simply
find the relevant msgmerge command in my shell history, and with a Make
target I would instead just search for that.

So personally I don't see the big advantage, but maybe others think
otherwise?

-- 
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/20090326/77d3da31/attachment.pgp 


More information about the Mercurial-devel mailing list