WP is using gettext for localization.
See details here:
Translating_WordPress#Localization_Technology
Thread Starter
Radja
(@radja)
OK thanks, but webhosting seems to have gettext installed.
I know it’s weird, also provider himself do not know why it is not working correctly.
server has: Apache/2.2.6 (Unix) mod_ssl/2.2.6 DAV/2 PHP/5.2.5
Searching for “localization php 5” brought up this (among other hits):
http://wordpress.org/support/topic/111460?replies=4
Thread Starter
Radja
(@radja)
the server has 64bit system; which is mentioned here as possible problem: http://source.ibiblio.org/trac/lyceum/ticket/652
http://comox.textdrive.com/pipermail/wp-trac/2007-June/012844.html
but gettext.php in (/wp-includes) seems to have this problem already solved; as mentioned in above tracs
SOLVED: I tried to remove code that was supposed to solve problem with 64bit system, and IT WORKS
all I had to do, was this code:
if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms
$this->BYTEORDER = 0;
} elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
change to this:
if ($magic == $MAGIC1 || $magic == $MAGIC3 ) { // to make sure it works for 64-bit platforms
$this->BYTEORDER = 0;
} elseif ($magic == $MAGIC2) {
i.e. remove hack that was made to make it compatible with 64bit systems, strange