Re: [PHP-I18N] Gettext - finding translations for imported common module

2010-11-06 Thread Gerry Reno
On 11/05/2010 01:01 PM, Gerry Reno wrote: I am using PHP 5.2.4 and gettext. I have a common module that I import (require) into other modules. But when I do this pages (at a different level in site tree) do not show the translations for this module. /siteroot /siteroot/lib/common.php /siteroot

[PHP-I18N] Gettext - finding translations for imported common module

2010-11-05 Thread Gerry Reno
I am using PHP 5.2.4 and gettext. I have a common module that I import (require) into other modules. But when I do this pages (at a different level in site tree) do not show the translations for this module. /siteroot /siteroot/lib/common.php /siteroot/lib/locale/[LANG]/LC_MESSAGES/message.po

RE: [PHP-I18N] Gettext (was how to i18n better?)

2010-05-03 Thread Tex Texin
Sent: Monday, May 03, 2010 9:05 PM To: Tex Texin Cc: php-i18n@lists.php.net Subject: Re: [PHP-I18N] Gettext (was how to i18n better?) If you are really interested in this kind of thing and want to look at improvements over gettext, you should get in touch with the people working on https

Re: [PHP-I18N] Gettext (was how to i18n better?)

2010-05-03 Thread Wil Clouser
If you are really interested in this kind of thing and want to look at improvements over gettext, you should get in touch with the people working on https://wiki.mozilla.org/L20n . It has a long ways to go, but there is a lot of thought being put into how to make a better system. Wil On Mon, May

[PHP-I18N] Gettext (was how to i18n better?)

2010-05-03 Thread Tex Texin
This discussion seems to confuse several different aspects of message handling. I don't have time for a lengthy note, so briefly: To support localization of text you need several different capabilities. There is of course storing and retrieving of strings by locale. This is gettext's main missio

[PHP-I18N] gettext() troubles

2005-09-23 Thread Denis Gerasimov
Hello List, I am facing some troubles with gettext. phpinfo() says that both of gettext and iconv extensions are installed properly, I can call gettext() function but it never translates my strings returning the original key every time. Here is the code: Below is the output: D

Re: [PHP-I18N] GETTEXT strings occasionally don't get translated

2004-10-28 Thread Yannick Warnier
Le jeudi 28 octobre 2004 à 13:49 +0200, Patrick Savelberg a écrit : > Hi Yannick, > > Do you have a resource on where you have read about this behaviour? I just looked up in Google and found a reference to a previous mail on this list, but did not manage to find any solid info coming from a doc:

Re: [PHP-I18N] GETTEXT strings occasionally don't get translated

2004-10-28 Thread Yannick Warnier
Le jeudi 28 octobre 2004 à 13:06 +0200, Patrick Savelberg a écrit : > Hi, > > I have an application written in PHP with gettext support. Every now and > then the messages don't get translated. A refresh of the page will sometimes > help. But after reloading the page about five times the untranslat

[PHP-I18N] GETTEXT strings occasionally don't get translated

2004-10-28 Thread Patrick Savelberg
Hi, I have an application written in PHP with gettext support. Every now and then the messages don't get translated. A refresh of the page will sometimes help. But after reloading the page about five times the untranslated strings show up again. There seems to be no clear reason why this happens.

Re: [PHP-I18N] Gettext only returns english

2004-08-09 Thread Michael Wallner
Hi Wil Clouser, you wrote: > setlocale(LC_ALL, 'de_DE.UTF-8'); > > So, if you are having the same problems I was, list all the languages > you have on your computer, and try using the exact phrase that its > installed as. Hi Wil, I'm running Debian too, but haven't got the problems you encounter

[PHP-I18N] Gettext only returns english

2004-08-06 Thread Wil Clouser
I've figured it out - thanks to all who sent ideas my way. Im mailing the list in the hopes that someone with the same problem can find it in the archives. I was under the impression that it didn't matter what languages were installed on the local box, and the language folders under /locale could

