Modify

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#11696 closed enhancement (fixed)

[Patch] Option to prevent translation of values in presets.

Reported by: StephaneP Owned by: simon04
Priority: normal Milestone: 15.10
Component: Internal preset Version:
Keywords: translation; collection_time Cc: Klumbumbus, stoecker

Description

Hello !

With Josm sets in french, the preset for post_box contains a menu for the collection_time tag. But all the examples for the value are translated in french :
Lun-Ven instead of Mo-Fr

Attachments (1)

11696.patch (4.8 KB ) - added by simon04 8 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 by stoecker, 9 years ago

Owner: changed from team to StephaneP
Status: newneedinfo

That's the case for most of JOSM's presets. JOSM automatically handles this and adds the untranslated text. That would only be an error, when the final tags contain translated texts. Do they?

comment:2 by anonymous, 9 years ago

I thought that I made a mistake, but no.

If you choose one of the examples and don't touch it, the preset put the right english value :
I select "Lu-Ve 17:30; Sa 12:00"
the value become "Mo-Fr 17:30; Sa 12:00"

But if you select one example, then change something (you adapt the hours), the preset keep the translated value.
I select "Lu-Ve 17:30; Sa 12:00"
I change it to "Lu-Ve 17:30; Sa 09:00"
the value stays to "Lu-Ve 17:30; Sa 09:00"

comment:3 by stoecker, 9 years ago

Summary: Preset post_box : collection_time translatedOption to prevent translation of values in presets.
Type: defectenhancement

Yes, It's not a good idea to use translation for presets where values are usually changed. But we currently have no possibility to prevent translation. Short-term-fix: Change french translation (see Translations). You can do this yourself.

Long-term-solution. Add possibility to prevent translation for some data fields with high probability of errors.

comment:4 by Klumbumbus, 9 years ago

Cc: Klumbumbus added

comment:5 by StephaneP, 9 years ago

Translation reverted in launchpad.

comment:6 by simon04, 8 years ago

Owner: changed from StephaneP to team
Status: needinfonew

by simon04, 8 years ago

Attachment: 11696.patch added

comment:7 by simon04, 8 years ago

Milestone: 15.10
Owner: changed from team to simon04
Summary: Option to prevent translation of values in presets.[Patch] Option to prevent translation of values in presets.

Patch attached. i18n/convpreset.pl needs to be adapted not not extract those values for translation.

comment:8 by simon04, 8 years ago

Cc: stoecker added

comment:9 by simon04, 8 years ago

[o31634].

comment:10 by simon04, 8 years ago

Resolution: fixed
Status: newclosed

In 8872/josm:

fix #11696 - Option to prevent translation of values in presets

comment:12 by Klumbumbus, 8 years ago

This is availible for combo and multiselect, right?

comment:13 by simon04, 8 years ago

Yes.

comment:15 by Klumbumbus, 8 years ago

In 8878/josm:

see #11696 - add values_no_i18n="true" to service_times in default preset

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
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.