-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request: include native list #16
Comments
Any reason my message from yesterday got removed? |
I came up with this: /**
* Let's get the language code + English name + Endonym (the language's name in
* the language) for ALL locales supported by PHP.
*/
$languages = ResourceBundle::getLocales('');
header("Content-Type: text/plain");
echo "CODE\tLANGUAGE_NAME\tENDONYM\n";
foreach($languages as $language) {
echo
$language
. "\t"
. ucfirst(Locale::getDisplayName($language, 'en-US'))
. "\t"
. mb_convert_case(
Locale::getDisplayName($language, $language),
MB_CASE_TITLE,
'UTF-8'
)
. "\n";
} It will return:
|
thank you for the work around :} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a "native" list with each language in its native language and script would be useful
e.g.
The text was updated successfully, but these errors were encountered: