Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455060 - l10n eclass uses not do use replacement for linguas
Summary: l10n eclass uses not do use replacement for linguas
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Low critical (vote)
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-01 22:28 UTC by Tomáš Chvátal (RETIRED)
Modified: 2014-03-12 12:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Chvátal (RETIRED) gentoo-dev 2013-02-01 22:28:07 UTC
The problem here is visible on application net-misc/mirall.

It names the czech translations as cs_CZ, but only valid LINGUA variable is cs.

This leads to (by-default) not installing czech translations for me. I suppose there should be some way to allow setting mapping of the translations to allow us to rename the crazily set upstream translations to make them work.

The same apply also for sk_SK which is just sk, etc etc...
Comment 1 Sergey Popov gentoo-dev 2013-04-28 09:38:42 UTC
(In reply to comment #0)
> The problem here is visible on application net-misc/mirall.
> 
> It names the czech translations as cs_CZ, but only valid LINGUA variable is
> cs.

Just FYI, similar problem(about russian local) was discussed in bug #429384
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-28 09:58:32 UTC
By default all linguas should be used in the short ISO (sk, ru, etc), and only if there are more variants en_GB en_US it should be expanded with default over the basic one so there would be en-> en_US; en_GB -> en_GB.
Comment 3 Ben de Groot (RETIRED) gentoo-dev 2013-04-29 08:51:04 UTC
(In reply to comment #2)
> By default all linguas should be used in the short ISO (sk, ru, etc), and
> only if there are more variants en_GB en_US it should be expanded with
> default over the basic one so there would be en-> en_US; en_GB -> en_GB.

Care to elaborate? Why should the short forms be used, and how should they be expanded/mapped to long forms?

I have chosen to keep the eclass simple, and just follow upstream naming choices. But patches can be accepted.
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2013-04-29 10:26:35 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > By default all linguas should be used in the short ISO (sk, ru, etc), and
> > only if there are more variants en_GB en_US it should be expanded with
> > default over the basic one so there would be en-> en_US; en_GB -> en_GB.
> 
> Care to elaborate? Why should the short forms be used, and how should they
> be expanded/mapped to long forms?
> 
> I have chosen to keep the eclass simple, and just follow upstream naming
> choices. But patches can be accepted.

Census is that language uses ISO 639-1 code unless there is need for more granluation where the default mutation still keeps that ISO and others use the long syntax or stick to the other mutations of iso639.
Comment 5 Johannes Huber (RETIRED) gentoo-dev 2014-03-11 14:03:06 UTC
Dropping kde from cc as the mentioned package is not maintained by us anymore and we don't depend on the l10n.eclass.
Comment 6 Ben de Groot (RETIRED) gentoo-dev 2014-03-12 12:41:52 UTC
Since no patches or proposals on how to tackle this issue have been provided, I am closing this as "won't fix" for now. Please feel free to reopen when there is a proposal or patch.