Localisation

It's possible to localise the text used in the edit panel so they're displayed in the local language of the user, this localisation is performed using the standard localisation mechanism outlined at Internationalisation and Localisation.

The edit panel provides a set of resource id's that it understands and if they're set for the users locale they will be used instead of the defaults values.

id

default

edit.create.text

Create

edit.create.tooltip

Create a new entity

edit.create.notify

Entity successfully created

edit.update.text

Update

edit.delete.tooltip

Edit the selected entity

edit.delete.notify

Entity successfully edited

edit.delete.text

Delete

edit.delete.tooltip

Delete the selected entity

edit.delete.notify

Entity successfully deleted

edit.submit.text

Submit

edit.submit.tooltip

Submit changes

edit.cancel.text

Cancel

edit.cancel.tooltip

Cancel changes

edit.polygon.text

Polygon

edit.polygon.tooltip

Add a polygon

edit.line.text

Line

edit.line.tooltip

Add a line

edit.point.text

Point

edit.point.tooltip

Add a point

edit.modify.text

Modify

edit.modify.tooltip

Click on an item to modify it

edit.remove.text

Remove

edit.remove.tooltip

Remove the currently selected item

edit.reset.text

Reset

edit.reset.tooltip

Reset the form fields

edit.import.text

Import

edit.import.tooltip

Import geometry from another entity

edit.import.error.tooManyGeometries

There are too many geometries in the source

edit.import.error.tooManyPoints

There are too many points in the source

edit.import.error.tooManyLinestrings

There are too many lines in the source

edit.import.error.tooManyPolygons

There are too many polygons in the source

The following resources item can be used to replace the text for all of the items (<create> / <text> and <tooltip> changed to use word Insert):

<client:resources> <edit> <create> <text>Insert</text> <tooltip>Insert a new entity</tooltip> <notify>Entity successfully created</notify> </create> <update> <text>Update</text> <tooltip>Edit the selected entity</tooltip> <notify>Entity successfully edited</notify> </update> <delete> <text>Delete</text> <tooltip>Delete the selected entity</tooltip> <notify>Entity successfully deleted</notify> </delete> <submit> <text>Submit</text> <tooltip>Submit changes</tooltip> </submit> <cancel> <text>Cancel</text> <tooltip>Cancel changes</tooltip> </cancel> <polygon> <text>Polygon</text> <tooltip>Add a polygon</tooltip> </polygon> <line> <text>Line</text> <tooltip>Add a line</tooltip> </line> <point> <text>Point</text> <tooltip>Add a point</tooltip> </point> <modify> <text>Modify</text> <tooltip>Click on an item to modify it</tooltip> </modify> <remove> <text>Remove</text> <tooltip>Remove the currently selected item</tooltip> </remove> <reset> <text>Reset</text> <tooltip>Reset the form fields</tooltip> </reset> <import> <text>Import</text> <tooltip>Import geometry from another entity</tooltip> <error> <tooManyGeometries>There are too many geometries in the source</tooManyGeometries> <tooManyPoints>There are too many points in the source</tooManyPoints> <tooManyLinestrings>There are too many lines in the source</tooManyLinestrings> <tooManyPolygons>There are too many polygons in the source</tooManyPolygons> </error> </import> </edit> </client:resources>

The <tooltip> change looks like this:

Localisation Change