Wordpress: problems with translation

wordpress Add comments
italiano

Recently i’ve installed localized WordPress italian version (downloaded from wordpress-it) but after the installation it was in english yet. I’ve checked the settings in the file wp-config.php but they were right:

define('WPLANG','it_IT');

in the folder wp-includes/languages/ there was it_IT.mo and it_IT.po so all were setting fine, but wordpress was in english yet. I’ve thinked that it could be a file’s permission problem but i was on fault.
After a research i discover that it could be a wordpress’ bug: if it run on a server with a 64bit CPU, it can’t set the right language.

To solve the problem edit gettext.php (it is in wp-includes/ ), move at line 116 and where you find

$this->STREAM = $Reader;
$magic = $this->readint();
if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) {

substitute it with

$this->STREAM = $Reader;
$magic = $this->readint() & 0xFFFFFFFF;
if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) {

Upload file on your webspace and WordPress will be translated in the languages that you have choosen.

, , , , ,


Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login