locales

Paul Howarth paul at city-fan.org
Mon Jun 19 15:43:48 UTC 2006


On Mon, 2006-06-19 at 08:07 -0700, Wart wrote:
> Paul Howarth wrote:
> > On Sun, 2006-06-18 at 15:49 -0700, Wart wrote:
> > 
> >>Paul wrote:
> >>
> >>>>A package that I'm reviewing[1] keeps its language translation files in
> >>>>%{_datadir}/%{name} instead of %{_datadir}/locale.  Are there any rules
> >>>>about using %find_lang when an application doesn't use
> >>>>%{_datadir}/locale for the translation files?
> >>>
> >>>
> >>>I thought languages had to be in the locale directory for them to be
> >>>picked up automatically.
> >>
> >>I interpret this to mean that an application is free to store language
> >>translation files in its own data directory, and in such a case the spec
> >>file must include the language files in %files, and use of %find_lang is
> >>not needed.
> > 
> > 
> > If the language files are listed in %files, be sure to use the %lang tag
> > to identify the language of each file; this would happen automatically
> > with %find_lang.
> 
> I've never seen %lang() used before.  I assume that this lets users
> select which language files they want installed for the application, no?
>  If so, how does %lang() interface with the rpm command line?

I don't think there is a command-line interface, but rpm can be
configured (don't know how offhand) to have a list of languages you
want, and then not install files for other languages, which can save a
lot of disk space.

Paul.





More information about the fedora-extras-list mailing list