[Pkg-isocodes-devel] [Bug 233674] kipi-plugins: unknown-locale-code hne i8n

Raphael Geissert geissert at debian.org
Fri Apr 9 21:21:45 UTC 2010


[should probably drop some CCs as this is becoming partially
off-topic; adding CC to eglibc]

On 9 April 2010 12:59, Christian PERRIER <bubulle at debian.org> wrote:
> Actually, if a locale doesn't exist in the glibc, translations for
> that locale won't be used, so checking against
> /usr/share/i18n/SUPPORTED seems to be the right thing to do.

If that's true, then (after playing with Contents-i386.gz), by
comparing /usr/share/locale/*/ with the locales in SUPPORTED:
Locale 'ab' is not supported
Locale 'ace' is not supported
Locale 'ak' is not supported
Locale 'ang' is not supported
Locale 'ara' is not supported
Locale 'ar_PS' is not supported
Locale 'ay' is not supported
Locale 'az_IR' is not supported
Locale 'bal' is not supported
Locale 'be at latin' is not supported
Locale 'bem' is not supported
Locale 'be-tarask' is not supported
Locale 'bi' is not supported
Locale 'bist' is not supported
Locale 'C' is not supported
Locale 'cat' is not supported
Locale 'ca at valencia' is not supported
Locale 'ckb' is not supported
Locale 'cn' is not supported
Locale 'cn_ZH' is not supported
Locale 'co' is not supported
Locale 'cpf' is not supported
Locale 'cpp' is not supported
Locale 'cs_CZ.utf8' is not supported
Locale 'cs-windows-1250' is not supported
Locale 'cz' is not supported
Locale 'de_DE.utf8' is not supported
Locale 'dk' is not supported
Locale 'dv' is not supported
Locale 'en at boldquot' is not supported
Locale 'en_IGID' is not supported
Locale 'en at quot' is not supported
Locale 'en at shaw' is not supported
Locale 'en_UK' is not supported
Locale 'en_US at piglatin' is not supported
Locale 'en_US.utf8' is not supported
Locale 'es_ES.utf8' is not supported
Locale 'fa_AF' is not supported
Locale 'ff' is not supported
Locale 'fi_FI.utf8' is not supported
Locale 'fr_FR.utf8' is not supported
Locale 'fr_FX' is not supported
Locale 'frp' is not supported
Locale 'gn' is not supported
Locale 'gos' is not supported
Locale 'gr' is not supported
Locale 'haw' is not supported
Locale 'io' is not supported
Locale 'it_IT.utf8' is not supported
Locale 'jbo' is not supported
Locale 'jp' is not supported
Locale 'jv' is not supported
Locale 'kab' is not supported
Locale 'kok' is not supported
Locale 'kos' is not supported
Locale 'la' is not supported
Locale 'lb' is not supported
Locale 'mal' is not supported
Locale 'malkovich' is not supported
Locale 'md' is not supported
Locale 'mus' is not supported
Locale 'mvo' is not supported
Locale 'my' is not supported
Locale 'my_MM' is not supported
Locale 'nap' is not supported
Locale 'nl_NL.utf8' is not supported
Locale 'no' is not supported
Locale 'no_NO' is not supported
Locale 'no_NY' is not supported
Locale 'oj' is not supported
Locale 'pis' is not supported
Locale 'pms' is not supported
Locale 'ps' is not supported
Locale 'pseudo' is not supported
Locale 'pt-br' is not supported
Locale 'qu' is not supported
Locale 'racv' is not supported
Locale 'rm' is not supported
Locale 'ru_RU.cp1251' is not supported
Locale 'ru_RU.koi8r' is not supported
Locale 'ru_RU.utf8' is not supported
Locale 'sco' is not supported
Locale 'son' is not supported
Locale 'sp' is not supported
Locale 'sr at ije' is not supported
Locale 'sr at ijekavian' is not supported
Locale 'sr at ijekavianlatin' is not supported
Locale 'sr at latin' is not supported
Locale 'sr at Latn' is not supported
Locale 'sw' is not supported
Locale 'tet' is not supported
Locale 'tlh' is not supported
Locale 'tpi' is not supported
Locale 'tvl' is not supported
Locale 'tw' is not supported
Locale 'twi' is not supported
Locale 'tzo' is not supported
Locale 'ua' is not supported
Locale 'urd' is not supported
Locale 'uz at cyrillic' is not supported
Locale 'wal' is not supported
Locale 'x-test' is not supported
Locale 'xx' is not supported
Locale 'zam' is not supported
Locale 'zh_cn' is not supported
Locale 'zh_TW.Big5' is not supported
Total: 106
Total excluding anything after [@_.-]: 67

However, if I compare that list with the codes of ISO 639-1..3
(excluding anything after [@_.-] -- similar to lintian's check):

Locale 'bist' is not supported
Locale 'C' is not supported
Locale 'cn' is not supported
Locale 'cz' is not supported
Locale 'dk' is not supported
Locale 'gr' is not supported
Locale 'jp' is not supported
Locale 'malkovich' is not supported
Locale 'md' is not supported
Locale 'pseudo' is not supported
Locale 'racv' is not supported
Locale 'sh' is not supported
Locale 'sp' is not supported
Locale 'ua' is not supported
Locale 'x' is not supported
Locale 'xx' is not supported
Total: 16

So, we have 67 - 16 = 51 locales that are not supported by glibc but
that we ship translations for. Great.

Something needs to be done.

> I'm not sure, though, that it is really a good idea to check PO files
> against supported locales, for "upstream" translations (ie non-debconf
> ones) with lintian. The only case where it's relevant to lintian,
> imho, is the case where the package is native (so "upstream" is
> Debian).

In fact, what lintian checks is the name of subdirectories of
/usr/share/locale. It doesn't check po files.

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net



More information about the Pkg-isocodes-devel mailing list