Horde 2.0

Webmaster webmaster@4cheapdomains.net
Mon, 7 Jan 2002 22:54:57 -0500


Hi Jan...

  I scraped the old project.. I finally got Horde 2.0 installed, but when I
run the test.php NOTHING prints. Do you have any idea what would cause that?

I did the <?php phpinfo(); ?>

and it worked great!

Mike Allen, 4CheapDomains.Net
mikeallen@4CheapDomains.Net
http://www.4CheapDomains.Net
(812) 275-8425 - Office
(815) 364-1278 - Fax




>From accdias@sst.com.br Date: 08 Jan 2002 02:32:29 -0200
Return-Path: <accdias@sst.com.br>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 413 invoked from network); 8 Jan 2002 04:32:52 -0000
Received: from a.mx.sst.com.br (qmailr@200.223.199.3)
  by clark.horde.org with SMTP; 8 Jan 2002 04:32:52 -0000
Received: (qmail 25440 invoked from network); 8 Jan 2002 04:32:44 -0000
Received: from storm.sst.com.br (none@200.223.199.5)
  by a.mx.sst.com.br with SMTP; 8 Jan 2002 04:32:44 -0000
From: Antonio Dias <accdias@sst.com.br>
To: imp@lists.horde.org
In-Reply-To: <685633.1010438873@[192.168.3.10]>
References:  <1010452551.14855.0.camel@storm> 
	<685633.1010438873@[192.168.3.10]>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Mailer: Evolution/1.0 (Preview Release)
Date: 08 Jan 2002 02:32:29 -0200
Message-Id: <1010464349.15610.0.camel@storm>
Mime-Version: 1.0
Subject: Re: [imp] gettext problem

On Tue, 2002-01-08 at 00:27, Jeff Tucker wrote:
> Yes, it is. And, I can't make gettext work from the command line, either,=
=20
> even without using PHP.

Ok. Seens like the test procedure described in the README doesn't work
on all instalations. Could you try this:

	root@storm: TEXTDOMAINDIR=3D/usr/share/locale/ \
	LANGUAGE=3Dpt_BR \
	gettext grep "memory exhausted"

If gettext is working you should receive a translated message like this:

	mem=F3ria esgotada

If the above example doesn't work try this one:

	root@storm: TEXTDOMAINDIR=3D/usr/share/locale/ \
	LC_ALL=3Dpt_BR \
	gettext grep "memory exhausted"

Again you should receive a translated message like this:

	mem=F3ria esgotada

I have IMP working here and messages ARE translated into my language but
the suggested test to make a langtest.php inside the horde directory
didn't succeed. I even tried to putenv('TEXTDOMAINDIR=3D/horde/locale')
inside the script too but the messages didn't get translated.

--
Antonio Dias



>From accdias@sst.com.br Date: 08 Jan 2002 02:47:43 -0200
Return-Path: <accdias@sst.com.br>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 1564 invoked from network); 8 Jan 2002 04:48:04 -0000
Received: from a.mx.sst.com.br (qmailr@200.223.199.3)
  by clark.horde.org with SMTP; 8 Jan 2002 04:48:04 -0000
Received: (qmail 25531 invoked from network); 8 Jan 2002 04:47:58 -0000
Received: from storm.sst.com.br (none@200.223.199.5)
  by a.mx.sst.com.br with SMTP; 8 Jan 2002 04:47:58 -0000
From: Antonio Dias <accdias@sst.com.br>
To: imp@lists.horde.org
In-Reply-To: <1010464349.15610.0.camel@storm>
References:  <1010452551.14855.0.camel@storm> 
	<685633.1010438873@[192.168.3.10]>  <1010464349.15610.0.camel@storm>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Mailer: Evolution/1.0 (Preview Release)
Date: 08 Jan 2002 02:47:43 -0200
Message-Id: <1010465263.15828.2.camel@storm>
Mime-Version: 1.0
Subject: Re: [imp] gettext problem

On Tue, 2002-01-08 at 02:32, Antonio Dias wrote:
> I have IMP working here and messages ARE translated into my language but
> the suggested test to make a langtest.php inside the horde directory
> didn't succeed. I even tried to putenv('TEXTDOMAINDIR=3D/horde/locale')
> inside the script too but the messages didn't get translated.

I rewrote langtest.php and put it inside the horde dir:

<?php
setlocale(LC_ALL, 'pt_BR');
echo 'memory exhausted =3D> ' . dgettext('grep', 'memory exhausted') .
'<br/>';
bindtextdomain('horde', './locale');
textdomain('horde');
echo 'Message =3D> ' . _("Message") . '<br />';
echo 'Message =3D> ' . dgettext('horde', 'Message') . '<br />';
?>

Here is the result:

	memory exhausted =3D> mem=F3ria esgotada
	Message =3D> Mensagem
	Message =3D> Mensagem

Can you please test your instalations running the script above?

--
Antonio Dias