WordPress.org

Ready to get started?Download WordPress

Forums

Discrepancies between WPLANG and locale (1 post)

  1. Roy Ho
    Member
    Posted 2 years ago #

    Hello,

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic