Language solution for WPMU (if u are having problems with lang packs)

NOTE: Core edit:

in wp-includes/gettext.php

fix this: (row 106)

$this->enable_cache = $enable_cache;

// $MAGIC1 = (int)0x950412de; //bug in PHP 5.0.2

$MAGIC1 = (int) – 1794895138;

// $MAGIC2 = (int)0xde120495; //bug

$MAGIC2 = (int) – 569244523;

// 64-bit fix

$MAGIC3 = (int) 2500072158;

$this->STREAM = $Reader;

$magic = $this->readint();

if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms

$this->BYTEORDER = 0;

} elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {

$this->BYTEORDER = 1;

} else {

$this->error = 1; // not MO file

return false;

}

WITH THIS:

$this->enable_cache = $enable_cache;

// $MAGIC1 = (int)0x950412de; //bug in PHP 5

$MAGIC1 = (int) – 1794895138;

// $MAGIC2 = (int)0xde120495; //bug

$MAGIC2 = (int) – 569244523;

$MAGIC3 = (int) 2500072158; // <- 64 BIT FIX: ADD THIS LINE!

$this->STREAM = $Reader;

$magic = $this->readint();

if ($magic == $MAGIC1 || $magic == $MAGIC3) { // <- 64 BIT FIX: CHANGE THIS LINE!

$this->BYTEORDER = 0;

} elseif ($magic == $MAGIC2) {

$this->BYTEORDER = 1;

} else {

$this->error = 1; // not MO file

return false;

}

This fixed my problems directly.

Best regards – Fredrik Näs