Implement basic multi-language annotations #1877
Labels
No Label
backend
critical
defect
duplicate
enhancement
fixed
frontend
general
invalid
major
minor
normal
oxjs
pandora_client
python-ox
task
trivial
wontfix
worksforme
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: 0x2620/pandora#1877
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The main use case is visitors being able to turn specific languages on and off in annotations, including subtitles. "Basic" multi-language support does not mean storing multiple languages for all metadata on the backend, restricting global search to specific languages, or filtering clip list texts by language -- as all of this would degrade performance, and create additional complexity.
The implementation would be via language markup (inline HTML, + accessible vs. "Insert HTML..." dialog). The standard markup would be "some text, but lang attribute would be allowed in any tag. Based on these tags, the frontend can detect if an item has multiple languages, and in that case provide a menu (like the users menu) to turn specific languages on and off. (For now, this would be an ad-hoc setting, not a sticky preference.) Similarly, the video player would detect multiple languages, and allow setting the language in the existing menu.
The big advantage of this approach is that it allows for different uses: Multiple languages within the same annotation, multiple languages with identical annotation spans, or multiple languages with different spans -- i.e. there is no explicit "this is the same text in a different language" relation.
We'd need an additional site config setting for the default language (en).
We can use the HTML lang attribute for this.
Should include per-language import & export.
Still open: #2441, #2452, #2457