Cleanup i18n implementation
The i18n solution currently duplicates the default vocabulary in to locations. We need to make sure the default texts are only in one place
Blueprint information
- Status:
- Complete
- Approver:
- Jo Størset
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Ngo Thanh Long
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- 2.2
- Started by
- Tran Nguyen Minh Luan
- Completed by
- Tran Nguyen Minh Luan
Related branches
Related bugs
Sprints
Whiteboard
We have to either have english texts in a properties file or in the Text class, not both.
Having a default string in the Text class has the advantage of having a text to display even if a text should be missing in the chosen locale file, so we should remove the english locale file, make sure the app doesn't fail in case of a missing locale file (just use the default).
1. In other words the workflow for resolving a text should be
- look in locale file (if exists)
- fallback to default
2. The english locale file should be removed
- if a local implementation wants to override some of the texts, they can still supply an english locale file for those texts that should be chosen ahead of the default