[PHP-I18N] Gettext only returns english

2004-08-06 Thread Wil Clouser
Well, I asked my friend to run through the tutorial on his server and see if it works - he got the same results as me. Perhaps it's a debian thing? Is anyone else running on debian? >From what I've read online, it seems like php is not finding the languages. If it can't find them, it will retur

[PHP-I18N] Gettext only returns english

2004-08-03 Thread clouser
This is one of those "it could be a lot of things" problems, so I'll try to answer as many questions as possible in this first email, but I'm sure i'll forget something. I'll be happy to answer follow up questions and ideas. :) The problem is, gettext() does not translate anything for me - the t

[PHP-I18N] gettext in library

2004-05-22 Thread Alfonso Cepeda Caballos
Hello, I'd like to use gettext in a library. That is, to have the po files in a directory of the library. The problem is that php programs that use this library will also have their po files in another directory. Then, the program will do their bindtextdomain() call and the library will do anoth

Re: [PHP-I18N] gettext and utf8

2004-02-10 Thread walter fan
rectory and you are specifying > another base to bindtextdomain() > which isn't involved with the removed catalogs. > > Moriyoshi > > > Thanks & Regards, > > Walter Fan > > - Original Message - > > From: "Moriyoshi Koizumi" <[EMA

Re: [PHP-I18N] gettext and utf8

2004-02-09 Thread Moriyoshi Koizumi
riyoshi Thanks & Regards, Walter Fan - Original Message - From: "Moriyoshi Koizumi" <[EMAIL PROTECTED]> To: "walter fan" <[EMAIL PROTECTED]> Sent: Tuesday, February 10, 2004 3:37 AM Subject: Re: [PHP-I18N] gettext and utf8 On 2004/02/05, at 12:42,

Re: [PHP-I18N] gettext and utf8

2004-02-09 Thread walter fan
leted the po and mo files in locale folder? Thanks & Regards, Walter Fan - Original Message - From: "Moriyoshi Koizumi" <[EMAIL PROTECTED]> To: "walter fan" <[EMAIL PROTECTED]> Sent: Tuesday, February 10, 2004 3:37 AM Subject: Re: [PHP-I18N] gettext and

[PHP-I18N] gettext and utf8

2004-02-04 Thread walter fan
I have two questions as follows: 1. I wrote some codes sample.php "> messages.po msgid "charset=iso-8859-1" msgstr "charset=gb2312" But I found gettext still return "charset=iso-8859-1" 2.I modified the charset of php files and messages.po to UTF-8 $iconv -f gb2312 -t utf-8 messages_gb2312.po>

Re: [PHP-I18N] gettext and variable parsing

2003-10-03 Thread Bjørn Tore Hagen
On Mon, 11 Aug 2003 12:16:12 +0200, Christophe Chisogne <[EMAIL PROTECTED]> wrote: Ramil Sagum wrote: echo _("Displaying records from $from to $to of $total"); Try with printf( _("Displaying records from %d to %d of %d"), $from, $to, $total ); It seems you must quote the s

[PHP-I18N] gettext - translating .po files

2003-08-14 Thread Rudi Starcevic
Hi, I'm trying to create multi-language web pages using 'gettext' with PHP but am stuck alittle. I've searched the web without joy so I thought I'd ask. My problem lies in between the .po and .mo files. After using xgettext to extract the text strings into a .po file I don't know exactly how to

Re: [PHP-I18N] gettext and variable parsing

2003-08-12 Thread Christophe Chisogne
Ramil Sagum wrote: echo _("Displaying records from $from to $to of $total"); Try with printf( _("Displaying records from %d to %d of %d"), $from, $to, $total ); It seems you must quote the strings with ".." for gettext to work. For all "variable content" to be translated, yo

[PHP-I18N] gettext and variable parsing

