[imp] problem with gettext

Jorge Izquierdo jizquierdo@sgi.es
Wed, 06 Mar 2002 17:51:24 +0100


I have installed IMP 3.0 on Solaris8 and I use the gettext software of Solaris.
Now, with a bit of effort I´ve it running OK with spanish dialogs. Maybe the
problem is you are using GNU gettext, I read somewhere before that it may not
work. Try it with Solaris one.

Jorge



Dominique Dalponte wrote:

> hello
>
> I use imp and horde (last cvs releng) on a solaris 8
> I install gnu gettext
>
> I recompile the mo file (with the gnu msgfmt)
> all is ok
>
> I tried :
>
> setenv LANG fr_FR
> setenv TEXTDOMAINDIR=./locale
> gettext horde "help"
>
> then anwser is "aide"
>
> when I use php to translate a text, I have no translation :<?php
>
> putenv('LANG=fr_FR');
>
> // Specify location of translation tables
> bindtextdomain('horde', './locale');
>
> // Choose domain
> textdomain('horde');
> // Print the already tested message
> echo _("Help");
> echo '<br />';
>
> // this should print the same.
> print(gettext("Help"));
>
> the translate run on the shell but not with php functions !
> I compile php with the options :
>
>                         './configure' '--with-apxs=/usr/ssl-apache/bi=
n/apxs'
>                        '--with-config-file-path=/usr/ssl-apache/conf'
> '--enable-versionning' '--with-mysql'
>                        '--enable-ftp' '--with-gd' '--enable-bcmath'
> '--disable-debug' '--enable-memory-limit=yes'
>                        '--enable-track-vars' '--with-imap=../imap-200=
0c/'
> '--with-gettext=/usr/local'
>
> there is no problem during the compilation and the phpinfo is good :
>
> GetText Support                 enable
>
> somebody has an idea or perhaps an doc about the install of an solaris8
>
> bye
>
> --
> Dominique Dalponte
> Utbm, Centre de Ressource en informatique
> 90010 Belfort Cedex, France
> tél : 03/84/58/31/49    http://www.utbm.fr
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org

--
----------------------------------------------------------
Jorge Izquierdo Alonso
e-mail: jizquierdo@sgi.es
Tfn: +34 91 806 16 00 (switchboard)
Fax: +34 91 806 16 99
SGI Soluciones Globales Internet
C/Isaac Newton nº 11
28760 Tres Cantos,  Madrid
http://www.sgi.es