Modify

Opened 8 years ago

Closed 8 years ago

#15993 closed enhancement (duplicate)

unclear error message

Reported by: josm.sanspourriel Owned by: team
Priority: normal Milestone:
Component: Core validator Version:
Keywords: Cc:

Description

https://josm.openstreetmap.de/browser/josm/trunk/data/validator/combinations.mapcss#L150

throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");

This translation when one pair (key,value) is present and the other (value, value2) is absent triggers unclear message:
amenity=parking without parking

I see two possible improvements:

  • add =* : amenity=parking without parking=*

throwOther: tr("{0} without {1}=*", "{0.tag}", "{1.key}");

  • better if HTML is supported amenity=parking without <a href="https://wiki.openstreetmap.org/wiki/Key:parking">parking</a>=*{ (I guess all such cases have a wiki entry).

throwOther: tr("{0} without <a href=""https://wiki.openstreetmap.org/wiki/Key:{1}"">{1}</a>=*", "{0.tag}", "{1.key}");

(not sure about the escape character for double quotes)

You've added a lot of new validations for which the error message is unclear, therefore the type defect instead of improvement.

Attachments (0)

Change History (4)

comment:1 by Klumbumbus, 8 years ago

Component: CoreCore validator

comment:2 by Don-vip, 8 years ago

Type: defectenhancement

comment:3 by Klumbumbus, 8 years ago

Pretty much a duplicate of #11153

comment:4 by Don-vip, 8 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #11153.

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.