Modify

Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#22463 closed defect (fixed)

Preset: value translation out of context

Reported by: Polarbear_j offline Owned by: team
Priority: normal Milestone:
Component: External preset Version:
Keywords: Cc:

Description

Working on the loadable preset for playground equipment I was wondering why playground:theme=tiger was translated into DE with "Zebrastreifen "Tiger" (Querung mit Fahrrad erlaubt)".
There is no such inline translation in the preset XML file.

Eventually I found that string defined in josm/resources/data/de.lang apparently referring to crossing or crossing_ref

I wonder if it is intentional behaviour that the translation of a value is taken out of context, and how to prevent it?

Attachments (0)

Change History (4)

comment:1 by Klumbumbus, 18 months ago

Component: CoreExternal preset

comment:2 by Klumbumbus, 18 months ago

Resolution: fixed
Status: newclosed

in reply to:  description comment:3 by Klumbumbus, 18 months ago

Replying to Polarbear_j offline:

I wonder if it is intentional behaviour that the translation of a value is taken out of context,

Yes, it is intended to reuse translated strings from core also in external ressources.

and how to prevent it?

name_context, text_context and values_context can be used to separate the translations, see wiki:/TaggingPresets.

comment:4 by Polarbear-j, 18 months ago

Thanks. Wiki documentation clarified.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.