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

Translation is not working for other languages. #185

Open
Ibrohimbek opened this issue Oct 7, 2021 · 0 comments
Open

Translation is not working for other languages. #185

Ibrohimbek opened this issue Oct 7, 2021 · 0 comments

Comments

@Ibrohimbek
Copy link

When I changed user language in my project to Spanish I got an exception because of translated variable in line reccurence/base.py:1191:

_('every %(number)s %(freq)s') % {
                'number': rule.interval,
                'freq': timeintervals[rule.freq]
            }

There are used old python formatting that needed to upgrade.
There are other places that needed to upgrade of formating.

Changing that line to this fixes the problem:

_(f"every {rule.interval} {timeintervals[rule.freq]}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants