Forums

[resolved] Can hosting provider disable localization? (5 posts)

  1. poper
    Member
    Posted 2 years ago #

    Hi
    My site is using a new hosting provider. I've installed WP2.0.2 from scratch, it works fine but I can't translate the admin area as I did in several previous installations on another hosting provider. I'm sure that I've followed the localization instructions properly (wp-config, /languages/es_ES.mo etc) I've checked permissions (as I read in this forum) but nothing works... so I think it's a server configuration problem. Is that possible?
    Thanks.

  2. chaaban
    Member
    Posted 2 years ago #

    try 2 email your company :) i think they are the people who can provide help ;)

  3. poper
    Member
    Posted 2 years ago #

    Acording to the phpinfo, gettext is enabled

  4. poper
    Member
    Posted 2 years ago #

    I've found a solution. All you have to do is changing these lines in /wp-includes/gettext.php (108-111)

    // $MAGIC1 = (int)0x950412de; //bug in PHP 5
    $MAGIC1 = (int) - 1794895138;
    // $MAGIC2 = (int)0xde120495; //bug
    $MAGIC2 = (int) - 569244523;

    for these ones:

    // $MAGIC1 = (int)0x950412de; //bug in PHP 5
    $MAGIC1 = 2500072158;
    // $MAGIC2 = (int)0xde120495; //bug
    $MAGIC2 = 3725722773;

    If it doesn't work, you can try these ones:

    $MAGIC1 = (int)0x950412de; //bug in PHP 5
    //$MAGIC1 = (int) - 1794895138;
    $MAGIC2 = (int)0xde120495; //bug
    //$MAGIC2 = (int) - 569244523;

    I hope it helps others.

  5. calaf
    Member
    Posted 2 years ago #

    I have the same problem as poper but his solution doesn't work for me. I've e-mailed my "server company" and been told that gettext is enabled (so what do I want). They advised me to contact application developers. Does anybody know what to ask for and where?

Topic Closed

This topic has been closed to new replies.

About this Topic