WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/01/2015 03:42:32 PM (4 years ago)
Author:
ocean90
Message:

l10n: Update wp_get_installed_translations() to support variants of a language.

  • A variant of a language has its own locale, for example the locale of the formal variant of German is de_DE_formal.
  • Update remove_accents() and some CSS rules to support de_DE_formal.
  • Add tests for get_bloginfo( 'language' ).
  • API changes will be deployed over the next few days.

see #28303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r32994 r33027  
    11391139        $locale = get_locale();
    11401140
    1141         if ( 'de_DE' == $locale ) {
     1141        if ( 'de_DE' == $locale || 'de_DE_formal' == $locale ) {
    11421142            $chars[ chr(195).chr(132) ] = 'Ae';
    11431143            $chars[ chr(195).chr(164) ] = 'ae';
Note: See TracChangeset for help on using the changeset viewer.