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:
@@ -17,11 +17,11 @@ OpenLayers.Lang["id"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'unhandledRequest': "Permintaan yang tak tertangani menghasilkan ${statusText}",
|
||||
|
||||
'permalink': "Pranala permanen",
|
||||
'Permalink': "Pranala permanen",
|
||||
|
||||
'overlays': "Hamparan",
|
||||
'Overlays': "Hamparan",
|
||||
|
||||
'baseLayer': "Lapisan Dasar",
|
||||
'Base Layer': "Lapisan Dasar",
|
||||
|
||||
'sameProjection': "Peta tinjauan hanya bekerja bila dalam proyeksi yang sama dengan peta utama",
|
||||
|
||||
@@ -49,7 +49,7 @@ OpenLayers.Lang["id"] = OpenLayers.Util.applyDefaults({
|
||||
|
||||
'getLayerWarning': "Lapisan ${layerType} tidak dapat dimuat dengan benar.\x3cbr\x3e\x3cbr\x3eUntuk menghilangkan pesan ini, pilih suatu BaseLayer baru melalui penukar lapisan (layer switcher) di ujung kanan atas.\x3cbr\x3e\x3cbr\x3eKemungkinan besar ini karena pustaka skrip Google Maps tidak disertakan dengan benar.\x3cbr\x3e\x3cbr\x3ePengembang: Untuk bantuan mengatasi masalah ini, \x3ca href=\'http://trac.openlayers.org/wiki/${layerLib}\' target=\'_blank\'\x3eklik di sini\x3c/a\x3e",
|
||||
|
||||
'scale': "Sekala = 1 : ${scaleDenom}",
|
||||
'Scale = 1 : ${scaleDenom}': "Sekala = 1 : ${scaleDenom}",
|
||||
|
||||
'W': "B",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user