There are two example coming with "php-gettext" package.
However, it is realy easy since you have to use only:
print T_gettext("Hello World");
or
print sprintf(T_ngettext("%i Developer",
"%i Developers", ${COUNT}), $C
Now it works... I do not know why but it works.
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##
Hello,
I am trying to i18n a website using php-gettext with strings like
T_gettext("Hello World")
the problem is, they are inside the PHP scripts and xgettext does not
find them to write the POT files.
How do you use php-gettext and get the POT files to translate it?
Note: W
- Original Message -
From: "Vincent DUPONT" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, February 27, 2007 10:33 PM
Subject: [PHP] gettext online editor?
hello,
for translating our web applications, we use to create an XML file with
the labels; one label for each ent
hello,
for translating our web applications, we use to create an XML file with the
labels; one label for each entry; one file for each language.
This let us:
1. create one file (in french) and let someone do the translations
2. provide the 'key users' (admins) of the application a php page that
Is strange that there is not a really good solution for this problem, i
think its not very strange. Maybe i ll request this feature, I think is
interesting, useful and not so hard to add.
Anyway, I cannot use "ob_ " functions, i ll have problems with some
functions.
So, the solution seems to
On Tue, June 13, 2006 6:30 am, Ruben Rubio Rey wrote:
> I am using gettext to get a web page in several languages.
>
> When gettext does not found an string, it shows the string.
>
> Is it possible to detect when a string is not found, in order to advis
> me ?
My experience, if you call it that, w
nner;
function __($s)
{
$r = _($s);
if ($r === $s) logUntranslatedStr($s);
return $r;
}
but the php gettext extension does not seem to provide such a functionality
natively.
>
> Thanks in advance,
> Ruben Rubio Rey
>
--
PHP General Mailing List (http://ww
Hi,
I am using gettext to get a web page in several languages.
When gettext does not found an string, it shows the string.
Is it possible to detect when a string is not found, in order to advis me ?
Thanks in advance,
Ruben Rubio Rey
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Aaron Gould wrote:
Denis Gerasimov wrote:
anyone who has worked with locales on different machines/platforms
will probably run into the problem that locales are different and/or
differently named on alot of systems...
for this reason (I believe) set_locale() allows you to pass
an array of
Denis Gerasimov wrote:
Here's what I use to set my language (to French in this case). It works
100% of the time for me:
// Set locale to preferred language
setlocale(LC_ALL, 'fr_FR');
bindtextdomain('messages', $_SERVER['DOCUMENT_ROOT'].'/locale');
textdomain('messages');
I don't d
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
How do you people best deal with text meant for i18n via gettext, which is
either large or contains HTML tags, or both?
The GNU gettext manual, in section 3.2, recommends to split long texts at
paragraph level, or in the case of long --help screens, in batches of 5-10
lines at most. I can dig this
Hi,
I haven't yet started with gettext, but I consider to use it.
Is it possible to use several text domains of gettext together?
For example: I got 2 basic GUIs with their own text domains. I want to
combine both the GUIs together, so is it possible to use the text
domains of both the GUIs simul
Yann LarrivÃe wrote:
> Did you restart apache after creating your mo file ?
You are right, thank you.
But there where another mistake, too. My system doesn't like "de_DE", it
wants to have "[EMAIL PROTECTED]".
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
Did you restart apache after creating your mo file ?
Look at the first comment on http://ca3.php.net/gettext
You might be facing this issue.
Yann
On September 11, 2004 10:08, Christian David wrote:
> Hello!
>
> I wrote this skript, but gettext returns only the english string.
>
> I could not f
Hello!
I wrote this skript, but gettext returns only the english string.
I could not find a bug at bugs.php.net, so I think I forgot something.
I have Debian Linux, PHP Version 4.3.4 and Gettext 0.14.1 (PHP and Gettext
as debian pakages)
gettext.php in /var/www/gymbay/
messages.po
# translat
on Mon, 29 Sep 2003 10:24:09 +0200 Christophe Chisogne wrote:
>> This works good, but if the .mo file gets changed the old content is
>> returned by calls to gettext, until I restart Apache.
CC> gettext uses a caching method to speed up looking translation
CC> strings, which explain why Apache mu
About performance issues surrounding i18n,
is gettext better than storing strings in a RDBMS ?
Can someone argue in favour or again opinion that say
the RDBMS way is faster ? [1]
[1] Re: [Phpgroupware-users] I18N: why not gettext?!
http://mail.gnu.org/archive/html/phpgroupware-users/2003-04/msg0020
daniel hahler wrote:
This works good, but if the .mo file gets changed the old content is
returned by calls to gettext, until I restart Apache.
gettext uses a caching method to speed up looking translation
strings, which explain why Apache must be reloaded [1]
Setting all LANG, LANGUAGE and LC_ALL
Hello php-general,
I init gettext with
putenv('LANGUAGE='.$language);
putenv('LANG='.$language);
// Specify location of translation tables
bindtextdomain ("messages", "./locale");
// Choose domain
textdomain ("messages");
where $language is either "de" or "en".
This works goo
Hi,
I want to add i18n support for my web site, but
it doesn't seem to work.
PHP 4.3.3., Apache 1.3.28, Mandrake 9.0
Here comes the test code. As you can see I try all sorts of things.
';
echo putenv("LC_ALL=de") . '';
echo setlocale(LC_ALL, "de", "german") . '';
I am trying to use gettext with Horde and Horde's test page says I do not
have gettext installed. When I check my phpinfo() I see it listed there in
the config line:
'./configure' '--with-apxs=/usr/local/apache/1.3.27/bin/apxs'
'--with-config-file-path=/usr/local/lib' '--disable-debug'
'--enable-m
have a look at this guys
http://www.translator.cx/
i'm installing it now
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 9:11 PM
To: electroteque
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] gettext and translations
, 2003 9:11 PM
To: electroteque
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] gettext and translations
Hello,
"electroteque" <[EMAIL PROTECTED]> wrote:
> hi i am just reading up on gettext , it says its for translating messages
> , how about translating entire site content
Hello,
"electroteque" <[EMAIL PROTECTED]> wrote:
> hi i am just reading up on gettext , it says its for translating messages
> , how about translating entire site content ?
Mmm, I don't think anything like that exists--at least, not yet. There are or no sites
(or software) that can perfectly t
hi i am just reading up on gettext , it says its for translating messages ,
how about translating entire site content ? and a question i have been asked
is how authentic is the translations ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am implementing gettext into a website, but for some reason, the pages
keep swapping between the intended translated language (French), and the
primary language (English).
I'm using RedHat 7.3, with gettext-0.11.1-2 RPM.
At the top of every page, I have this code:
setlocale(LC_ALL, 'f
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:
n and
the lib is in /usr/local/lib - find out where gettext is on your setup and
adjust the config option accordingly.
HTH
Danny.
- Original Message -
From: "Bram van Leur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 6:38 PM
Subject: [PHP] G
Hi everyone,
I've recently (for once in my life!) succesfully compiled PHP4.2.0 using
the following configure command-line:
'./configure' '--prefix=/usr' '--with-config-file-path=/etc'
'--disable-debug' '--enable-pic' '--enable-inline-optimization'
'--with-apxs=/usr/sbin/apxs' '--with-exec-dir
Hi all. Im trying to get gettext working. It is compiled in php 4.1.2
on a FreeBSD-4.5 p4 box.
In the root of the webserver I have
-
-
Directly under the root I have a directory structure as
--
Someone with the proper authority should probably put on the manual pages that to get
the gettext functionality you have to configure with the --with-gettext flag. The
--with-XYZ comes in almost all pages that require an additional flag, so at first I
was mislead into believing it is compiled i
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
Hy,
i would like to use the gettext functions but i have no hint, where i
have to put the locale files and how to tell php where they are.
Is ther any sample implementation available for this?
Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Hello,
Has anyone successfully implemented gettext on windows?
If so how do you go about creating po files and using the bindtextdomain function;
Thanks
36 matches
Mail list logo