mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@33027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1138,7 +1138,7 @@ function remove_accents( $string ) {
|
||||
// Used for locale-specific rules
|
||||
$locale = get_locale();
|
||||
|
||||
if ( 'de_DE' == $locale ) {
|
||||
if ( 'de_DE' == $locale || 'de_DE_formal' == $locale ) {
|
||||
$chars[ chr(195).chr(132) ] = 'Ae';
|
||||
$chars[ chr(195).chr(164) ] = 'ae';
|
||||
$chars[ chr(195).chr(150) ] = 'Oe';
|
||||
|
||||
Reference in New Issue
Block a user