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

Allow database content translation #105

Closed
jraddaoui opened this issue Sep 3, 2018 · 4 comments
Closed

Allow database content translation #105

jraddaoui opened this issue Sep 3, 2018 · 4 comments

Comments

@jraddaoui
Copy link
Collaborator

With the setup of Django i18n in #16, all the interface is translatable, but the database fields are not translatable yet.

Estimates:

@stefanabreitwieser
Copy link
Collaborator

@jraddaoui There's no need to translate the database content, per CCA current practice. We have single-language finding aids based on the language of the collection -- this won't be changing for this project. The only things that need to be translated are all the field names and the FAQ page. So long as the FAQ can be updated in both languages, doing the string translations isn't even necessary for that.

We'll let you know if we have any additional feedback after @mireilleN 's translations have been merged, but as of right now, I think we're satisfied with the level of translation. Thanks!

@jraddaoui
Copy link
Collaborator Author

Currently looking at other possibilities to allow translations of static content (added in #96):

@jraddaoui
Copy link
Collaborator Author

We finally used django-modeltranslation to allow the translation of the page contents from #96.

This is ready for review in the test instance. Some notes about how translations work for now:

  • The default language is "en".
  • In the content page, one or more contents can be edited at the same time, but only in one language. The contents submitted will be saved in the current language of the application.
  • There is a fallback mechanism that will show the content in the default language if the current language is not populated.

@stefanabreitwieser
Copy link
Collaborator

Looks great, thanks Radda! :)

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

3 participants