[Cartoweb-users] Installation of gettext

Jean-Guilhem Cailton jgc at arkemie.com
Fri Jan 6 05:34:44 EST 2006


I had the same problem than you, with the test scripts saying that Gettext was not installed correctly. I think that, at least for me, the problem came from the fact that Cartoweb uses two letters codes for the language, such as de, en or fr, whereas my system (Debian Testing) uses longer locale names, such as fr_FR or fr_FR at euro.

Here is how I fixed it :
- in /usr/share/i18n/locales, added a symbolic link "fr" pointing to "fr_FR at euro" :
ln -s fr_FR at euro fr

- added a line to /etc/locale.gen (editing /etc/locale.alias does not seem to be enough) :
fr ISO-8859-15

- run locale-gen.

After doing this, the sh and php tests say "Gettext is OK, well done !", and the version of the demo project in French becomes available.

Happy new year to all, and big thanks to those that brought us Cartoweb.

Best regards,


----- Message d'origine ----- 
De : "Andreas Kreis" <andreas.kreis at akrs.ch>
À : <cartoweb-users at lists.maptools.org>
Envoyé : mardi 3 janvier 2006 14:46
Objet : [Cartoweb-users] Installation of gettext


Testing my gettext installation with the script "testgettext.sh" gives
the message

Gettext is not installed correctly !

However, "apt-get gettext" says that the newset version is installed and
I have edited "locales.alias" and run "locale-gen". "dpkg-reconfigure
locales" was run too.

Is there something else that I am missing..? The above error message
provides no further infos.

"php testgettext.php" prints:

Fatal error: Call to undefined function bindtextdomain() in
/var/www/cartoweb3/scripts/testgettext.php on line 53

Has anyone any idea where I could go on?  I would like to use German in
a project.

Many thanks, Andreas.

Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org

More information about the Cartoweb-users mailing list