﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
17341	Better ways to already translated Help content	Hb---	team	"With #15994 a translating interlink system was introduced. Since then wiki authors don't have to worry about outdated links.

But neither Trac nor the `wikitr:` macro know the preferred language of the reader.  So readers might get English pages even when translated versions are available.  For example:

1. Pressing F1 in a JOSM installation preferring German brings [wiki:/De:Help /De:Help].
2. Clicking the link ''Relation Editor'' on that page brings the default page [wiki:/Help/Dialog/RelationEditor] because the translated variant is missing.
3. Clicking the link ''Back to Main Help'' at the bottom brings the reader to the English page [wiki:/Help /Help] and NOT to the German one.

The `[[TranslatedPages]]` language panel offers an easy way to the preferred language. But it's shown in usual browsers only and filtered out by JOSM.

To provide better translated content some options are possible:

~~a) Hope that in future some Java version will bring a better HTML viewer and don't filter the language panel out in JOSM any more. 

b) Replace Oracles HTML viewer by better internal browser now. But a GPL licensed one is needed or some [https://www.teamdev.com/jxbrowser#licensing-pricing dollars].

c) Abandon the HTML viewer and use the default browser. This is already done when handling bug reports.~~ (The options a) to c) to not apply because JOSM filters the language list, not java)

d) A modified output format of the `[[TranslatedPages]]` macro could be shown by the current HTML viewer. The format needs to be a horizontal line of language names on the top of each help content page. The OSM wiki offers such a solution. This would allow help readers to choose the language on each page. 

e) Best solution is to make JOSM automatically insert the preferred language root in the called URL. In the scenario above this is `De:`. The click in step 3 would call `https://josm.openstreetmap.de/wiki/`**`De:`**`Help`. If the translated page exists, it will be delivered. If it is missing, then the already existing fallback mechanism inside JOSM would deliver the default page."	enhancement	new	major		unspecified			wiki trac help l18n swing	stoecker
