-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Populate the real list of languages in ZIM metadata #181
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you ; see inline comments
- moved all lang related functions to languages.py - added few tests for existing conversion from input languages to TED code - added new function to convert back TED code to ISO639-3 code - added code to compute ZIM languages (twice, asap to avoid downloading videos if we know there is a metadata issue and later once the final list of downloaded videos is known)
ede8f8c
to
e409c12
Compare
I had to rebase the branch so that conflict is gone. You should do your second review with only last 3 commits, 4th one is not changed, just rebased: https://github.com/openzim/ted/pull/181/files/13de099f8fd4b53753e0150313f02e6a54b63796..HEAD Note the last commit which is something new, I just experienced a bug in the ZIM UI when displaying a video without and lang query parameter set (don't know exactly why, but it happened to me ... probably when there is only one language in the ZIM) |
I got it, in fact kiwix-serve removes the lang query parameter in the URL displayed in the browser, so if you just reuse the same link, the lang query parameter is gone and UI was broken (no title, no description displayed at all) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Rationale
Fix #172
Changes
lang
queryparameter not set