Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 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 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by holgermappt

Attachment: PluginInformation.patch added

comment:1 Changed 9 years ago by simon04

Resolution: fixed
Status: newclosed

In 6571/josm:

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

comment:2 Changed 9 years ago by Don-vip

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.