...
Code Block |
---|
http://localhost:8080/weave/edit.html?create=custom.edit&description=Type%20your%20description%20here |
Anchor | ||||
---|---|---|---|---|
|
Localisation
It's possible to localise the text used in the edit panels 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 |
The following resources item can be used to replace the text for all of the items
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<client:resources>
<edit>
<create>
<text>Create</text>
<tooltip>Create 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>
</edit>
<client:resources>
|