Re: Removing unwanted internationalization info



On Mo, 2004-06-21 at 00:27 +0200, Danilo Åegan wrote:

[loads of discussion about omission of po files]

Erm, guys, how about using the standard gettext mechanism to accomplish
this? :-)  Here's an excerpt from the documentation:

        This example means that German and French PO files are available, so
        that these languages are currently supported by your package.  If you
        want to further restrict, at installation time, the set of installed
        languages, this should not be done by modifying the `LINGUAS' file, but
        rather by using the `LINGUAS' environment variable (*note Installers::).

And further:

           Internationalized packages have usually many `LL.po' files.  Unless
        translations are disabled, all those available are installed together
        with the package.  However, the environment variable `LINGUAS' may be
        set, prior to configuration, to limit the installed set.  `LINGUAS'
        should then contain a space separated list of two-letter codes, stating
        which languages are allowed.

I think this is a really nice solution, because no editing of any file
whatsoever is required.  On top of that, it's really easy to implement
in intltool.

Opinions?

Cheers,
--Daniel




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