missing lb_LU locale

Bug #524712 reported by René Brandenburger
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
GLibC
Fix Released
Medium
Ubuntu Translations
Fix Released
Undecided
Unassigned
langpack-locales (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

the locale for luxembourgish is missing

Tags: needs-locale
Pit Wenkin (pit-wenkin)
tags: added: needs-locale
Revision history for this message
Pit Wenkin (pit-wenkin) wrote :

Refering to the comments in this bug: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/451204
i tried to fill out requested informations.

The basic alphabet is: Aa Ää Bb Cc Dd Ee Ëë Éé Èè Êê Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Öö Pp Qq Rr Ss Tt Uu Üü Vv Ww Xx Yy Zz

Days of week:
Sonndeg (Sunday) - short So
Méindeg (Monday) - Méi
Dënschdeg (Tuesday) - Dë
Mëttwoch (Wednesday) - Më
Donneschdeg (Thursday) - Do
Freideg (Friday) - Fr
Samschdeg (Saturday) - Sa

The week itself starts on Monday.

Month names:
Januar (January) - short Jan
Februar (February) Feb
Mäerz (March) Mäe
Abrëll (April) Abr
Mee (May) Mee
Juni (June) Jun
Juli (July) Jul
August (August) Aug
September (September) Sep
Oktober (October) Okt
November (November) Nov
Dezember (December) Dez

lang_name=Lëtzebuergesch

name_mr -> Här
name_mrs -> Madame
name_miss -> Joffer
name_ms -> Madame

Country name in Luxembourgish is "Lëtzebuerg", abbreviated to "Ltz".

Language iso code:
ISO 639-1 lb

ISO 639-2 ltz

ISO 639-3 ltz

Country iso code:
ISO 3166 code LU

Revision history for this message
Pit Wenkin (pit-wenkin) wrote :

I just tried do create the lb_LU locale:

I did several things, some of them might be stupid and/or wrong:

I added:
"lb_LU.UTF-8 UTF-8
lb_LU ISO-8859-15" to /usr/share/i18n/SUPPORTED

I added:
"lb_LU.UTF-8 UTF-8" to /etc/locale.gen

I added:
"lb_LU" to /var/lib/locales/supported.d

I run:
'dpkg-reconfigure locales' and 'locale-gen lb_LU'

At some time "lb_LU.UTF-8 UTF-8" showed up in /var/lib/locales/supported.d/local

But I get the error:
root@pit-laptop:/var/lib/locales/supported.d# locale-gen lb_LU
Generating locales...
  lb_LU.UTF-8... lb_LU:1: syntax error: not inside a locale definition section
No definition for LC_CTYPE category found
No definition for LC_NUMERIC category found
No definition for LC_TIME category found
No definition for LC_COLLATE category found
No definition for LC_MONETARY category found
No definition for LC_MESSAGES category found
No definition for LC_PAPER category found
No definition for LC_NAME category found
No definition for LC_ADDRESS category found
No definition for LC_TELEPHONE category found
No definition for LC_MEASUREMENT category found
No definition for LC_IDENTIFICATION category found
failed
Generation complete.

What is the 'locale definition section'?

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for working on this! However, we need a fully working locale definition file before we can include this. Unfortunately there is very little documentation about this; http://www.hungry.com/~pere/linux/glibc/howto.html has some hints and pointers, but looking into the already existing locales should make this feasible.

affects: glibc (Ubuntu) → langpack-locales (Ubuntu)
Changed in langpack-locales (Ubuntu):
status: New → Incomplete
Revision history for this message
David Planella (dpm) wrote : Re: [Bug 524712] Re: missing lb_LU locale

El dt 25 de 01 de 2011 a les 10:14 +0000, en/na Martin Pitt va escriure:
> Thanks for working on this! However, we need a fully working locale
> definition file before we can include this. Unfortunately there is very
> little documentation about this;
> http://www.hungry.com/~pere/linux/glibc/howto.html has some hints and
> pointers, but looking into the already existing locales should make this
> feasible.
>

We've also got additional information here:
https://wiki.ubuntu.com/Translations/KnowledgeBase/AddingNewLanguage

It contains the above and other links of interest and explains how to
submit a locale definition upstream.

--
David Planella
Ubuntu Translations Coordinator
www.ubuntu.com / www.davidplanella.wordpress.com
www.identi.ca/dplanella / www.twitter.com/dplanella

Revision history for this message
Pit Wenkin (pit-wenkin) wrote :

Hi,

thanks for those links they helped me a lot.

I started from scratch and it seems like I have created a correct lb_LU locale. At least localedef does not throw any errors or warning.
And i got files for every LC_* type i defined in the locale in /usr/lib/locale/lb_LU

I did however use 'copy "de_DE"' for some LC_* types and when checking my locale with 'LANG=lb_LU date' I get a Date formatted as I defined it, but with german abbreviation for day.

I don't know where the mistake comes from. I will check again if i did not copy-paste something from the de_DE locale.

But could anyone try i my locale works for them to?

PS. I did not find any documentation on LC_MEASUREMENT, LC_TELEPHONE, LC_NAME and LC_ADDRESS, so I did a lot of guessing/comparing with german, french and english locales. I hope everything is right.

If this locale is right i will also do lb_BE, lb_DE and lb_FR.

Revision history for this message
Pit Wenkin (pit-wenkin) wrote :

The wrong abbreviation for the date was due to the fact that is misspelled something,

I fixed this and changed date and time representation.

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks! It builds fine for me, I committed it to the packaging bzr for now, but didn't upload yet.

At least the time/date names look reasonable to me; I assume that "Januar", "Februar" etc. are not just copy&paste errors from the original German locale, but actually correct in your language?

$ LC_ALL=lb_LU.utf8 locale -c LC_TIME
LC_TIME
So;Mé;Dë;Më;Do;Fr;Sa
Sonndeg;Méindeg;Dënschdeg;Mëttwoch;Donneschdeg;Freideg;Samschdeg
Jan;Feb;Mäe;Abr;Mee;Jun;Jul;Aug;Sep;Okt;Nov;Dez
Januar;Februar;Mäerz;Abrëll;Mee;Juni;Juli;August;September;Oktober;November;Dezember

Can you please also submit that to upstream at http://sources.redhat.com/bugzilla/enter_bug.cgi?product=glibc (localedata component)?

Thanks!

Changed in langpack-locales (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
status: Incomplete → Fix Committed
Revision history for this message
In , Pitwenkin (pitwenkin) wrote :

Created attachment 5216
locale file for lb_LU

Hi,

I created the locale for Luxembourgish an would like to ask for it to be included in glibc.

Attached the locale data file for Luxembourgish (Luxembourg) (lb_LU).

Kind reards,
Pit Wenkin

Revision history for this message
Pit Wenkin (pit-wenkin) wrote :

Hi,

yes the month dates are mostly the same as in German.
http://lb.wikipedia.org/wiki/Mount#Nimm_vun_den_12_M.C3.A9int -> first column for complete name, third for abbreviation and forth for German complete name

I submitted the bug:http://sourceware.org/bugzilla/show_bug.cgi?id=12449

Many thanks!

Revision history for this message
Xavier Maquil (reivax84) wrote :

Hello,

I can confirm that these nominations are correct.

Revision history for this message
Martin Pitt (pitti) wrote :

Perfect, thanks!

Changed in ubuntu-translations:
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package langpack-locales - 2.13+git20100825-2

---------------
langpack-locales (2.13+git20100825-2) natty; urgency=low

  * Add ubuntu-lb_LU.patch: Add locale for Luxembourgish Luxembourg, thanks to
    Pit Wenkin! (LP: #524712)
 -- Martin Pitt <email address hidden> Fri, 28 Jan 2011 13:47:41 +0100

Changed in langpack-locales (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
In , Drepper-fsp (drepper-fsp) wrote :

I added the file.

Changed in glibc:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.