The following is a reference for the i18n resources that can be set for a client
Global Resources
The following are global resources that can be set to change the text for common items (although not everything uses them yet)
id |
Default |
---|---|
open |
Open |
close |
Close |
ok |
Ok |
cancel |
Cancel |
generate |
Generate |
new |
New |
add |
Add |
remove |
Remove |
refine |
Refine |
Client Resources
The following items list the i18n resources that can be set using client:resources to alter the display of the component directly.
The first line is the component id, the following lines are the names of the resources and their value if not set.
When there are 2 client id's they're aliases for the same item.
These are all just set either in a client:resources tag or a resources.properties file, and they will automatically be used.
For example:
<client:resources lang="it"> <detailsaction> <tooltip> <title>Ashowa da detaila</title> <text>Displaya da detaila view, eh</text> </tooltip> </detailsaction> </client:resources>
or
<client:resources lang="it"> <resource id="detailsaction.tooltip.title">Ashowa da detaila</resource> <resource id="detailsaction.tooltip.text">Displaya da detaila view, eh</resource> </client:resources>
or in a resources .properties file
detailsaction.tooltip.title=Ashowa da detaila detailsaction.tooltip.text=Displaya da detaila view, eh
com.cohga.html.client.grid.details
id |
Default |
---|---|
detailsaction.tooltip.title |
Show Details |
detailsaction.tooltip.text |
Display a detail view |
com.cohga.client.action.legend
id |
Default |
---|---|
legendaction.tooltip.title |
Map Legend |
legendaction.tooltip.text |
Display a legend for the map layers |
com.cohga.client.action.metadata
id |
Default |
---|---|
metadataaction.tooltip.title |
Metadata |
metadataaction.tooltip.text |
Display metadata for the map layers |
com.cohga.client.action.toc
id |
Default |
---|---|
tocaction.tooltip.title |
Layers |
tocaction.tooltip.text |
Change the display of map layers |
com.cohga.client.action.toctoggle
id |
Default |
---|---|
tocaction.tooltip.title |
Toggle Layer |
tocaction.tooltip.text |
Toggle the display of a map layer |
weave.coordZoom
id |
Default |
---|---|
coordzoom.tooltip.title |
Coordinate Zoom |
coordzoom.tooltip.text |
Zoom to a given coordinate |
coordzoom.bodyText |
|
coordzoom.zoomWidthLabel |
Select the zoom width |
coordzoom.zoomProjLabel |
Select the projection |
coordzoom.windowTitle |
Enter Map Coordinate |
coordzoom.units.km |
kilometre |
coordzoom.units.kms |
kilometres |
coordzoom.units.m |
metre |
coordzoom.units.ms |
metres |
coordzoom.units.mi |
mile |
coordzoom.units.mis |
miles |
coordzoom.units.ft |
foot |
coordzoom.units.fts |
feet |
coordzoom.units.nm |
nautical mile |
coordzoom.units.nms |
nautical miles |
coordzoom.lonLabel |
Longitude |
coordzoom.latLabel |
Latitude |
coordzoom.xLabel |
X |
coordzoom.yLabel |
Y |
coordzoom.degLabel |
Deg |
coordzoom.minLabel |
Min |
coordzoom.secLabel |
Sec |
coordzoom.error.outOfRange |
The location could not be shown as it does not reside within the boundary of the Map |
coordzoom.error.mapUnitsNotMetres |
Map units are in feet or degrees not metres |
coordzoom.error.invalidCoordinates |
The coordinate values are not valid |
coordzoom.error.invalidRange |
Value must be between {0} and {1} |
com.cohga.html.client.grid.exportAction
id |
Default |
---|---|
exportaction.tooltip.title |
Export Data |
exportaction.tooltip.text |
Export the Grid Data into the specified format |
com.cohga.html.client.main.gridView
com.cohga.html.client.main.identifyView
id |
Default |
---|---|
grid.page.displayMsg |
Displaying {0} - {1} of {2} |
grid.data.emptyMsg |
No data to display |
grid.page.beforePage |
Page |
grid.page.afterPage |
of {0} |
grid.page.first |
First Page |
grid.page.prev |
Previous Page |
grid.page.next |
Next Page |
grid.page.last |
Last Page |
grid.page.refresh |
Refresh |
grid.page.items |
Items per page |
com.cohga.html.client.main.searchView
id |
Default |
---|---|
search.error.validation |
The search has fields that are required to be entered. Please fix the errors marked in red. |
search.reset.tooltip |
Reset the Form |
weave.snap.settings
com.cohga.snap.settings.view
id |
Default |
---|---|
snap.settings.title |
Snap Settings |
snap.settings.tooltip |
Alter the current snapping settings |
snap.settings.node |
Node |
snap.settings.vertex |
Vertex |
snap.settings.edge |
Edge |
snap.settings.type |
Snap Type |
snap.settings.entity |
Snap Entity |
snap.settings.tolerance |
Snap Tolerance (m) |
snap.settings.save |
Save Defaults |
weave.emailFeedback
id |
Default |
---|---|
feedback.email.tooltip.title |
Feedback |
feedback.email.tooltip.text |
Send feedback to the system administrator |
feedback.email.success.title |
Feedback Submitted |
feedback.email.success.text |
Your feedback has been sent |
feedback.email.window.title |
Email support & feedback |
feedback.email.window.send |
Send |
feedback.email.from.label |
E-mail From |
feedback.email.from.empty |
Enter a valid email address |
feedback.email.classification.label |
Classification |
feedback.email.classification.empty |
Select a classification... |
feedback.email.subject.label |
Subject |
feedback.email.subject.empty |
Type a subject for the message |
feedback.email.message.label |
Message |
feedback.email.message.empty |
Enter the message text |
com.cohga.client.panel.edit
id |
Default |
---|---|
edit.create.text |
Create |
edit.create.tooltip |
Create a new entity |
edit.create.notify |
Entity successfully created |
edit.update.text |
Update |
edit.update.tooltip |
Edit the selected entity |
edit.update.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.cancel.modified.title |
Unsaved Changes |
edit.cancel.modified.message |
Do you want to discard the changes you have made? |
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.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 |
edit.reset.text |
Reset |
edit.reset.tooltip |
Reset the form fields |
com.cohga.html.client.map.bookmark
weave.bookmark
bookmark.tooltip.title |
Bookmark |
bookmark.tooltip.text |
Work with bookmarks |
bookmark.name |
Bookmark Name |
bookmark.saveExtent |
Save Extent |
bookmark.saveLayers |
Save Layers |
bookmark.saveRedlines |
Save Redlines |
bookmark.saveEntity |
Save Entity |
bookmark.emptyText |
No bookmarks to display |
bookmark.title |
Bookmark Manager |
bookmark.addBookmark |
Add Bookmark |
bookmark.manageBookmarks |
Manage Bookmarks |
bookmark.replacePrompt |
Do you want to replace the existing bookmark? |
bookmark.removeAllPrompt |
This will delete all of your bookmarks do you want to continue? |
bookmark.removeSelectedPrompt |
This will delete the selected bookmark do you want to continue? |
com.cohga.client.actions.redline
weave.redline
id |
Default |
---|---|
redline.tooltip.title |
Redline |
redline.tooltip.text |
Add elements to the map |
redline.title |
Redline |
redline.name |
Redline Name |
redline.transparency |
Transparency |
redline.none |
none |
redline.load.tooltip.title |
Load |
redline.load.tooltip.text |
Load and manage your saved redlines |
redline.load.title |
Manage Redlines |
redline.load.noRedlines |
No redlines are currently available |
redline.load.removeAllPrompt |
This will delete all of your saved redlines, do you want to continue? |
redline.load.removeSelectedPrompt |
This will delete the selected saved redline, do you want to continue? |
redline.load.replacePrompt |
This will replace all of your existing redline elements, do you want to continue? |
redline.save.tooltip.title |
Save |
redline.save.tooltip.text |
Save the current set of redlines |
redline.save.title |
Save Redline |
redline.save.prompt |
Please enter a name to save the redline elements |
redline.save.replacePrompt |
Do you want to replace the existing redline? |
redline.circle.tooltip.title |
Circle |
redline.circle.tooltip.text |
Add a circle to the map |
redline.defaults.tooltip.title |
Save Settings |
redline.defaults.tooltip.text |
Save the current settings as the defaults |
redline.delete.tooltip.text |
Delete the currently selected redline element |
redline.delete.confirmTitle |
Delete |
redline.delete.confirmPtompt |
This will delete the selected redline element, do you want to continue? |
redline.deleteAll.tooltip.title |
Delete All |
redline.deleteAll.tooltip.text |
Delete all redline elements |
redline.deleteAll.confirmTitle |
Delete All |
redline.deleteAll.confirmPrompt |
This will delete all of your redline elements, do you want to continue? |
redline.entity.tooltip.title |
Get |
redline.entity.tooltip.text |
Create a redline item from the currently selected entity |
redline.fillMenu.tooltip.title |
Fill Settings |
redline.fillMenu.tooltip.text |
Change the fill colour and transparency of the selected feature |
redline.fontMenu.tooltip.title |
Font Settings |
redline.fontMenu.tooltip.text |
Change the Font colour and style of the selected features text |
redline.fontMenu.family.label |
Family |
redline.fontMenu.family.serif |
Serif |
redline.fontMenu.family.sansserif |
Sans-Serif |
redline.fontMenu.family.monospace |
Monospace |
redline.fontMenu.size.label |
Size |
redline.fontMenu.size.small |
Small |
redline.fontMenu.size.medium |
Medium |
redline.fontMenu.size.large |
Large |
redline.fontMenu.size.label |
Weight |
redline.fontMenu.size.lighter |
Lighter |
redline.fontMenu.size.normal |
Normal |
redline.fontMenu.size.bold |
Bold |
redline.fontMenu.size.bolder |
Bolder |
redline.marker.tooltip.title |
Marker |
redline.marker.tooltip.text |
Add a marker to the map |
redline.markerMenu.tooltip.title |
Marker Settings |
redline.markerMenu.tooltip.text |
Change the marker colour |
redline.markerMenu.red |
Red |
redline.markerMenu.green |
Green |
redline.markerMenu.blue |
Blue |
redline.modify.tooltip.title |
Modify |
redline.modify.tooltip.text |
Click on the a redline to modify |
redline.point.tooltip.title |
Point |
redline.point.tooltip.text |
Add a point to the map |
redline.polygon.tooltip.title |
Polygon |
redline.polygon.tooltip.text |
Add a polygon to the map |
redline.polyline.tooltip.title |
Polyline |
redline.polyline.tooltip.text |
Add a polyline to the map |
redline.rectangle.tooltip.title |
Rectangle |
redline.rectangle.tooltip.text |
Add a rectangle to the map |
redline.square.tooltip.title |
Square |
redline.square.tooltip.text |
Add a square to the map |
redline.strokeMenu.tooltip.title |
Line Settings |
redline.strokeMenu.tooltip.text |
Change the line colour and transparency of the selected feature |
redline.strokeMenu.width.label |
Line Width |
redline.strokeMenu.style.label |
Line Style |
Document Management System
id |
Default |
---|---|
dms.selected.tooltip.title |
Show Documents |
dms.selected.tooltip.text |
Display any documents attached to the active selected entities |
dms.all.tooltip.title |
Show Documents for all |
dms.all.tooltip.text |
Display any documents attached to all selected entities |
dms.remove.title |
Remove Document |
dms.remove.prompt |
Are you sure you want to remove this document? |
dms.remove.success |
The document has been removed |
dms.remove.failure |
The document could not be removed |
dms.upload.tooltip.title |
Upload Document |
dms.upload.tooltip.text |
Upload a document and attach it to the selected entity |
dms.upload.selectfile |
Select a file |
dms.upload.file |
File |
dms.upload.description |
Description |
dms.upload.upload |
Upload |
dms.upload.uploading |
Uploading your file... |
dms.upload.success |
Successfully uploaded file to the server |
dms.upload.failure |
Upload to the server failed |
dms.text.display |
Display |
dms.text.remove |
Remove |
Help
id |
Default |
---|---|
help.tooltip.title |
Help |
help.tooltip.text |
Click to open the Help window |
help.title |
Help |
help.filter |
Filter |
help.expandAll |
Expand All |
help.collapseAll |
Collapse All |
Item Resources
The following items list the i18n resources that can be set within a component configuration.
Eventually these should be updated to use the format above, but for now...
The first line is the component id, the following lines are the names of the resources that can be set within a <resources> tag.
When there are 2 client id's they're aliases for the same item.
For example, given the original config for an item inside a client config:
<item action="example.item"> <resources> <text>Text</text> <moreText>More Text</moreText> <andYetAnother>This is the last resource</andYetAnother> </resources> <!-- all config options if required --> </item>
it would be listed below as:
example.item text Text moreText More Text antYetAnother This is the last resource
and could be i18n configured as:
<client:resources lang="it"> <example> <item> <text>Texta</text> <moreText>More Texta</moreText> <andYetAnother>This isa de last resourcea</andYetAnother> </item> </example> </client:resources>
or
<client:resources lang="it"> <resource id="example.item.text">Texta</resource> <resource id="example.item.moreText">More Texta</resource> <resource id="example.item.andYetAnother">This isa de last resourcea</resource> </client:resources>
or in a resources .properties file as:
example.item.text=Texta example.item.moreText=More Texta example.item.andYetAnother=This isa de last resourcea
and the original item moved out the following to make a snippet:
<client:item id="example.item"> <action>example.item</action> <resources> <text>%example.item.text</text> <moreText>%example.item.moreText</moreText> <andYetAnother>%example.item.andYetAnother</andYetAnother> </resources> <!-- common config options if required --> </client:item>
then added back to the client as:
<item ref="example.item"> <!-- non-common config options if required --> </item>
The following bookmark properties are obsolete, and can instead be set using resource properties as described above
weave.bookmark
com.cohga.html.client.map.bookmark
id |
Default |
---|---|
name |
Bookmark Name |
saveExtent |
Save Extent |
saveLayers |
Save Layers |
saveRedlines |
Save Redlines |
saveEntity |
Save Entity |
emptyText |
No bookmarks to display |
title |
Bookmark Manager |
open |
Open |
close |
Close |
remove |
Delete |
removeAll |
Delete All |
addBookmark |
Add Bookmark |
manageBookmarks |
Manage Bookmarks |
create |
Create |
cancel |
Cancel |
removeAllPrompt |
This will delete all of your bookmarks, do you want to continue? |
removeSelectedPrompt |
This will delete the selected bookmark, do you want to continue? |
com.cohga.dms.UploadSelected
id |
Default |
---|---|
selectfile |
Select a file |
file |
File |
description |
Description |
cancel |
Cancel |
upload |
Upload |
uploading |
Uploading your file... |
success |
Successfully uploaded file to the server |
failure |
Upload to the server failed |
The following redline properties are obsolete, and can instead be set using resource properties as described above
com.cohga.client.actions.redline.delete
weave.redline.delete
id |
Default |
---|---|
confirmTitle |
Delete |
confirmPrompt |
This will delete the selected redline element, do you want to continue? |
com.cohga.client.actions.redline.deleteall
weave.redline.deleteall
id |
Default |
---|---|
confirmTitle |
Delete All |
confirmPrompt |
This will delete all of your redline elements, do you want to continue? |
com.cohga.client.actions.redline.fillColourMenu
weave.redline.fill
id |
Default |
---|---|
transparency |
Transparency |
none |
none |
com.cohga.client.actions.redline.familyMenu
weave.redline.font
id |
Default |
---|---|
serif |
Serif |
sansserif |
Sans-Serif |
monospace |
Monospace |
small |
Small |
medium |
Medium |
large |
Large |
lighter |
Lighter |
normal |
Normal |
bold |
Bold |
bolder |
Bolder |
family |
Family |
size |
Size |
weight |
Weight |
none |
none |
com.cohga.client.actions.redline.load
weave.redline.load
id |
Default |
---|---|
managerTitle |
Redline Manager |
noRedlines |
No redlines available |
deleteAllText |
Delete All |
deleteSelectedText |
Delete |
addText |
Add |
replaceText |
Replace |
closeText |
Close |
deleteAllPrompt |
This will delete all of your saved redlines, do you want to continue? |
deleteSelectedPrompt |
This will delete the selected saved redline, do you want to continue? |
replacePrompt |
This will replace all of your existing redline elements, do you want to continue? |
com.cohga.client.actions.redline.markerMenu
weave.redline.markerMenu
id |
Default |
---|---|
green |
Green |
greenGraphic |
resources/images/markers/w-marker-green.png |
red |
Red |
redGraphic |
resources/images/markers/w-marker-red.png |
blue |
Blue |
blueGraphic |
resources/images/markers/w-marker-blue.png |
com.cohga.client.actions.redline
weave.redline
id |
Default |
---|---|
title |
Redline |
com.cohga.client.actions.redline.save
weave.redline.save
id |
Default |
---|---|
title |
Redline Save |
prompt |
Please enter a name to save the redline elements |
com.cohga.client.actions.redline.strokeColourMenu
weave.redline.stroke
id |
Default |
---|---|
transparency |
Transparency |
lineWidth |
Line Width |
lineStyle |
Line Style |
none |
none |
Everything else is item specific but most have <tooltip><title>Title</title><text>Blah blah blah</text></tooltip>
and <label>Label</label>
so could be set
item.id.tooltip.title=Title item.id.tooltip.text=Blah blah blah item.id.label=Label
and
<client:item id="snippet.id"> <label>%item.id.label</label> <tooltip> <title>%item.id.tooltip.title</title> <text>%item.id.tooltip.title</text> </tooltip> </client:item>