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:
Tim Schaub
2011-06-24 20:12:12 +00:00
parent d7d90b20e3
commit 0b26fa9a5e
47 changed files with 167 additions and 167 deletions
+4 -4
View File
@@ -16,11 +16,11 @@ OpenLayers.Lang["sk"] = OpenLayers.Util.applyDefaults({
'unhandledRequest': "Neobslúžené požiadavky vracajú ${statusText}",
'permalink': "Trvalý odkaz",
'Permalink': "Trvalý odkaz",
'overlays': "Prekrytia",
'Overlays': "Prekrytia",
'baseLayer': "Základná vrstva",
'Base Layer': "Základná vrstva",
'sameProjection': "Prehľadová mapka funguje iba vtedy, keď je v rovnakej projekcii ako hlavná mapa",
@@ -48,7 +48,7 @@ OpenLayers.Lang["sk"] = OpenLayers.Util.applyDefaults({
'getLayerWarning': "Vrstvu ${layerType} nebolo možné správne načítať.\x3cbr\x3e\x3cbr\x3eAby ste sa tejto správy zbavili vyberte novú BaseLayer v prepínači vrstiev v pravom hornom rohu.\x3cbr\x3e\x3cbr\x3eToto sa stalo pravdepodobne preto, že skript knižnice ${layerType} buď nebol načítaný alebo neobsahuje správny kľúč API pre vašu lokalitu.\x3cbr\x3e\x3cbr\x3eVývojári: Tu môžete získať \x3ca href=\'http://trac.openlayers.org/wiki/${layerType}\' target=\'_blank\'\x3epomoc so sfunkčnením\x3c/a\x3e",
'scale': "Mierka = 1 : ${scaleDenom}",
'Scale = 1 : ${scaleDenom}': "Mierka = 1 : ${scaleDenom}",
'layerAlreadyAdded': "Pokúsili ste sa do mapy pridať vrstvu ${layerName}, ale tá už bola pridaná",