bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Language changed without any action

(6 posts)
  • Started 1 year ago by jetson
  • Latest reply from jetson
  • This topic is not resolved
  1. jetson
    Member

    Dear community,

    today my bbpress just changed its language to english and it seems like it doesn't care about the german language file. I haven't changed the configuration file or something else on the server. Renaming the language file didn't show any results. Yesterday bbPress didn't accept my template-folder, so that I had to change its name and then it worked.

    You can see, there are many strange things happening on my installation. I talked to my server host and he said everything is alright.

    I'm using bbPress 1.0 alpha, but even the stable version, which I installed on the same database, shows the same problem.

    Does anybody have an idea? Is there any database entry which contents the language settings?

    Thanks,

    jetson

    Posted 1 year ago #
  2. Dear individual,

    that is strange. What did you change the name of that made it work? my-templates to what, or was it the name of the forum?

    There is no such DB entry as far as I know.

    There was absolutely no change just before bb switched to english?

    Posted 1 year ago #
  3. jetson
    Member

    Hehe, hi fel64. ;-) Thanks for your reply!

    I just put an underscore at the end of the folder name and it worked.

    Yes, there wasn't any change before concerning my language problem. I tried to switch to the spanish language file but it doesn't get recognized by bbpress, too. No change.

    Posted 1 year ago #
  4. Where can Ifind the DB entry?

    Posted 1 year ago #
  5. There is none. You make this setting in config.php.

    Posted 1 year ago #
  6. jetson
    Member

    Hi,

    I found a solution for this problem. It's a known bug from wordpress because of 64bit systems. Here's the fix:

    Open "bb-includes/gettext.php" and change the following code passage to:

    // $MAGIC1 = (int)0x950412de; //bug in PHP 5
        $MAGIC1 = (int) - 1794895138;
        // $MAGIC2 = (int)0xde120495; //bug
        $MAGIC2 = (int) - 569244523;
    
        $this->STREAM = $Reader;
        $magic = $this->readint();
        if ($magic == ($MAGIC1 & 0xffffffff)) {
          $this->BYTEORDER = 0;
        } elseif ($magic == $MAGIC2) {
          $this->BYTEORDER = 1;
        } else {
          $this->error = 1; // not MO file
          return false;
        }

    Source: http://forum.wordpress-deutschland.org/sprachdatei/24-wordpress-deutscher-sprache-5.html (German)

    Then it should work!

    Greets,

    jetson

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.