Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#9495 closed defect (fixed)

[PATCH] Format translated plugin description taken from manifest

Reported by: holgermappt Owned by: team
Priority: minor Milestone: 14.01
Component: Core Version: latest
Keywords: PluginInformation, manifest, MessageFormat Cc:

Description

Hi,

All JOSM strings are made for java.text.MessageFormat. The single quote ' is an escape character, a literal single quote is written as ''. That means all strings must be sent through MessageFormat to get the actual string. The plugin manifest Plugin-Description is formatted by tr(), which calls MessageFormat.format(). But translated descriptions, lang_Plugin-Description, are taken as-is, resulting in extra quotes. The patch sends the translated plugin descriptions through MessageFormat to get the right string.

Regards,
Holger

Attachments (1)

PluginInformation.patch (867 bytes ) - added by holgermappt 11 years ago.

Download all attachments as: .zip

Change History (3)

by holgermappt, 11 years ago

Attachment: PluginInformation.patch added

comment:1 by simon04, 11 years ago

Resolution: fixed
Status: newclosed

In 6571/josm:

fix #9495 - patch by holgerosm - Format translated plugin description taken from manifest

comment:2 by Don-vip, 11 years ago

Milestone: 14.01

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.