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
28 lines
910 B
JavaScript
28 lines
910 B
JavaScript
/* Translators (2009 onwards):
|
||
* - Harald Khan
|
||
*/
|
||
|
||
/**
|
||
* @requires OpenLayers/Lang.js
|
||
*/
|
||
|
||
/**
|
||
* Namespace: OpenLayers.Lang["nn"]
|
||
* Dictionary for Norsk (nynorsk). Keys for entries are used in calls to
|
||
* <OpenLayers.Lang.translate>. Entry bodies are normal strings or
|
||
* strings formatted for use with <OpenLayers.String.format> calls.
|
||
*/
|
||
OpenLayers.Lang["nn"] = OpenLayers.Util.applyDefaults({
|
||
|
||
'Scale = 1 : ${scaleDenom}': "Skala = 1 : ${scaleDenom}",
|
||
|
||
'layerAlreadyAdded': "Du freista å leggja til laget «${layerName}» på kartet, men det har alt vorte lagt til.",
|
||
|
||
'boundsAddError': "Du er nøydd til å gje både ein x- og ein y-verdi til «add»-funksjonen.",
|
||
|
||
'lonlatAddError': "Du er nøydd til å gje både lon- og lat-verdiar til «add»-funksjonen.",
|
||
|
||
'pixelAddError': "Du er nøydd til å gje både ein x- og ein y-verdi til «add»-funksjonen."
|
||
|
||
});
|