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["nl"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'unhandledRequest': "Het verzoek is niet afgehandeld met de volgende melding: ${statusText}",
|
||||
|
||||
'permalink': "Permanente verwijzing",
|
||||
'Permalink': "Permanente verwijzing",
|
||||
|
||||
'overlays': "Overlays",
|
||||
'Overlays': "Overlays",
|
||||
|
||||
'baseLayer': "Achtergrondkaart",
|
||||
'Base Layer': "Achtergrondkaart",
|
||||
|
||||
'sameProjection': "De overzichtskaart werkt alleen als de projectie gelijk is aan de projectie van de hoofdkaart",
|
||||
|
||||
@@ -48,7 +48,7 @@ OpenLayers.Lang["nl"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'getLayerWarning': "De laag ${layerType} kon niet goed geladen worden.\x3cbr /\x3e\x3cbr /\x3e\nOm deze melding niet meer te krijgen, moet u een andere achtergrondkaart kiezen in de laagwisselaar in de rechterbovenhoek.\x3cbr /\x3e\x3cbr /\x3e\nDit komt waarschijnlijk doordat de bibliotheek ${layerLib} niet correct is ingevoegd.\x3cbr /\x3e\x3cbr /\x3e\nOntwikkelaars: \x3ca href=\'http://trac.openlayers.org/wiki/${layerLib}\' target=\'_blank\'\x3eklik hier\x3c/a\x3e om dit werkend te krijgen.",
|
||||
|
||||
'scale': "Schaal = 1 : ${scaleDenom}",
|
||||
'Scale = 1 : ${scaleDenom}': "Schaal = 1 : ${scaleDenom}",
|
||||
|
||||
'W': "W",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user