Making WordPress.org


Ignore:
Timestamp:
01/11/2018 11:43:59 PM (9 years ago)
Author:
obenland
Message:

Themes: Improve localized date display.

This will not solve it for all languages, but at least the more popular ones should see a benefit.

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Using_locales
Fixes #1269.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r6350 r6359  
    6767                        ),
    6868                        'l10n' => array(
     69                                'locale'            => str_replace( '_', '-', get_locale() ),
    6970                                'search'            => __( 'Search Themes', 'wporg-themes' ),
    7071                                'searchPlaceholder' => __( 'Search themes...', 'wporg-themes' ), // placeholder (no ellipsis)
Note: See TracChangeset for help on using the changeset viewer.