-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am using gettext in my PHP code, but i have a big problem. All my Javascript files are not affected by the translation, can somebody tell me an easy way to get the translations in the chosen language into JavaScript as well.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i have a file dk.po and dk.mo ind folder lang in my webdir.
how can i use this file? i have try all, but i can't relly get it to work.
pls help me.
// Lang
putenv('LC_ALL=dk');
setlocale(LC_ALL, 'dk');
// Specify location of translation tables
bindtextdomain("dk", ROOT .'lang');
// Choose domain
textdomain("dk");
Tanks…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am using config file which contains:
config.php
define('SYS_TITLE','My Application Title');
I load language local for gettext based on SESSION variable in another file included after the config file is loaded.
something like:
echo _(SYS_TITLE);
What is the best way to translate the SYS_TITLE…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to use gettext add localisation support to my website. I've followed various guides on how to setup gettext and have done the following:
I've created the following files and directories in the root of my project dir:
test.php
locale/
de_DE
LC_MESSAGES
messages.mo
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an app that I'm migrating portions of to Django, but python and php have a different string format. E.g.
"Hello %1s" in php vs. "Hello {0}" or "Hello {name}" in python.
We'll be maintaining both apps for a while, but is there a way to use the python format in PHP or vice versa?
>>> More