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

czech (cs) translation, initial #751

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zvolsky
Copy link

@zvolsky zvolsky commented Jul 25, 2023

Just a new language (cs) translation.

It is a little unsure if cs_CZ or cs should be used, but czech language is used in Czech Rep. only (except of really ultra small minorities in Romania, Serbia (or maybe Swiss or USA)).
So cs is I think the proper way to go.
And it is compatible with Django and Django Admin - this is probably the 1st point.

Best regards.
Mirek Zvolský

Copy link
Contributor

@tomwojcik tomwojcik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you contribution! Overall LGTM. I added a test that loads the translations. I think that depending on how you generated the translations, it may or may not be generated with PO-Revision-Date. To my understanding, it should be matching POT-Creation-Date or newer. In this case, matching, probably. Would you be able to fix it?

FAILED testproject/testapp/tests/test_translations.py::test_constants_translations_are_up_to_date - ValueError: time data '' does not match format '%Y-%m-%d %H:%M'

"Project-Id-Version: djoser\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-01-13 17:40+0100\n"
"PO-Revision-Date: \n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it match POT-Creation-Date? Weird that's not been autogenerated with PO-Revision-Date.

@tomwojcik
Copy link
Contributor

It is a little unsure if cs_CZ or cs should be used

cz is fine :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants