| View previous topic :: View next topic |
| Author |
Message |
goldfish n00b


Joined: 02 Jul 2003 Posts: 48 Location: Finland
|
Posted: Thu Jul 06, 2006 12:58 pm Post subject: how-to for php and gettext |
|
|
Hi!
Does any one of you know any good large scale php gettext how-to's? I've googled a while but found only short references...
Please! _________________ one life. countless ways to live it. |
|
| Back to top |
|
 |
aidanjt Veteran


Joined: 20 Feb 2005 Posts: 1101 Location: Rep. of Ireland
|
|
| Back to top |
|
 |
goldfish n00b


Joined: 02 Jul 2003 Posts: 48 Location: Finland
|
Posted: Fri Jul 07, 2006 7:46 am Post subject: |
|
|
I can't get it to work. I have this simple php test file
| Code: |
setlocale(LC_MESSAGES, 'en_GB');
bindtextdomain("test", "./locale");
textdomain("test");
echo _('test string1');
echo _('test string2');
|
but it only prints the original strings not the ones that are translated in /locale/en_GB/LC_MESSAGES/test.mo. I made the translation with poEdit.
There is without a doubt something I've made wrong but can't solve it. _________________ one life. countless ways to live it. |
|
| Back to top |
|
 |
|