Automattic / wp-cldr

Use CLDR localization data in WordPress
GNU General Public License v2.0
24 stars 6 forks source link

generalize difference between wp locales and CLDR locales #22

Closed stuwest closed 9 years ago

stuwest commented 9 years ago

get_CLDR_locale() currently has a manual list that maps wordpress locale codes to CLDR ones. Rather than having a hardcoded list, should we generalize the cases where the only difference is capitalization of the country code part of the locale code (e.g. pt-br and pt-BR)?

stuwest commented 9 years ago

Fixed in https://github.com/Automattic/wp-cldr/pull/26 and https://github.com/Automattic/wp-cldr/pull/27