From: Jan N. <ja...@gn...> - 2001-12-09 20:42:43
|
Laurent Rathle <la...@pa...> writes: > I'm doing a french translation of phpwiki and I would like to test it. That's nice. Have you checked with the phpwiki folks so that you're not duplicating this effort? > I've tried to change "C" into "de" or "nl" in lib/config.php to see > PhpWiki in other languages, I always fall on english. I've got the > goos repertories (locale/de, ...) and they are accessible for the > web server (good permissions). I've certainly forgot something, but > what ? There are some problems with certain versions of php and phpwiki. What versions do you have? > Could you help me ? First, you should try to get gettext to work in a simple page. Try: <? # setlocale(LC_ALL, "nl_NL"); bindtextdomain ("libc", "/usr/share/locale"); textdomain ("libc"); print (gettext ("cannot open")); print ("\n"); bindtextdomain ("phpwiki", "/var/www/wiki/locale"); textdomain ("phpwiki"); print (gettext ("None")); print ("\n"); ?> save this as gettext.php, and run: 21:37:52 fred@appel:~/public_html$ php4 gettext.php X-Powered-By: PHP/4.1.0 Content-type: text/html kan niet openen Geen The first string, `cannot open' should always work; then try to get the phpwiki to work. > If you are interested, I can send you the translation when it's finished. Better send it to the phpwiki list directly. Greetings, Jan. -- Jan Nieuwenhuizen <ja...@gn...> | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org |