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

Feature/translation fixes #2 #106

Merged
merged 8 commits into from
Apr 27, 2021
Merged

Feature/translation fixes #2 #106

merged 8 commits into from
Apr 27, 2021

Conversation

OliverSieberling
Copy link
Contributor

Problem

  • no uniform language in CMS (english/german mixed)
  • no translations available

Solution fixes #2 (https://docs.djangoproject.com/en/3.2/topics/i18n/translation/)

  • changed default language to english
  • added verbose names/ labels in english
  • used gettext to mark these strings
  • added german and french translations in .po files
  • implemented language switch dropdown by adding jazzmin language chooser

documentation:
Create translation file: python3 .venv/bin/vocabulary-trainer makemessages --locale "language code"
Compile translation file: python3 .venv/bin/vocabulary-trainer compilemessages

@batcapricorn batcapricorn merged commit 9bcc34c into master Apr 27, 2021
@OliverSieberling OliverSieberling deleted the feature/translation branch May 6, 2021 15:19
@OliverSieberling OliverSieberling mentioned this pull request May 11, 2021
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.

Move strings into POT files
2 participants