Hello, 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 [EMAIL PROTECTED]
Here is how I fixed it : - in /usr/share/i18n/locales, added a symbolic link "fr" pointing to "[EMAIL PROTECTED]" : ln -s [EMAIL PROTECTED] 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, Jean-Guilhem ----- Message d'origine ----- De : "Andreas Kreis" <[EMAIL PROTECTED]> À : <[email protected]> Envoyé : mardi 3 janvier 2006 14:46 Objet : [Cartoweb-users] Installation of gettext Hi 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 [email protected] http://lists.maptools.org/mailman/listinfo/cartoweb-users _______________________________________________ Cartoweb-users mailing list [email protected] http://lists.maptools.org/mailman/listinfo/cartoweb-users
