Do I have to create the Addon:Historical Context/fr - Gramps page first? Then I translate and add my screenshots in French. At the end, will this page be automatically linked to the main English page? Is there anything else I need to do?
The language bar needs to be added to both the English and the translation page. (For navigation between translated versions)
I have tried to understand the explanation by @Nick-Hall about why the help_url does not need to be a translatable string. But have not grasped it yet
My suspicion is that my confusion is about the expected naming pattern (using the English URL plus a language code) for addon pages for the wiki. And that it seems non‐functional to me because of translations of the page name, re-direction and issues with breaking internal anchors.
It does not work as seamlessly as that when doing manual tests. However I cannot test the Gramps-driven GUI, since I am unable to navigate Gramps running in another language.
(That particular gramplet was missing from the translated page. So for testing purposes, I’ve added a preliminary Suodatin+ section plus included the specified English <span id="Filter+"></span> anchor.)
@PeterPower Pekka confirms that clicking the Help button in an undocked Filter+ gramplet running on an Finnish GUI Gramps will still open the English wiki page even though there is an existing Finnish forwarding page. (Maybe the help_url conversion appends the /fi after the hashtag anchor in the Addon: instead of before the hashtag ?)
If I am reading that correctly, then display_help does not correctly parse an anchor for a URL_MANUAL_PAGE and reassemble it with a language EXTENSION
A help_url of Addon:Isotammi_addons#Filter.2B
Would be improperly transformed to Addon:Isotammi_addons#Filter.2B/fi
which would disregard the anchor.
Instead, maybe the following?
Would have to be broken into Addon:Isotammi_addons and #Filter.2B (or use a string manipulation. Like URL_MANUAL_PAGE = insert_string(URL_MANUAL_PAGE, EXTENSION, URL_MANUAL_PAGE.index('#'))
Well, all I can report is that it isn’t working in the field for Gramps running the Finnish GUI.
It isn’t even going to the top of the translated page (nor the forwarding page) in their language. It just brings up the English page scrolled to the english anchor.
I’ll post the bug report ( 13562 Help does not properly adapt to non-english wiki pages or allow anchors ) … but I hate writing up something that I cannot personally validate. There are always ommissions and inaccuracies in the step-by-step.