Forums

[resolved] Problem changing default language in site hosted at BlueHost (2 posts)

  1. neves
    Member
    Posted 3 years ago #

    I want to have my wordpress site in Brazilian Portuguese. In my linux box at home, I've successfully followed the steps in "WordPress in Languages Other than English". Everything was working fine.

    So I went to publish the site and following the hosting links in wordpress.org, I contracted BlueHost. I did the same steps, but my site isn't displaying in Portuguese.

    BTW, I tried to configure doing:
    1) Edited wp-config.php to have
    define ('WPLANG', 'pt_BR');

    2) Added the file pt_BR.mo to the correct dir:
    ls -l wp-includes/languages/pt*
    -rw-r--r-- 1 xxx xxx 135839 Jul 7 22:52 wp-includes/languages/pt_BR.mo
    -rw-r--r-- 1 xxx xxx 194665 Jul 7 22:52 wp-includes/languages/pt_BR.po

    see, they have the correct permissions.

    But I still see the site in English. Am I missing anything?

    Maybe there's something different in a multihost provider that invalidates this configuration?

    Maybe I need to restart the webserver to see worpress in the correct lang?

  2. neves
    Member
    Posted 3 years ago #

    I've found the answer at bluehost support forum:

    This is a workpress bug. You can correct this by editing gettext.php in the wp-includes folder and replacing $MAGIC1 and $MAGIC2 with:

    $MAGIC1 = 2500072158;
    $MAGIC2 = 3725722773;

    It worked. Is this really a wordpress bug?

Topic Closed

This topic has been closed to new replies.

About this Topic