You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do assume I misunderstand something and because of that use babel the wrong way.
Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import babel
>>> lang = babel.Locale.parse('sr_Latin')
>>> lang
Locale('sr', script='Cyrl')
>>> lang.get_display_name('en')
'Serbian (Cyrillic)'
I check language code lists and to my understanding "sr" is Serbian in Cyrillic (in most cases). And Serbian in Latin characters should be "sr_Latin".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I do assume I misunderstand something and because of that use
babel
the wrong way.I check language code lists and to my understanding "sr" is Serbian in Cyrillic (in most cases). And Serbian in Latin characters should be "sr_Latin".
How can I distinguish between them?
Beta Was this translation helpful? Give feedback.
All reactions