Localisation not working after host switch

Permalink
Everything worked perfectly on our development Server (Linux, PHP 5.2, mySQL 5), but on the clients host, I cant get it to work - it always stays english.
Does anybody know where I could continue searching?
I already checked with the hoster: locales are set and available and gettext is also available.

My entries in the site.php look like this:

define('LOCALE', 'de_DE');
putenv("LANGUAGE=de_DE");
setlocale(LC_ALL,'de_DE');

Thanks in advance, i'm stuck..

midlight
 
midlight replied on at Permalink Reply
midlight
forgot:
server specs on the new server are php5.2, mysql 5 too. nearly everything is the same..
kino replied on at Permalink Reply
kino
If PHP5.3, then you are following URL 'locale_get_all_variants' can be found.
http://www.php.net/manual/en/locale.getallvariants.php...

but you are php5.2. u-m.
kino replied on at Permalink Reply
kino
check
/languages folder

can you find ?
/languages/de_DE/MESSAGES/messgaes.mo
midlight replied on at Permalink Reply
midlight
no, its php 5.2 unfortunatly. but the hoster told me he checked with that.

languages/de_DE/LC_MESSAGES/messages.mo is available.

like i said, it worked perfectly well before the switch, thats why i am so confused... thanks for the answers till now!
kino replied on at Permalink Reply
kino
LOCALE set in concrete5 core
/concrete/base.php at line 110
if (!defined('LOCALE')) {
   define("LOCALE", 'en_US');
}
if (strpos(LOCALE, '_') > -1) {
   $loc = explode('_', LOCALE);
   if (is_array($loc) && count($loc) == 2) {
      define('LANGUAGE', $loc[0]);
   }
}
if (!defined("LANGUAGE")) {
   define("LANGUAGE", LOCALE);
}
define("LANGUAGE_DOMAIN_CORE", "messages");


you put after that.
echo 'LOCALE = ' . LOCALE. '<br />';
echo 'LANGUAGE = ' . LANGUAGE . '<br />';
die;

check both.
midlight replied on at Permalink Reply
midlight
LOCALE = de_DE
LANGUAGE = de

:/

I changed the locales in base.php a while ago too, as I thought it might make a difference. But nej, it didn't.

Thanks very much for the help till now, kino!
Anybody else got an idea?
Can it have something to do with the suhosin patch?
midlight replied on at Permalink Reply
midlight
can I somehow make this thread visible to the developers? I need this working, and i really don't know where i could be searching.
cgrauer replied on at Permalink Reply
cgrauer
Sometimes a new pair of eyes see new things. If you pass me credentials for your server (ftp) & c5 I'll have a look on it (I'm no c5-member though, just developer with several localized c5 installations running...). Send me a pm if you like.
midlight replied on at Permalink Reply
midlight
thanks for the offer, but I can't do that as this is not on my develepoment server but on the clients host...
Mnkras replied on at Permalink Reply
Mnkras
is gettext installed...?
midlight replied on at Permalink Reply
midlight
yes, as stated in the starting post..
Mnkras replied on at Permalink Reply
Mnkras
sorry, im just blind,

can you post a phpinfo()
midlight replied on at Permalink Reply
midlight
http://www.elektrovolts.com/info.php !

np, thanks for trying and responding :)
midlight replied on at Permalink Reply
midlight
looks like i have to hardcode-translate it. bad luck..
kino replied on at Permalink Reply
kino
your server is
safe_mode On

concrete5 is need
safe_mode Off
midlight replied on at Permalink Reply
midlight
ty, i expected that - i think i wont get that by the hoster..
kino replied on at Permalink Best Answer Reply
kino
http://www.php.net/manual/en/ref.gettext.php#52956
midlight replied on at Permalink Reply
midlight
yep, your previous post brought me to this too. finally i can mail this hoster and tell him to adapt ;)