How can I create lb_LU locale

Asked by René Brandenburger

How can I test a luxembourgish translation? I'm not able to select or create the lb_LU locale. I tryed to create it starting from the de_LU file, but failed to get localedef to process my file.

 Any advice greatly appreciated.

regards
rene brandenburger

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Pit Wenkin
Solved:
Last query:
Last reply:
Revision history for this message
Pit Wenkin (pit-wenkin) said :
#1

Having English as my system language i simply put .mo files of programs i translated into the '/usr/share/locale-langpack/en/LC_MESSAGES/' folder (with sudo). And after restarting the programs they were translated.

So i would say one has to put the .mo in the '/usr/share/locale-langpack/*/LC_MESSAGES/' folder where * stands for the system language

I don't know if there are any other/better ways, but it worked for me.

Cheers
Pit Wenkin

Revision history for this message
Pit Wenkin (pit-wenkin) said :
#2

I added a functional lb_LU locale to the linked bug: https://bugs.launchpad.net/ubuntu/+source/langpack-locales/+bug/524712/comments/6

Create the folders '/usr/lib/locale/lb_LU' and '/usr/lib/locale/lb_LU.utf8'

Copy the lb_LU locale to '/usr/share/i18n/locales/'

Go to '/usr/lib/locale/'

Run 'localedef -i lb_LU -c -f UTF-8 ./lb_LU' and 'localedef -i lb_LU -c -f UTF-8 lb_LU.utf8'

See: http://web.archive.org/web/20061014011601/www.student.uit.no/~pere/linux/glibc/howto.html

Under System -> Administration -> Language Support move Luxembourgish to the top of the list (maybe restart required)

As mentioned in my first answer:

Put the .mo files you want to test into '/usr/share/locale-langpack/lb_LU/LC_MESSAGES/' (or lb_LU.utf8)

Revision history for this message
Best Pit Wenkin (pit-wenkin) said :
#3

If I understand this patch correct, the lb_LU locale will be available in Ubuntu Natty (11.04)

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/natty/langpack-locales/natty/revision/76

Revision history for this message
René Brandenburger (rene-brandenburger) said :
#4

This works fine ...

Revision history for this message
René Brandenburger (rene-brandenburger) said :
#5

Thanks Pit Wenkin, that solved my question.