A question about locale files

Kevin Kofler kevin.kofler at chello.at
Tue Apr 27 23:00:27 UTC 2010

Robin 'cheese' Lee wrote:
> /usr/share/locale/es_MX/LC_MESSAGES/gentoo.mo

I'd suggest:
mv %{_buildroot}%{_datadir}/locale/es_MX %{_buildroot}%{_datadir}/locale/es
if they don't provide a separate es(_ES) translation. Mexican Spanish is not 
so different from Castillian Spanish that it can't be understood.

> /usr/share/locale/ja_JP.UTF-8/LC_MESSAGES/gentoo.mo

mv %{_buildroot}%{_datadir}/locale/ja_JP.UTF-8 \

UTF-8 is the default encoding, this should be the default translation for 

> /usr/share/locale/ru_RU.CP1251/LC_MESSAGES/gentoo.mo
> /usr/share/locale/ru_RU.KOI8-R/LC_MESSAGES/gentoo.mo
> /usr/share/locale/ru_RU.UTF-8/LC_MESSAGES/gentoo.mo
> /usr/share/locale/ru_RU.cp1251/LC_MESSAGES/gentoo.mo
> /usr/share/locale/ru_RU.koi8r/LC_MESSAGES/gentoo.mo
> /usr/share/locale/ru_RU.utf8/LC_MESSAGES/gentoo.mo

mv %{_buildroot}%{_datadir}/locale/ru_RU.UTF-8 \
rm -rf %{_buildroot}%{_datadir}/locale/ru_RU.*

Again, UTF-8 is the default, and gettext automatically recodes messages if 
needed, so it makes no sense to install all these variants.

        Kevin Kofler

More information about the devel mailing list