User:Eroen/locale-eo

This article explains how to obtain an Esperanto locale on Gentoo, by shamelessly stealing Debian's implementation.

For more general information on locales, see Localization. If you are following that as a guide, the procedure described here should be done before the "Generate locales" stage.

The process will create a number of temporary files, so do it in a temporary directory.

Download the latest version of Debian's Esperanto patch.

The patch contains both the new locale and a modification to the list of valid locales. We need to remove the unnecessary modification from the patch and extract the new locale file. Here we remove the unnecessary modification with filterdiff from, but if you are familiar with the unified diff format you can do it manually with an editor.

Now, manually install the locale file.

The Esperanto locale can now be generated like any other locale by adding it to.

After running locale-gen, the Esperanto locale should be completely usable. For example:

How you could have found the patch yourself
Say you start with the knowlege that Debian has locales in a package named "locales".

http://packages.debian.org/wheezy/locales

That is a virtual, which is provided by "locales-all".

http://packages.debian.org/wheezy/locales-all

This is still a distribution-only package, but clicking on the "Developer Information (PTS)" link takes us to the developer page for the source package, "eglibc".

http://packages.qa.debian.org/e/eglibc.html

Aha! A link to a repository. Click "Browse".

http://anonscm.debian.org/viewvc/pkg-glibc/glibc-package/

After some treasure-hunting, you'll find the patch you were looking for, 4 folders deep in the repository.

http://anonscm.debian.org/viewvc/pkg-glibc/glibc-package/trunk/debian/patches/localedata/locale-eo_EO.diff?view=log