2003-08-11 Thread Ramil Sagum
i've successfully setup internationalization, however, i have problems with variable parsing : how do you make this work? $from = 10; $to = 15; $total = 25; echo _("Displaying records from $from to $to of $total"); I know that the expression "Displaying records from $from to $to of $total" get

[PHP-I18N] gettext-0.12.1 is released

2003-05-31 Thread Bruno Haible
Available at http://www.haible.de/bruno/gnu/gettext-0.12.1.tar.gz Later at ftp://ftp.gnu.org/pub/gnu/gettext/gettext-0.12.1.tar.gz News in 0.12.1 (since 0.11.5): * The gettext package is now separated into two subpackages: - gettext-runtime: Runtime libraries and programs. - gettext

[PHP-I18N] Gettext problems

2003-03-31 Thread Eneko Lacunza
Hi, I'd like to rescue a past matter again. I'm having problems with gettext in our production server now (devel system has been quite peaceful until now). I've send a mail to glibc bugs mailing list and I got the attached response. I have replied that it doesn't sound ve

[PHP-I18N] gettext

2002-09-09 Thread Marco Muratori
Hi, I'm using gettext to add i18n to a website. As "msgid" for the single messages, I'm not using the original text to be translated, but a shorter string that have no relation with the actual text. For example, if the text to be translated is "Hello world" I write "print(gettext("HW"))" in PHP an

[PHP-I18N] gettext on OS X?

2002-08-30 Thread a . h . s . boy
Has anyone, or does anyone know of anyone, who has gotten gettext onto OS X (I'm running Jaguar now), and successfully compiled PHP using --with-gettext? I've found a few attempts at making GNU gettext packages for OS X, and I've tried compiling it from source, but PHP always balks during com

[PHP-I18N] gettext

2002-08-28 Thread Marco Muratori
Hi I'm using gettext to add i18n to a web site, and it seems to work fine, but the translation is done randomly. I mean that if you reload many times the page, sometimes it gives back the translated message and sometimes the untranslated one. These are the steps I followed to use gettext with php:

RE: [PHP-I18N] gettext

2002-03-29 Thread Andres Baravalle
At 02.29 29/03/2002 +0900, you wrote: >Hi Andres, > >I have developed I18N_Messages class and put it in PEAR. >It translates text like gettext does and >does not need gettext to be installed on your server. >Actually, it is meant to be an abstruction layer of how messages are >translated. >Current

RE: [PHP-I18N] gettext - dates, etc?

2002-03-29 Thread Matt Friedman
his list is not the place to do this, but I wanted to suggest it and see if others are interested. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Naoki Shima [mailto:[EMAIL PROTECTED]] Sent: Friday March 29, 2002 9:08 AM To: Matt Friedman Subject

RE: [PHP-I18N] gettext - dates, etc?

2002-03-28 Thread Matt Friedman
ailto:[EMAIL PROTECTED]] Sent: Thursday March 28, 2002 12:30 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-I18N] gettext Hi Andres, I have developed I18N_Messages class and put it in PEAR. It translates text like gettext does and does not need gettext to be installed on your server. Actually, it is

RE: [PHP-I18N] gettext

2002-03-28 Thread Naoki Shima
Hi Andres, I have developed I18N_Messages class and put it in PEAR. It translates text like gettext does and does not need gettext to be installed on your server. Actually, it is meant to be an abstruction layer of how messages are translated. Currently, there is only I18N_Messages_File class tha

[PHP-I18N] gettext

2002-03-28 Thread Andres Baravalle
Hi, I'm working at a project that will need a web site with translated texts. I want to: - use standard or at least non proprietary solutions - don't affect too much performance. I have a dedicated but old server (freebsd) I'm thinking at gettext and in fact I'm implementing it in this way (op

[PHP-I18N] gettext()

2001-08-20 Thread Colin Viebrock
I am interested in speaking to anyone who has used PHP's gettext() functionality on a fairly large website, preferably one that uses CVS for development. We are in the process of getting our site ready for i18n, and want to use gettext(). However, I'm a bit unsure on how to set up the file struc