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 |
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>
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 |
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>