"sl" as language code for slovenian translation incorrect?

2,483 views
Skip to first unread message

Gregor Müllegger

unread,
Mar 7, 2011, 3:30:15 AM3/7/11
to Django developers
Hi,

I just discovered some oddity in the naming of the "sl" (SL -
slovenian) locale. The company I'm currently working for has in-house
translations of some of their apps into the slovenian language and
they use the ISO code "si" (SI) -- which differs from django, which
uses "sl" (SL).

According to the URL that is referenced in django's project
settings.py-template [1] and Wikipedia [2][3] is the correct ISO code
for the slovenian language "si" (SI) which means django might differ
here from the ISO standard. The "sl" (SL) code should be reserved for
"Sierra Leone".


Is there any reason why the ISO codes are different here from their
use in django? Maybe there is some historical background.

Thanks for your efforts,
Gregor

[1] http://www.i18nguy.com/unicode/language-identifiers.html
[2] http://en.wikipedia.org/wiki/ISO_3166-1
[3] http://en.wikipedia.org/wiki/Slovenia

Jannis Leidel

unread,
Mar 7, 2011, 3:46:43 AM3/7/11
to django-d...@googlegroups.com
On 07.03.2011, at 09:30, Gregor Müllegger wrote:

> I just discovered some oddity in the naming of the "sl" (SL -
> slovenian) locale. The company I'm currently working for has in-house
> translations of some of their apps into the slovenian language and
> they use the ISO code "si" (SI) -- which differs from django, which
> uses "sl" (SL).
>
> According to the URL that is referenced in django's project
> settings.py-template [1] and Wikipedia [2][3] is the correct ISO code
> for the slovenian language "si" (SI) which means django might differ
> here from the ISO standard. The "sl" (SL) code should be reserved for
> "Sierra Leone".
>
> Is there any reason why the ISO codes are different here from their
> use in django? Maybe there is some historical background.

No historical reason needed, Django has the correct language code. As with any other language we rely on ISO 639 ("Codes for the representation of names of languages") [1] (and it's children), which lists "sl" for Slovanian (ISO 639-1 [2]), according to Wikipedia [3].

Jannis

1: http://en.wikipedia.org/wiki/ISO_639
2: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
3: http://en.wikipedia.org/wiki/Slovene_language

Kenneth Gonsalves

unread,
Mar 7, 2011, 3:55:03 AM3/7/11
to django-d...@googlegroups.com
On Mon, 2011-03-07 at 09:46 +0100, Jannis Leidel wrote:
> > Is there any reason why the ISO codes are different here from their
> > use in django? Maybe there is some historical background.
>
> No historical reason needed, Django has the correct language code. As
> with any other language we rely on ISO 639 ("Codes for the
> representation of names of languages") [1] (and it's children), which
> lists "sl" for Slovanian (ISO 639-1 [2]), according to Wikipedia [3].

country code is SI, language code is sl
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

Gregor Müllegger

unread,
Mar 7, 2011, 6:08:39 AM3/7/11
to django-d...@googlegroups.com
Ay, makes sense :-)

Thanks to both of you.

2011/3/7 Kenneth Gonsalves <law...@thenilgiris.com>:

> --
> You received this message because you are subscribed to the Google Groups "Django developers" group.
> To post to this group, send email to django-d...@googlegroups.com.
> To unsubscribe from this group, send email to django-develop...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages