Support » Fixing WordPress » Discrepancies between WPLANG and locale

  • Roy Ho



    I am trying to use locale to switch languages on the site however I am seeing some discrepancies between setting the locale as a filter versus using WPLANG in the config file. They seem to translate different items.

    For example, I have this add filter function.
    add_filter( ‘locale’, ‘lang’, 2 );

    function lang() {
    return ‘ru_RU’;

    Which translate differently than if I was to use define(‘WPLANG’, ‘ru_RU’).

    Does anyone know what that is?

  • The topic ‘Discrepancies between WPLANG and locale’ is closed to new replies.