Opened 7 years ago

Last modified 6 years ago

#17341 new enhancement

Better ways to already translated Help content — at Initial Version

Reported by: Hb--- Owned by: team
Priority: major Milestone:
Component: unspecified Version:
Keywords: wiki trac help l18n swing Cc: stoecker

Description

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. Currently readers get English pages delivered even when translated versions are available. For example:

  1. Pressing F1 in a JOSM installation preferring German brings /De:Help.
  2. Clicking the link Relation Editor on that page brings the default page 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 /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 dollars.

c) Abandon the HTML viewer and use the default browser. This is already done when handling bug reports.

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.

Change History (0)

Note: See TracTickets for help on using tickets.