Repository navigation
fix(i18n): advertise every shipped language, complete the Italian strings - #39
Conversation
…ings #37 (Romanian) added a strings.po without the addon.xml metadata that makes the add-on manager describe the add-on in that language, and #38 (Italian) branched before #36 added its setting label, so Italian was one string short of en_gb. Checking the three merges also turned up two dead links on the Pages page and an addons.xml that no longer mirrored plugin.video.tidb/addon.xml. - addon.xml: <summary>/<description> in ro_RO. es_ES and pl_PL shipped folders were never advertised either, so they get the same treatment. All three are newly written and not native-speaker reviewed. - it_it/strings.po: #32051 (the late-metadata retry label from #36), also newly written and not native-speaker reviewed. - addons.xml + addons.xml.md5: regenerated from the two manifests, which is release steps 2 and 3 in UPDATING.md. The version is deliberately left at 2.2.1: the bump, the zip and the news entry are the release. - docs/index.html: pointed at repository.tidb.repo-2.0.0.zip and plugin.video.tidb-2.2.1.zip. It named repository.tidb.repo-2.0.1.zip, which has never existed, and plugin.video.tidb-2.2.0.zip, which the 2.2.1 bump deleted. - tests/test_language_coverage.py: pins what a shipped language has to carry -- the en_gb string ids (non-empty, same msgid), the ids settings.xml labels, and the metadata tag for every folder. Against the pre-fix tree it fails with exactly the three gaps above.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Evidence for the two dead links in And the two names that are really in Note this page is not what Kodi's repository client reads — it gets |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Why
Post-merge pass over the three PRs that landed on
maintoday — #36 (late-metadata retry), #37 (Romanian), #38 (Italian). Two of them left the tree inconsistent with what they added, and the pass turned up two dead links and a stale manifest mirror:strings.powith noaddon.xmlmetadata. A language folder translates the dialogs; the add-on manager keeps describing the add-on in English until<summary lang="xx_YY">and<description lang="xx_YY">are there. Romanian was invisible in the add-ons list.#32051, the label of the newretry_late_idssetting (settings.xmllabels a setting with$ADDON[plugin.video.tidb 32051]), so Italian installs showed English/untranslated text for it.addons.xmlno longer mirroredplugin.video.tidb/addon.xml. Italian translation added #38 changed the plugin manifest and left the mirror behind.docs/index.htmllinked two files that do not exist:repository.tidb.repo-2.0.1.zip(never built;docs/holds2.0.0) andplugin.video.tidb-2.2.0.zip(deleted by the 2.2.1 bump in1f51b0f).What this does
plugin.video.tidb/addon.xml: addsro_RO(the language Add Romanian language #37 shipped) pluses_ESandpl_PL— those two folders have shipped for a long time and were never advertised either. The es/pl/ro text is newly written by me and has not been reviewed by a native speaker, same caveat the translations themselves carry.resource.language.it_it/strings.po:#32051→Riprova per metadati in ritardo (fino a 30 secondi). Also newly written, not native-speaker reviewed.addons.xml+addons.xml.md5: regenerated from the two manifests (steps 2 and 3 ofUPDATING.md), so the mirror is exact again. The version stays 2.2.1 on purpose — the bump, the zip, the news entry and the README/index version links are the release, and I have not touched them.docs/index.html: links now name the files that are actually indocs/.tests/test_language_coverage.py: a new guard for what a shipped language has to carry — everyen_gbid, translated, with the same Englishmsgid; every idsettings.xmllabels a setting with; and a<summary>/<description>pair, inxx_YYcasing, for every folder. No Kodi involved, it reads the files.Tests
PYTHONPATH="$PWD/plugin.video.tidb:$PWD/tests" python3 -m unittest discover -s tests -t tests→ 77 tests, OK (71 before).The new test against the pre-fix tree (current
main, same working copy, new file copied in) fails with exactly the three gaps and nothing else:Manifest and XML checks on this branch:
kodi-addon-checker --branch=omega|nexus --skip-dependency-checks --allow-folder-id-mismatch plugin.video.tidb/on this branch reportsINFO: PO files are validand the identical finding set as the pre-merge commit1f51b0f(2 errors, 1 warning: thestartattribute,langon<news>, the<path>element, the 180x180 icon, andservice.pybeing a complex entry point). No new finding, and the new PO entry is accepted.Not in this PR
docs/plugin.video.tidb-2.2.1.zipis stale — it was built at1f51b0f, so it predates (feat)Retry metadata id lookup for late-tagged streams #36/Add Romanian language #37/Italian translation added #38. Rebuilding it is part of the release (see the reply in the thread)..gitattributes—addon-check.ymlrunsawk '/export-ignore/ { print $1 }' .gitattributes, and the file has never existed in this repo, so that step has always no-opped behindcontinue-on-error: true. Flagging it rather than inventing an export-ignore list.Language:header instrings.poisitfor this file (andar/esfor two others) while the rest use the full locale. Cosmetic — the folder name is what Kodi uses — so left alone.service.py's retry being opt-in: as merged,retry_late_idsdefaults to off, so the fix only helps viewers who find the setting.Summary by CodeRabbit