openzim / ted

Provide the best of TED.com for offline usage!
https://download.kiwix.org/zim/ted/
GNU General Public License v3.0
13 stars 8 forks source link

Populate the real list of languages in ZIM metadata #181

Closed benoit74 closed 2 months ago

benoit74 commented 2 months ago

Rationale

Fix #172

Changes

benoit74 commented 2 months ago

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)

benoit74 commented 2 months ago

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)