Page MenuHomePhabricator

Translations: HE msgstr typo causing broken link on Developer Portal
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

AND/OR

  • When building the Developer Portal locally by running the make build command, the console outputs the following warning:
WARNING  -  Documentation file 'he/build-tools/host-tools.md' contains a link to
            'he/build-tools/:/hub-paws.wmcloud.org' which is not found in the
            documentation files.

What should have happened instead?:
https://github.com/wikimedia/wikimedia-developer-portal/blob/main/data/locale/he/LC_MESSAGES/mkdocs.po#L354 should point to https://hub-paws.wmcloud.org/, but because this content comes from the Developer Portal integration with TranslateWiki, the msgstr needs to be corrected there -- it can't just be fixed manually in the PO file.

Event Timeline

bd808 changed the task status from Open to In Progress.Feb 21 2024, 8:42 PM
bd808 claimed this task.
bd808 subscribed.

Message updated at TWN: https://translatewiki.net/w/i.php?title=Wikimedia:Wikimedia-developer-portal-f5359b-%3D5BVisit_PAWS%3D5D(https://hub-paws./he&diff=prev&oldid=12247862

Let's keep this open until we get the exported data back and update the published site.

Thanks for the fix and sorry about the mistake :)

As a (possibly) simple idea to prevent it, perhaps the URLs could be completely removed from messages where the whole string is the link text and the URL is the same in all the languages.

As a (possibly) simple idea to prevent it, perhaps the URLs could be completely removed from messages where the whole string is the link text and the URL is the same in all the languages.

That would be ideal, but unfortunately the setup we have for extracting the translation units and then assembling things again at page build time doesn't have a reasonable way to strip/add tokens.

Change 1005809 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[operations/deployment-charts@master] developer-portal: Bump container to 2024-02-22-164056-production

https://gerrit.wikimedia.org/r/1005809

Change 1005809 merged by jenkins-bot:

[operations/deployment-charts@master] developer-portal: Bump container to 2024-02-22-164056-production

https://gerrit.wikimedia.org/r/1005809