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:
@@ -19,11 +19,11 @@ OpenLayers.Lang["ru"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'unhandledRequest': "Необработанный запрос вернул ${statusText}",
|
||||
|
||||
'permalink': "Постоянная ссылка",
|
||||
'Permalink': "Постоянная ссылка",
|
||||
|
||||
'overlays': "Слои",
|
||||
'Overlays': "Слои",
|
||||
|
||||
'baseLayer': "Основной слой",
|
||||
'Base Layer': "Основной слой",
|
||||
|
||||
'sameProjection': "Обзорная карта работает только тогда, когда имеет ту же проекцию, что и основная",
|
||||
|
||||
@@ -51,7 +51,7 @@ OpenLayers.Lang["ru"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'getLayerWarning': "Слой ${layerType} не удалось нормально загрузить. \x3cbr\x3e\x3cbr\x3eЧтобы избавиться от этого сообщения, выбите другой основной слой в переключателе в правом верхнем углу.\x3cbr\x3e\x3cbr\x3eСкорее всего, причина в том, что библиотека ${layerLib} не была включена или была включена некорректно.\x3cbr\x3e\x3cbr\x3eРазработчикам: чтобы узнать, как сделать, чтобы всё заработало, \x3ca href=\'http://trac.openlayers.org/wiki/${layerLib}\' target=\'_blank\'\x3eщёлкните тут\x3c/a\x3e",
|
||||
|
||||
'scale': "Масштаб = 1 : ${scaleDenom}",
|
||||
'Scale = 1 : ${scaleDenom}': "Масштаб = 1 : ${scaleDenom}",
|
||||
|
||||
'W': "З",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user