| 1 | <?php |
||
| 6 | class Locale extends \Locale |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Returns a locale from a country code that is provided. |
||
| 10 | * @link http://stackoverflow.com/a/10375234/403165 |
||
| 11 | * @param string $country_code ISO 3166-2-alpha 2 country code |
||
| 12 | * @param string $language_code ISO 639-1-alpha 2 language code |
||
| 13 | * @returns string a locale, formatted like en_US, or null if not found |
||
| 14 | */ |
||
| 15 | public static function countryCodeToLocale($country_code, $language_code = '') |
||
| 33 | |||
| 34 | } |
||
| 35 |