You are not logged in.

#1 2010-01-16 12:10:32

Fractal
Member
From: Paris
Registered: 2009-09-01
Posts: 38

Esperanto locale in glibc

Hi,

I would like to have an esperanto locale on my computer, but in /etc/locale.gen, there is nothing between these two lines :

#en_ZW ISO-8859-1  
#es_AR.UTF-8 UTF-8

After googling, I found that the maintainer of glibc doesn't want at all add the support for esperanto (without giving any argument…), but that many distro, like Debian, Red Hat and Mandriva have already patched their glibc to add an esperanto locale.

Couldn't it be possible to also add the esperanto locale in Arch Linux' glibc?

I guess the answer is "not", because Arch Linux doesn't want to use patches which haven't be approved upstream, but wouldn't it be nice?

And if not, how can I patch myself my system in order to have the esperanto locale? I don't know how locales work, so I don't know what file should be added where, and what should be recompiled,


Thank you


Fractal wink


English is not my native language, so fell free to correct my mistakes.

Offline

#2 2010-01-16 12:21:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: Esperanto locale in glibc

I am the maintainer of glibc and my argument is that it is Arch policy not to include patches not included upstream (unless it fixes a build issue).  That and I do not want to support such patches.

You can rebuild glibc using the relevant patch if you want.  Check out the ABS wiki article.

Offline

#3 2010-01-16 12:55:37

Fractal
Member
From: Paris
Registered: 2009-09-01
Posts: 38

Re: Esperanto locale in glibc

I was not talking about you when I told "the maintainer of glibc", but about Ulrich Dreeper, the "upstream maintainer" of glibc, sorry if I have been misunderstood.
I completely understand your decision and will not try to argue against that.

So my question becomes : what are the files to change to add a locale? Do I really need to recompile glibc? Couldn't I just put the good file at the good place and run locale-gen?
BTW, there is a directory /usr/share/locale/eo on my computer, what is it for if there is no esperanto locale?

Thank you smile


Fractal wink


English is not my native language, so fell free to correct my mistakes.

Offline

#4 2010-01-16 19:00:04

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Esperanto locale in glibc

There is no need to recompile glibc. smile
I did the following:
- copied the "eo" definition file from debian to /usr/share/i18n/locales
  (if not readily available you may try to copy the definition from here)
- added the line "eo UTF-8" to my /etc/locale.gen
- called "locale-gen" to generate the locales which appeard to work (though I did not really check yet)

root:~# ls /usr/share/locale/eo
LC_MESSAGES
root:~# ls /usr/share/locale/eo/LC_MESSAGES/
atk10.mo              gnome-mag.mo           libgnomeui-2.0.mo
at-spi.mo             gnome-mime-data.mo     libgtop-2.0.mo
bash.mo               gnome-vfs-2.0.mo       libidn.mo
dialog.mo             gnupg2.mo              libwnck.mo
diffutils.mo          gnupg.mo               libxine1.mo
ekiga.mo              grep.mo                mutt.mo
findutils.mo          gtk20.mo               popt.mo
freeciv.mo            gtk20-properties.mo    sed.mo
frozen-bubble.mo      gtkspell.mo            shared-mime-info.mo
gedit.mo              inkscape.mo            stellarium.mo
gettext-runtime.mo    iso_15924.mo           stellarium-skycultures.mo
gimp20-libgimp.mo     iso_3166_2.mo          texinfo.mo
gimp20.mo             iso_3166.mo            wget.mo
gimp20-python.mo      iso_639_3.mo           xine-ui.mo
gimp20-script-fu.mo   iso_639.mo             xkeyboard-config.mo
gimp20-tips.mo        libbonobo-2.0.mo       yelp.mo
glib20.mo             libgnome-2.0.mo
gnome-desktop-2.0.mo  libgnomecanvas-2.0.mo

So now is there a glib20.mo entry and the "locale -a" command reports:

bp:~$ locale -a
C
de_DE@euro
de_DE.iso885915@euro
de_DE.utf8
en_US
en_US.iso88591
en_US.utf8
eo
eo.utf8
POSIX

Alas, I don't have the time to really check it out yet. Perhaps you could try and report back. smile

Last edited by bernarcher (2010-01-16 19:02:21)


To know or not to know ...
... the questions remain forever.

Offline

#5 2010-01-16 20:51:01

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Esperanto locale in glibc

If this works out alright, I'd suggest writing a PKGBUILD and submitting it to AUR. I'm sure that a number of people would appreciate it.

Offline

#6 2010-01-17 13:18:56

Fractal
Member
From: Paris
Registered: 2009-09-01
Posts: 38

Re: Esperanto locale in glibc

It works smile

Thank you smile
I will try to make a PKGBUILD for that.

Fractal wink


English is not my native language, so fell free to correct my mistakes.

Offline

#7 2012-12-11 11:59:51

Airon90
Member
From: Canegrate
Registered: 2012-12-11
Posts: 60
Website

Re: Esperanto locale in glibc

So, is there a AUR package for this patch?
Thank you for the answer smile

Offline

#8 2012-12-11 13:30:20

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: Esperanto locale in glibc

The situation has changed with upstream glibc maintenance - it will likely be possible to get the locale included upstream.   (my decision has not changed about including it in the Arch package...)

Offline

#9 2012-12-13 21:24:22

Fractal
Member
From: Paris
Registered: 2009-09-01
Posts: 38

Re: Esperanto locale in glibc

Airon90 wrote:

So, is there a AUR package for this patch?
Thank you for the answer smile

Yes there is one, it’s called esperanto-locale.


English is not my native language, so fell free to correct my mistakes.

Offline

Board footer

Powered by FluxBB