babel icon indicating copy to clipboard operation
babel copied to clipboard

The official repository for Babel, the Python Internationalization Library

Results 174 babel issues
Sort by recently updated
recently updated
newest added

Otherwise, if I want to use a different method for one file AND use options, I can't do, for example: ```ini [myextractor: path/file.py] myoption = myvalue [python: path/**.py] ``` The...

Since version 0.22 gettext encloses file names in references which contain white spaces or tabs within First Strong Isolate (U+2068) and Pop Directional Isolate (U+2069). This commit adds the same...

enhancement
area/messages

Closes #1078 ~~Depends on #1105 (To see only the changes in this PR, look at the last two commits)~~ Since #1105 wraps file names containing white space in special unicode...

This shows up when running the tests on 3.12: ```python ~dev/babel/tests/test_dates.py:757: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to rep resent datetimes...

Babel 2.1.1, Python 2.7.5 `Locale.parse('en_US')` returns `Locale('en', territory='US')` but `Locale('en_US')` returns `Locale('en_US')` when I would expect `Locale('en_US')` returns `Locale('en', territory='US')` or `UnknownLocaleError` `Locale.parse(12)` intentionally raises `TypeError: Unxpected value for identifier:...

(2) in progress

The language name for Taiwanese (`zh_TW`) seems to be wrongly given as `Chinese` and also the regular locale creation doesnt work as expected: ```python >>> Locale('zh_TW').get_language_name('en_US') Traceback (most recent call...

`--ignore-dirs='.venv'` has no effect v2.15.0

question
area/messages

If a file with whitespace is extracted with the command line tool, the comments include it as 2 different files split on the space, and then sorts them individually. Example...

Currently: ``` python >>> from babel import numbers >>> numbers.format_number(1234567890.123456790, 'fa_IR') '1,234,567,890.123' ``` What I was expecting: ``` python >>> from babel import numbers >>> numbers.format_number(1234567890.123456790, 'fa_IR') '۱٬۲۳۴٬۵۶۷٬۸۹۰٫۱۲۳' ``` Also...

area/CLDR

Switch to standard `zoneinfo` module. Below may help https://github.com/pydantic/pydantic-core/commit/fd262933 ```console CHANGES.rst:* Dates: `pytz` is now optional; Babel will prefer it but will use `zoneinfo` when available. (:gh:`940`) - @ds-cbo CHANGES.rst:*...