Bug #10333 Updated: anything is OK, it really seems a buggy thing
| From: | php-bugs at lists dot php dot net | Date: | Wed, 20 Feb 2002 05:00:03 +0000 |
| Subject: | Bug #10333 Updated: anything is OK, it really seems a buggy thing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-629@lists.php.net to get a copy of this message | ||
ID: 10333
Updated by: php-bugs@lists.php.net
Reported By: daniele@dcs.it
-Status: Feedback
+Status: No Feedback
Bug Type: Gettext related
Operating System: Linux - Mandrake 7.2
PHP Version: 4.0.4pl1
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-01-14 15:48:23] lobbin@php.net
Can you reproduce this with 4.1.1?
------------------------------------------------------------------------
[2001-04-15 09:30:58] daniele@dcs.it
I have compiled php with the following options (from
phpinfo() output):
'./configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql'
'--with-zlib' '--with-config-file-path=/etc' '--with-bz2'
'--enable-ftp' '--with-gd' '--with-unixODBC'
'--enable-inline-optimization' '--with-gettext'
Always from phpinfo, i get this line:
GNU GetText Support => enabled
so, it seems gettext has been installed properly.
I have also built gettext from sources (I already had both
gettext and gettext-devel installed as RPMs), and put it
in its standard location (/usr/local).
So, I write a script like the following:
putenv ("LANG=it");
putenv ("LC_ALL=it");
bindtextdomain ("messages", "./locale");
textdomain ("messages");
echo _("welcome");
(as concernes the first two lines, I've tried out all of
the possible permutations, changing their order,
commenting the first, then the latter and so on)
then I put a valid messages.po file in the
./locale/it/LC_MESSAGES directory (I tried both with a
xgettext generated and not), and correctly compiled
it with the command
msgfmt -f -v -o messages.mo messages.po
so, I'm sure the file is correctly compiled as the -v
option gave clear output.
In the file there is a valid replacement for "welcome":
msgid "welcome"
msgstr "benvenuto"
but the string (though it compiles without errors)
would'nt be translated.
So, the problem is this.
Good job!
Daniele
------------------------------------------------------------------------
[2001-04-15 09:27:29] daniele@dcs.it
I have compiled php with the following options (from
phpinfo() output):
'./configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql'
'--with-zlib' '--with-config-file-path=/etc' '--with-bz2'
'--enable-ftp' '--with-gd' '--with-unixODBC'
'--enable-inline-optimization' '--with-gettext'
Always from phpinfo, i get this line:
GNU GetText Support => enabled
so, it seems gettext has been installed properly.
I have also built gettext from sources (I already had both
gettext and gettext-devel installed as RPMs), and put it
in its standard location (/usr/local).
So, I write a script like the following:
putenv ("LANG=it");
putenv ("LC_ALL=it");
bindtextdomain ("messages", "./locale");
textdomain ("messages");
echo _("welcome");
(as concernes the first two lines, I've tried out all of
the possible permutations, changing their order,
commenting the first, then the latter and so on)
then I put a valid messages.mo file in the
./locale/it/LC_MESSAGES directory, and correctly compiled
it with the command
msgfmt -f -v -o messages.mo messages.po
so, I'm sure the file is correctly compiled as the -v
option gave clear output.
In the file there is a valid replacement for "welcome":
msgid "welcome"
msgstr "benvenuto"
but the string (though it compiles without errors)
would'nt be translated.
So, the problem is this.
Good job!
Daniele
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=10333&edit=1