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["cs-CZ"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'unhandledRequest': "Nezpracovaná návratová hodnota ${statusText}",
|
||||
|
||||
'permalink': "Trvalý odkaz",
|
||||
'Permalink': "Trvalý odkaz",
|
||||
|
||||
'overlays': "Překryvné vrstvy",
|
||||
'Overlays': "Překryvné vrstvy",
|
||||
|
||||
'baseLayer': "Podkladové vrstvy",
|
||||
'Base Layer': "Podkladové vrstvy",
|
||||
|
||||
'sameProjection': "Přehledka pracuje správně pouze tehdy, pokud je ve stejné projekci jako hlavní mapa",
|
||||
|
||||
@@ -48,7 +48,7 @@ OpenLayers.Lang["cs-CZ"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'getLayerWarning': "The ${layerType} Layer was unable to load correctly.\x3cbr\x3e\x3cbr\x3eTo get rid of this message, select a new BaseLayer in the layer switcher in the upper-right corner.\x3cbr\x3e\x3cbr\x3eMost likely, this is because the ${layerLib} library script was either not correctly included.\x3cbr\x3e\x3cbr\x3eDevelopers: For help getting this working correctly, \x3ca href=\'http://trac.openlayers.org/wiki/${layerLib}\' target=\'_blank\'\x3eclick here\x3c/a\x3e",
|
||||
|
||||
'scale': "Měřítko = 1 : ${scaleDenom}",
|
||||
'Scale = 1 : ${scaleDenom}': "Měřítko = 1 : ${scaleDenom}",
|
||||
|
||||
'layerAlreadyAdded': "Pokusili jste se přidat vrstvu: ${layerName} do mapy, ale tato vrstva je již v mapě přítomna.",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user