bug-gnu-utils
[Top][All Lists]
Advanced

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

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


From: Bruno Haible
Subject: Re: making changes to Makefile.in.in to allow multiple domains
Date: Fri, 10 Sep 2004 13:31:34 +0200
User-agent: KMail/1.5

Yann Dirson wrote:
> 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

Thanks for the suggestion.

The ability to handle multiple text domains is already supported since
gettext 0.11.5. The way it is done is through multiple po/ directories,
one for each textdomain. You can name them the way you like, po1/ or
wesnoth-po/ or whatever, and they don't need to be directly under the
package root directory. But you need to be careful about the
'DOMAIN', 'subdir' and 'top_builddir' variable in each directory's
Makevars file.

Bruno





reply via email to

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