WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Update to 0.9.2 -> wrong date format (2 posts)

  1. Soulhuntress
    Member
    Posted 1 year ago #

    After updating from 0.9.1 to version 0.9.2 only the English date/time format is shown (on the German site "1. October 2012" instead "1. Oktober 2012", "July" instead of "Juli" and so on). The date and time format worked correctly before the update.

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Correcting an old bug created a new one :(

    You can either use the development version (0.9.2.1) which corrects the bug: http://downloads.wordpress.org/plugin/polylang.zip
    or make yourself the correction by editing the file polylang/include/core.php at line 326 and replacing:

    unset($wp_locale);
    $wp_locale = new WP_Locale();
    $wp_locale->text_direction = get_metadata('term', $this->curlang->term_id, '_rtl', true) ? 'rtl' : 'ltr';

    by

    unset($GLOBALS['wp_locale']);
    $GLOBALS['wp_locale'] = new WP_Locale();
    $GLOBALS['wp_locale']->text_direction = get_metadata('term', $this->curlang->term_id, '_rtl', true) ? 'rtl' : 'ltr';

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic