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:
@@ -18,11 +18,11 @@ OpenLayers.Lang["de"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'unhandledRequest': "Unbehandelte Anfragerückmeldung ${statusText}",
|
||||
|
||||
'permalink': "Permalink",
|
||||
'Permalink': "Permalink",
|
||||
|
||||
'overlays': "Overlays",
|
||||
'Overlays': "Overlays",
|
||||
|
||||
'baseLayer': "Grundkarte",
|
||||
'Base Layer': "Grundkarte",
|
||||
|
||||
'sameProjection': "Die Übersichtskarte funktioniert nur, wenn sie dieselbe Projektion wie die Hauptkarte verwendet",
|
||||
|
||||
@@ -50,7 +50,7 @@ OpenLayers.Lang["de"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'getLayerWarning': "Der ${layerType}-Layer konnte nicht korrekt geladen werden.\x3cbr\x3e\x3cbr\x3eUm diese Meldung nicht mehr zu erhalten, wählen Sie einen anderen Hintergrundlayer aus dem LayerSwitcher in der rechten oberen Ecke.\x3cbr\x3e\x3cbr\x3eSehr wahrscheinlich tritt dieser Fehler auf, weil das Skript der \'${layerLib}\'-Bibliothek nicht eingebunden wurde.\x3cbr\x3e\x3cbr\x3eEntwickler: Besuche \x3ca href=\'http://trac.openlayers.org/wiki/${layerLib}\' target=\'_blank\'\x3edas Wiki\x3c/a\x3e für Hilfe zum korrekten Einbinden von Layern",
|
||||
|
||||
'scale': "Maßstab = 1 : ${scaleDenom}",
|
||||
'Scale = 1 : ${scaleDenom}': "Maßstab = 1 : ${scaleDenom}",
|
||||
|
||||
'W': "W",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user