The MU forums have moved to WordPress.org

localization ...again (5 posts)

  1. janv
    Member
    Posted 16 years ago #

    Hello everyone,
    there is a plenty of threads with localization issues but I'm really in stuck.
    I need cs_CZ localization.
    So I had made .po file from sources with POEdit, made changes, saved cs_CZ.mo file into the directory wp-includes/languages/ and changed wp-config.php. But it was still in English.
    So I had started with debug and I discovered the following:
    I updated file wp-includes/l10n.php and substituted code on row 5 like this:
    Orig: if (isset($locale))
    New: if (!empty($locale))
    And now is localization working. But I don't think this is a right solution.
    Does anyone have some similar experience or am I doing something wrong?

  2. vizualbod
    Member
    Posted 15 years ago #

    I think you should stick it into "wp-content/languages". It is different form WP singleuser.

  3. leogermani
    Member
    Posted 15 years ago #

    Hi,

    Just wanto to bring this to the top again.. I had the same problem and the same solutions...

    Is it a bug in the core? I dont like the idea of having to hack the core files...

    Leo,,

  4. abd1900
    Member
    Posted 15 years ago #

    i have the same problem , wp-includes/l10n.php

    function get_locale() {
    //if (isset($locale)) //not work

    if (!empty($locale))// works
    return apply_filters( 'locale', $locale );

    .
    .
    .
    .

    }

  5. leogermani
    Member
    Posted 15 years ago #

    Ive added this on the trac as a bug. There is one guy looking at it..

    http://trac.mu.wordpress.org/ticket/655

    Leo,,

About this Topic