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

View File

@@ -17,11 +17,11 @@ OpenLayers.Lang["pt-br"] = OpenLayers.Util.applyDefaults({
'unhandledRequest': "A requisição retornou um erro não tratado: ${statusText}",
'permalink': "Link para essa página",
'Permalink': "Link para essa página",
'overlays': "Camadas de Sobreposição",
'Overlays': "Camadas de Sobreposição",
'baseLayer': "Camada Base",
'Base Layer': "Camada Base",
'sameProjection': "O mapa de referência só funciona quando ele está na mesma projeção do mapa principal",
@@ -49,7 +49,7 @@ OpenLayers.Lang["pt-br"] = OpenLayers.Util.applyDefaults({
'getLayerWarning': "Não foi possível carregar a camada ${layerType} corretamente.\x3cbr\x3e\x3cbr\x3ePara se livrar dessa mensagem, selecione uma nova Camada Base, na ferramenta de alternação de camadas localização do canto superior direito.\x3cbr\x3e\x3cbr\x3eMuito provavelmente, isso foi causado porque o script da biblioteca ${layerLib} não foi incluído corretamente.\x3cbr\x3e\x3cbr\x3eDesenvolvedores: Para obter ajuda em solucionar esse problema \x3ca href=\'http://trac.openlayers.org/wiki/${layerLib}\' target=\'_blank\'\x3ecliquem aqui\x3c/a\x3e",
'scale': "Escala = 1 : ${scaleDenom}",
'Scale = 1 : ${scaleDenom}': "Escala = 1 : ${scaleDenom}",
'W': "O",