Re: Changes to rpmstrate (or localedrake?) for zh_TW

"Funda Wang" <[email protected]>
Newsgroups gmane.linux.mandrake.cooker.internationalization
Message-ID <[email protected]>
2007/2/12, Pixel <pixel-4qZELD6FgxhWk0Htik3J/[email protected]>:
> pablo-4qZELD6FgxhWk0Htik3J/[email protected] writes:
>
> > Currently I think all the locales in the LANGUAGE variable of all
> > requested languages are concantened together; and all packages for all
> > of those locales are installed.
> > So the behaviour should be changed to:
> >
> > * for each requested language do:
> >       * look at its LANGUAGE variable, and install packages for
> >         the first matching locale (it may be different locales for
> >         different packages)
>
> currently it's not done that way at all, since it can't work for
> mozilla-firefox-*. we do:
>
> for each package do:
>    * if it requires locales-xxx, select it iff that locales is
>    selected
>
> we'll have to change one day, so that rpmsrate format can be
> simplified and get rid of clean-rpmsrate. for this, virtual provides
> must be added, even for things like mozilla-firefox-* which do not
> have a main package, only l10n packages (kde-i18n-*, koffice-i18n-*,
> koffice-l10n-* already have a provide)
>
> when it's done, we can replace "mozilla-firefox-de mozilla-firefox-fr"
> to be expanded by clean-rpmsrate into "main-firefox-l10n", and then we
> can do what you suggested
The most wanted behaviour is:
# cat mozilla-firefox.spec
<snip>
Suggests: mozilla-firefox-l10n
# cat mozilla-firefox-l10n-zh_CN.spec
<snip>
Provides: mozilla-firefox-l10n
# urpmi mozilla-firefox
Scanning locales...Done
Package mozilla-firefox suggest following packages to be installed:
mozilla-firefox-l10n-zh_CN (0.2MB to be used)
mozilla-firefox-l10n-fr
Do you want to install it? (Y/n)
# urpmi mozilla-firefox --auto
Note: Following packages is to be installed due to mozilla-firefox
suggests mozilla-firefox-l10n:
mozilla-firefox-l10n-zh_CN, mozilla-firefox-l10n-fr
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.