-
Notifications
You must be signed in to change notification settings - Fork 76
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
LocalBundle country code standard ??? #181
Comments
@maity-kgz This bundles uses |
there seem to be other issues with the data symfony/intl is using: symfony/symfony#12583 no idea however if things could be customized/extended/overridden to work around this, or how the root cause could be solved, sorry. |
Symfony is merely a consumer of data provided by ICU. According to ICU,
@maity-kgz by using |
@jakzal all you said is valid for Symfony2 forms but not to this issue. |
What do you mean it's not supported? The following code returns echo \Symfony\Component\Intl\Intl::getLocaleBundle()->getLocaleName('ky_KG'); |
Just realised you were talking about LocaleBundle from this repository. I never used it and perhaps it needs fixing (maybe it confuses the country code with locale). I only explained there's nothing wrong with Symfony's components (as this issue was linked to the Symfony's issue). |
thanks @jakzal @maity-kgz if you have time to dig though this with the pointers jakub gave, i am glad to help reviewing a pull request to fix this. if we do any duplication in here where we could use the symfony intl component, we should go for symfony intl... |
If I configure locales in Symfony CMF app/config/parameters.yml with "kg" country code which stands for Kyrgyzstan according to ISO 3166-1 alpha-2 standard than in LocaleBundle switcher i get Congo country which is totally wrong, but in admin panel SonataTranslationBundle shows correct flag of Kyrgyzstan.
I figured out that LocaleBundle uses "ky" code for Kyrgyzstan but according to ISO 3166-1 alpha-2 standard this code is for Cayman Islands. If I use "ky" locale in app/config/parametes.yml than LocaleBundles switcher shows correct Kyrgyzstan but in admin SonataTranslationBundle shows me Cayman Islands flag.
used default params for LocaleBundle:
The text was updated successfully, but these errors were encountered: