• Resolved Jonathan Fleury

    (@jonathan-fleury)


    Hello

    Curiously, it seem that on my wordpress installation, this code :

    $locale = apply_filters( 'core_version_check_locale', get_locale() );

    return alway en_US, event if

    $local = get_locale();

    return fr_FR.

    My installation is the french version of wordpress available at http://fr.wordpress.org/

    It cause a problem with the automatic update of wordpress . Only the en_US version is offered as an option even if french version is available because in function wp_version_check() of update.php the apply_filters with ‘core_version_check_locale’ is used. The problem is easily patchable changing the line of the function wp_version_check() : apply_filters(‘core_blablabalbla’) with this one :

    $locale = get_locale();

    After that, the both languages : french and english become available for automatic update.

    I did’nt found a lot of revelent information about ‘core_version_check_locale’ when googled it.

    If someone know a better solution to this problem, please advise me.

    Excuse my english, it’s not my native language.

    Regards,

    Jonathan Fleury
    guroot.com

Viewing 1 replies (of 1 total)
  • Thread Starter Jonathan Fleury

    (@jonathan-fleury)

    Message sent on the qTranslate pluggin website’s.

    Hello,

    I’m using the french version of wordpress 2.8 and when I’m trying to use the automatic update, it show that only english version is available : 2.8.4–en_US.
    When the extension is deactivated, the 2.8.4–fr_FR is also available.

    I think it could be a problem with the core_version_check_locale hook.

    add_filter('core_version_check_locale',      'qtrans_versionLocale');

    I modified the function qtrans_versionLocale() and it solved the problem. I’m not sure if it’s the right way to solve it.

    function qtrans_versionLocale() {
           return get_locale();
           // Before modification :
           //return 'en_US';
        }

    regards,

    Jonathan fleury
    http://www.guroot.com/?lang=en

Viewing 1 replies (of 1 total)
  • The topic ‘core_version_check_locale hook’ is closed to new replies.