FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 04-26-2010, 04:05 PM
Przemek Klosowski
 
Default A question about locale files

Am 26.04.2010 17:46, schrieb Robin 'cheese' Lee:

>> It installs following locale files:
>>...
>> /usr/share/locale/ru_RU.CP1251/LC_MESSAGES/gentoo.mo
>> ...
>> There are some issues here:
>> 1. Directories like /usr/share/locale/ru_RU.* are not provided by any
>> package. This conflicts with guidelines.
>> 2. /usr/share/locale/ru_RU.utf8 and /usr/share/locale/ru_RU.UTF-8/ are
>> obvious duplicates.
>> 3. /usr/share/locale/ru_RU.UTF-8/ should be identical with
>> /usr/share/locale/ru/, /usr/share/locale/ja_JP.UTF-8/ should be
>> identical with /usr/share/locale/ja/ .
>>
>> Which is the proper way to solve these issues?
>

and Felix Kaechele responded :

> http://fedoraproject.org/wiki/Packaging/Guidelines#Handling_Locale_Files
> will definitely help you.

I think the guidelines Felix mentioned will simply
locate the locale files and make sure they end up on
the %files list, so the package will be complete, but
they do not address the issue of whether the location is
compatible with the Fedora standard layout guidelines.
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 04-27-2010, 10:04 PM
Christoph Wickert
 
Default A question about locale files

Am Montag, den 26.04.2010, 23:46 +0800 schrieb Robin 'cheese' Lee:

> 1. Directories like /usr/share/locale/ru_RU.* are not provided by any
> package. This conflicts with guidelines.

file a bug against the filesystem package because it should provide a
proper skeleton for the locales.

> 2. /usr/share/locale/ru_RU.utf8 and /usr/share/locale/ru_RU.UTF-8/ are
> obvious duplicates.
> 3. /usr/share/locale/ru_RU.UTF-8/ should be identical with
> /usr/share/locale/ru/, /usr/share/locale/ja_JP.UTF-8/ should be
> identical with /usr/share/locale/ja/ .

We assume UTF-8 by default, so I guess you can kill the folders
with .UTF-8. Disclaimer: I'm not sure about local peculiarities though.

Regards,
Christoph

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 04-27-2010, 10:43 PM
Christoph Wickert
 
Default A question about locale files

Am Mittwoch, den 28.04.2010, 00:05 +0200 schrieb Christoph Wickert:
> Am Montag, den 26.04.2010, 23:46 +0800 schrieb Robin 'cheese' Lee:
>
> > 1. Directories like /usr/share/locale/ru_RU.* are not provided by any
> > package. This conflicts with guidelines.
>
> file a bug against the filesystem package because it should provide a
> proper skeleton for the locales.

Ok, I have to correct my previous statement. No need to file a bug
because these directories should not be there.

Regards,
Christoph


--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 04-27-2010, 10:54 PM
Kevin Kofler
 
Default A question about locale files

Christoph Wickert wrote:
>> 1. Directories like /usr/share/locale/ru_RU.* are not provided by any
>> package. This conflicts with guidelines.
>
> file a bug against the filesystem package because it should provide a
> proper skeleton for the locales.

No, it's this package (gentoo) which is broken. gettext automatically
recodes text, so it makes no sense whatsoever to provide separate
translations in multiple encodings.

Kevin Kofler

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 04-27-2010, 11:00 PM
Kevin Kofler
 
Default A question about locale files

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
%{_buildroot}%{_datadir}/locale/ja

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

> /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
%{_buildroot}%{_datadir}/locale/ru
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

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 04-28-2010, 02:08 AM
Robin 'cheese' Lee
 
Default A question about locale files

On 04/28/2010 07:00 AM, Kevin Kofler wrote:
> 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
> %{_buildroot}%{_datadir}/locale/ja
>
> UTF-8 is the default encoding, this should be the default translation for
> ja.
>
>
>> /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
> %{_buildroot}%{_datadir}/locale/ru
> 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
>
>
And I found the translations included in gentoo even do not actually
function. You will run the same English version with "LANG=ru_RU.UTF-8"
or "LANG=ja_jp.UTF-8" or what so ever. I have forwarded all these issues
upstream. In the latest build, I suppressed the traslations from building.

And so, I may hope for a guideline which talks about proper locale names.

Cheers!

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 

Thread Tools




All times are GMT. The time now is 10:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org