Changeset 2305
- Timestamp:
- 01/18/2016 10:25:23 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/glotpress-translate-bridge/glotpress-translate-bridge.php
r2062 r2305 177 177 preg_match( '!^([a-z]{2,3})(_([A-Z]{2}))?(_([a-z0-9]+))?$!', $wp_locale, $matches ); 178 178 179 $wp_locale = $matches[1] . $matches[2];179 $wp_locale = $matches[1] . ( isset( $matches[2] ) ? $matches[2] : '' ); 180 180 $locale = $matches[1]; 181 181 $country = isset( $matches[3] ) ? $matches[3] : $matches[1];
Note: See TracChangeset
for help on using the changeset viewer.