I am creating a Django application that uses Django translation functions to provide localization in multiple languages. But I also use Django's translation features to translate certain terminology into different industries based on current user settings.
For example, for an English-speaking user working in the learning assessment industry, I want the following behavior:
For this request to the page:
- Look at the user's natural language (e.g. German).
- Look at the user industry (e.g. learning assessment)
- Activate German language / learning assessment course (eg translation.activate ("learning-evaluation-de")
The "learning-evaluation-de" .po file will only convert a subset of all the lines in the project, because it is only there to translate certain industry terminology.
This is the question:
When the line is missing, I want Django to return to German (defined in step # 1 above), and not English (the default language in my settings.py).
My default files for English / German .po are industry specific.
Is it possible?
source share