Re: Re: how to get php_gettext.dll work on windows2000 / iis5 server?
| From: | (Hace) | Date: | Wed, 14 Nov 2001 18:36:17 +0000 |
| Subject: | Re: Re: how to get php_gettext.dll work on windows2000 / iis5 server? | ||
| References: | 1 2 3 4 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10404@lists.php.net to get a copy of this message | ||
Zak Greant schreef:
>Drop by http://www.php-er.com and take a look at the chapter on
>gettext.
>
>I have written a complete overview of using gettext with PHP. It is
>also Unix-centric, but it is easier to understand than the gettext
>docs. : )
Thanks, your page at
http://www.php-er.com/chapters/Gettext_Functions.html
was very helpfull!
You pointed me in the right direction of building the .mo file from a
.po file.
"msgfmt -o output_file.mo input_file.po"
This worked. So now I've got the mo file.
Question: on your site you tell me:
5. Create a directory to store the tranlations.
Where should I create that directory? Because I think my
gettext-function still does not work because the "*.mo" file is not
found, even if I added:
==
// Bind a domain to directory
// Gettext uses domains to know what directories to
// search for translations to messages passed to gettext
bindtextdomain ('greetings', './translations');
textdomain ('greetings');
===
changing the above to:
bindtextdomain ('greetings', '.\translations');
did not work (backslash for windows instead of forward slash).
I guess I can work it out by providing the full pathname but that's
not what I want..
I'll get back when it works :)
Thanks,
I've also placed the .mo file in the following directory:
\inetpub\
Now I only got one problem with PHP+Windows:
--
http://hace.dyndns.org