-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
lang.js
242 lines (222 loc) · 9.85 KB
/
lang.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
{% load i18n %}
if (window.GeoExt && GeoExt.Lang) {
GeoExt.Lang.set("{{ LANGUAGE_CODE }}");
}
if (window.GeoNode && GeoNode.plugins && GeoNode.plugins.Save) {
Ext.apply(GeoNode.plugins.Save.prototype, {
metadataFormCancelText : gettext("Cancel"),
metadataFormSaveAsCopyText : gettext("Save as Copy"),
metaDataHeader: gettext("About this Map"),
metaDataMapAbstract: gettext("Abstract"),
metadataFormSaveText : gettext("Save"),
metaDataMapTitle: gettext("Title")
});
}
if (window.GeoNode && GeoNode.plugins && GeoNode.plugins.XHRTrouble) {
Ext.apply(GeoNode.plugins.XHRTrouble.prototype, {
connErrorTitleText: gettext("Connection Error"),
connErrorText: gettext("The server returned an error"),
connErrorDetailsText: gettext("Details...")
});
}
if (window.GeoExplorer) {
Ext.apply(GeoExplorer.prototype, {
addLayersButtonText: gettext("Add Layers"),
areaActionText: gettext("Area"),
backgroundContainerText: gettext("Background"),
capGridAddLayersText: gettext("Add Layers"),
capGridDoneText: gettext("Done"),
capGridText: gettext("Available Layers"),
exportDialogMessage: '<p>Your map is ready to be published to the web! </p>' + '<p> Simply copy the following HTML to embed the map in your website: </p>',
heightLabel: gettext("Height"),
infoButtonText: gettext("Get Feature Info"),
largeSizeLabel: gettext("Large"),
layerAdditionLabel: gettext("or add a new server."),
layerContainerText: gettext("Map Layers"),
layerSelectionLabel: gettext("View available data from:"),
layersContainerText: gettext("Data"),
layersPanelText: gettext("Layers"),
legendPanelText: gettext("Legend"),
lengthActionText: gettext("Length"),
loadingMapMessage: gettext("Loading Map..."),
mapSizeLabel: gettext("Map Size"),
measureSplitText: gettext("Measure"),
metaDataMapContact: gettext("Contact"),
metaDataMapId: gettext("Permalink"),
miniSizeLabel: gettext("Mini"),
navActionTipText: gettext("Pan Map"),
navNextAction: gettext("Zoom to Next Extent"),
navPreviousActionText: gettext("Zoom to Previous Extent"),
noPermalinkText: gettext("This map has not yet been saved."),
permalinkLabel: gettext("Permalink"),
premiumSizeLabel: gettext("Premium"),
printTipText: gettext("Print Map"),
printWindowTitleText: gettext("Print Preview"),
propertiesText: gettext("Properties"),
publishActionText: gettext("Publish Map"),
removeLayerActionText: gettext("Remove Layer"),
removeLayerActionTipText: gettext("Remove Layer"),
saveFailMessage: gettext("Sorry, your map could not be saved."),
saveFailTitle: gettext("Error While Saving"),
saveMapText: gettext("Save Map"),
saveNotAuthorizedMessage: gettext("You must be logged in to save this map."),
smallSizeLabel: gettext("Small"),
sourceLoadFailureMessage: gettext("Error contacting server.\n Please check the url and try again."),
layerPropertiesText: gettext('Layer Properties'),
layerPropertiesTipText: gettext('Change layer format and style'),
layerStylesText: gettext('Edit Styles'),
layerStylesTipText: gettext('Edit layer styles'),
switchTo3DActionText: gettext("Switch to Google Earth 3D Viewer"),
unknownMapMessage: gettext("The map that you are trying to load does not exist. Creating a new map instead."),
unknownMapTitle: gettext("Unknown Map"),
widthLabel: gettext("Width"),
zoomInActionText: gettext("Zoom In"),
zoomOutActionText: gettext("Zoom Out"),
zoomSelectorText: gettext("Zoom level"),
zoomSliderTipText: gettext("Zoom Level"),
zoomToLayerExtentText: gettext("Zoom to Layer Extent"),
zoomVisibleButtonText: gettext("Zoom to Visible Extent")
});
}
if (window.Embed) {
Ext.apply(Embed.prototype, {
zoomLevelText: gettext("Zoom Level {zoom}")
});
}
if (window.GeoNode && GeoNode.MapGrid) {
Ext.apply(GeoNode.MapGrid.prototype, {
createMapText : gettext("Create Map"),
exportMapText: gettext("Export Map"),
mapAbstractLabelText: gettext("Abstract"),
mapContactLabelText: gettext("Contact"),
mapGridText : gettext("Map"),
mapLinkLabelText: gettext("View this Map"),
mapTitleLabelText: gettext("Title"),
openMapText : gettext("Open Map")
});
}
if (window.GeoExplorer && GeoExplorer.CapabilitiesGrid) {
Ext.apply(GeoExplorer.CapabilitiesGrid.prototype, {
nameHeaderText : gettext("Name"),
queryableHeaderText : gettext("Queryable"),
titleHeaderText : gettext("Title")
});
}
if (window.GeoNode && GeoNode.ConfigManager) {
Ext.apply(GeoNode.ConfigManager.prototype, {
backgroundDisabledText : gettext("No background")
});
}
if (window.gxp && gxp.EmbedMapDialog) {
Ext.apply(gxp.EmbedMapDialog.prototype, {
heightLabel: gettext("Height"),
largeSizeLabel: gettext("Large"),
mapSizeLabel: gettext("Map Size"),
miniSizeLabel: gettext("Mini"),
premiumSizeLabel: gettext("Premium"),
publishActionText: gettext("Publish Map"),
publishMessage: gettext('Your map is ready to be published to the web! Simply copy the following HTML to embed the map in your website:'),
smallSizeLabel: gettext("Small"),
widthLabel: gettext("Width")
});
}
if (window.GeoExplorer && GeoExplorer.CapabilitiesRowExpander) {
Ext.apply(GeoExplorer.CapabilitiesRowExpander.prototype, {
abstractText: gettext("Abstract:"),
attributionEmptyText: gettext("No attribution information is provided for this layer."),
attributionText: gettext("Provided by:"),
downloadText : gettext("Download:"),
keywordEmptyText: gettext("No keywords are listed for this layer."),
keywordText: gettext("Keywords:"),
metadataEmptyText: gettext("No metadata URLs are defined for this layer."),
metadataText: gettext("Metadata Links:")
});
}
if (window.GeoExt && GeoExt.ux && GeoExt.ux.PrintPreview) {
Ext.apply(GeoExt.ux.PrintPreview.prototype, {
paperSizeText: gettext("Paper size:"),
resolutionText: gettext("Resolution:"),
printText: gettext("Print"),
emptyTitleText: gettext("Enter map title here."),
includeLegendText: gettext("Include legend?"),
emptyCommentText: gettext("Enter comments here."),
creatingPdfText: gettext("Creating PDF...")
});
}
if (window.GeoNode && GeoNode.MapSearchTable) {
Ext.apply(GeoNode.MapSearchTable.prototype, {
titleHeaderText: gettext('Title'),
contactHeaderText: gettext("Contact"),
lastModifiedHeaderText: gettext("Last Modified"),
mapAbstractLabelText: gettext("Abstract"),
mapLinkLabelText: gettext("View this Map"),
previousText: gettext('Prev'),
nextText: gettext('Next'),
ofText: gettext('of'),
noResultsText: gettext('Your search did not match any items.'),
searchLabelText: gettext('Search Maps'),
searchButtonText: gettext('Search'),
showingText: gettext('Showing'),
loadingText: gettext('Loading'),
permalinkText: gettext('permalink')
});
}
if (window.GeoNode && GeoNode.SearchTable) {
Ext.apply(GeoNode.SearchTable.prototype, {
selectHeaderText: gettext('Select'),
nameHeaderText: gettext('Name'),
titleHeaderText: gettext('Title'),
selectText: gettext('Select:'),
selectAllText: gettext('All'),
selectNoneText: gettext('None'),
previousText: gettext('Prev'),
nextText: gettext('Next'),
ofText: gettext('of'),
noResultsText: gettext('Your search did not match any items.'),
searchButtonText: gettext('Search'),
showingText: gettext('Showing'),
loadingText: gettext("Loading..."),
permalinkText: gettext('permalink'),
unviewableTooltip: gettext('You do not have permission to view this data'),
remoteTooltip: gettext('This data is stored on a remote server')
});
}
if (window.GeoNode && GeoNode.SearchTableRowExpander) {
Ext.apply(GeoNode.SearchTableRowExpander.prototype, {
abstractText: gettext("Abstract:"),
abstractEmptyText: gettext('No abstract is provided for this layer.'),
attributionEmptyText: gettext("No attribution information is provided for this layer."),
attributionText: gettext("Provided by:"),
downloadText : gettext("Download:"),
downloadEmptyText: gettext("No download URLs are definied for this layer."),
keywordEmptyText: gettext("No keywords are listed for this layer."),
keywordText: gettext("Keywords:"),
metadataEmptyText: gettext("No metadata URLs are defined for this layer."),
metadataText: gettext("Metadata Links:"),
dataDetailText: 'Click here for more information about this layer.'
});
}
if (window.GeoNode && GeoNode.DataCart) {
Ext.apply(GeoNode.DataCart.prototype, {
selectedLayersText: gettext('Selected Layers'),
emptySelectionText: gettext('No Layers Selected'),
titleText: gettext('Title'),
clearSelectedButtonText: gettext('Clear Selected'),
clearAllButtonText: gettext('Clear All')
});
}
if (window.GeoNode && GeoNode.DataCartOps) {
Ext.apply(GeoNode.DataCartOps.prototype, {
failureText: gettext('Operation Failed'),
noLayersText: gettext('No layers are currently selected.')
});
}
if (window.GeoNode && GeoNode.BatchDownloadWidget) {
Ext.apply(GeoNode.BatchDownloadWidget.prototype, {
downloadingText: gettext('Downloading...'),
cancelText: gettext('Cancel'),
windowMessageText: gettext('Please wait')
});
}
{% block extra_lang %}
{% endblock %}