The MU forums have moved to WordPress.org

Bug(?) : Default language is english no matte what WPLANG is (3 posts)

  1. Ueland
    Member
    Posted 15 years ago #

    Hi,

    As said, default languge for blogs does not change when WPLANG is set.

    I fixed this by editing: wp-includes/l10n.php:45 to add,

    if (empty($locale))
    $locale = WPLANG;

    Since apply_filters there return String(0).

    I could have created a Trac-ticket on it but i cant seem to log in there. :)

  2. tdjcbe
    Member
    Posted 15 years ago #

    Should be the same login for the forums here.

  3. bieb
    Member
    Posted 15 years ago #

    Hi all.
    The same applies to me.

    it_IT.mo
    localization file for Italy, under /wp-content/languages

    define('WPLANG', 'it_IT');
    inside /wp-config.php

    if (empty($locale))
    $locale = WPLANG;
    modification made inside /wp-includes/l10n.php

    Even if I choose "Italian" under Admin Control Panel (Site Admin => Options => Default language) and (Options => General => Blog language) both Admin Control Panel and Blog are in English language.

    Maybe something wrong server-side?
    Thank you very much for any suggestions.

About this Topic