Making it so dictionary keys are the English values for strings displayed in the UI.
By making dictionary keys be sensible strings, we make it so the i18n function returns something legible when there are no dictionaries included in a build. This means that strings from the Graticule, Permalink, LayerSwitcher, and Scale controls will be displayed in English without having to include the English dictionary (as is the case in our full build).
Note that if you use the OpenLayers.i18n method in your applications, five of the dictionary keys have changed. Use the following replacements:
* "permalink" -> "Permalink"
* "overlays" -> "Overlays"
* "baseLayer" -> "Base Layer"
* "scale" -> "Scale = 1 : ${scaleDenom}"
* "graticule" -> "Graticule"
r=ahocevar (closes #3364)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -16,11 +16,11 @@ OpenLayers.Lang["ia"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'unhandledRequest': "Le responsa a un requesta non esseva maneate: ${statusText}",
|
||||
|
||||
'permalink': "Permaligamine",
|
||||
'Permalink': "Permaligamine",
|
||||
|
||||
'overlays': "Superpositiones",
|
||||
'Overlays': "Superpositiones",
|
||||
|
||||
'baseLayer': "Strato de base",
|
||||
'Base Layer': "Strato de base",
|
||||
|
||||
'sameProjection': "Le mini-carta functiona solmente si illo es in le mesme projection que le carta principal",
|
||||
|
||||
@@ -48,7 +48,7 @@ OpenLayers.Lang["ia"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'getLayerWarning': "Le strato ${layerType} non poteva esser cargate correctemente.\x3cbr\x3e\x3cbr\x3ePro disfacer te de iste message, selige un nove BaseLayer in le selector de strato in alto a dextra.\x3cbr\x3e\x3cbr\x3eMulto probabilemente, isto es proque le script del libreria de ${layerLib} non esseva correctemente includite.\x3cbr\x3e\x3cbr\x3eDisveloppatores: Pro adjuta de corriger isto, \x3ca href=\'http://trac.openlayers.org/wiki/${layerLib}\' target=\'_blank\'\x3eclicca hic\x3c/a\x3e",
|
||||
|
||||
'scale': "Scala = 1 : ${scaleDenom}",
|
||||
'Scale = 1 : ${scaleDenom}': "Scala = 1 : ${scaleDenom}",
|
||||
|
||||
'W': "W",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user