[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

making changes to Makefile.in.in to allow multiple domains

From: Yann Dirson
Subject: making changes to Makefile.in.in to allow multiple domains
Date: Fri, 10 Sep 2004 01:03:10 +0200
User-agent: Mutt/1.5.6+20040523i


For "Battle for Wesnoth" I did some work to have po/Makefile.in.in
handle arbitrary multiple textdomains.  I'd think it would be useful
to have such a support in standard gettext distribution.

Basically, what I implemented had to get in the way of the usual po/
handling.  The basic ideas are as follows - what do you think of the
general idea ?

- new po/DOMAINS file to list the domains
- still use po/$domain.pot for potfiles
- use po/$domain.POTFILES.in instead of po/POTFILES.in
- translated pofiles in po/$lang/$domain.po

The biggest problem to make this generic is obviously the directory
restructuring.  I decided to do this to keep the Makefile as simple as
possible.  But maybe we could make this feature optional, and only
trigger multi-domain behaviour when a po/DOMAINS file is found, but
that would surely complicate the rules.

Yann Dirson    <address@hidden> |
Debian-related: <address@hidden> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]