Skip to content
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

fix maltese plurals #796

Merged
merged 1 commit into from Jan 28, 2022
Merged

Conversation

Findus23
Copy link
Contributor

Important disclaimer: I just came across babel (thanks for the great library btw.) and I know very little about localisation and nothing about Maltese, but I just came across this issue and thought it might be worth it to report it.

I created files with pybabel init -i messages.pot -d . -l langcode for a lot of languages and then tried to load them using Translations.load().
But weirdly enough for mt I got ValueError: invalid token in plural form: =.
I looked at the pluralisation rule and while I know nothing about how it works, the syntax looks similar to C, so I tried to write a C program with this line pasted and that's when I noticed that the => should probably be a >=.

@akx
Copy link
Member

akx commented Jan 28, 2022

Yep, this seems like it has been a typo in the commit changing that (38556ee).

Thanks for the fix!

@akx akx added the bug label Jan 28, 2022
@akx akx merged commit 90739af into python-babel:master Jan 28, 2022
@Findus23 Findus23 deleted the fix-maltese-plurals branch January 28, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants