babel icon indicating copy to clipboard operation
babel copied to clipboard

Support for Haitian Creole ? ht ?

Open hackatechs opened this issue 5 years ago • 3 comments

This code is fail :( $ pybabel init -i ./babel/messages.pot -d ./webapp/translations -l ht What's wrong with haitian creole ?

hackatechs avatar Mar 28 '20 01:03 hackatechs

@hackatechs Did you ever get an answer to this question? I also need to support Haitian Creole and am noticing that it's not supported by Locale.parse():

In [12]: Locale.parse('ht')
---------------------------------------------------------------------------
UnknownLocaleError                        Traceback (most recent call last)
<ipython-input-12-b51394ebf382> in <module>
----> 1 Locale.parse('ht')

~/.virtualenvs/remit-srv/lib/python3.8/site-packages/babel/core.py in parse(cls, identifier, sep, resolve_likely_subtags)
    329                 return locale
    330
--> 331         raise UnknownLocaleError(input_id)
    332
    333     def __eq__(self, other):

UnknownLocaleError: unknown locale 'ht'

This in spite of the fact that ht is a support source ID for Haitian Creole according to the CLDR likely subtags.

jeancochrane avatar Aug 11 '21 21:08 jeancochrane

@akx same as #689

StanFromIreland avatar Mar 04 '25 21:03 StanFromIreland

Hatian Creole (ht) is being added to CLDR per https://github.com/unicode-org/cldr/pull/3948

srl295 avatar Mar 05 '25 00:03 srl295