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
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
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
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
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
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
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:
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
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.
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
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
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
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
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
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
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,
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
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>
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
33 matches
Mail list logo