add localization to Ox
This commit is contained in:
parent
b68b827d7b
commit
4d8c716d0b
31 changed files with 499 additions and 352 deletions
|
|
@ -53,7 +53,15 @@ Ox.KEYS = {
|
|||
190: 'dot', 191: 'slash', 192: 'backtick', 219: 'openbracket',
|
||||
220: 'backslash', 221: 'closebracket', 222: 'quote', 224: 'meta'
|
||||
// see dojo, for ex.
|
||||
},
|
||||
};
|
||||
//@ Ox.LOCALE <s> current locale
|
||||
Ox.LOCALE = 'en';
|
||||
//@ Ox.LOCALE <[s]> array of available locales
|
||||
Ox.LOCALES = {
|
||||
'ar': 'العربية',
|
||||
'de': 'Deutsch',
|
||||
'en': 'English'
|
||||
};
|
||||
//@ Ox.MAX_LATITUDE <n> Maximum latitude of a Mercator projection
|
||||
Ox.MAX_LATITUDE = Ox.deg(Math.atan(Ox.sinh(Math.PI)));
|
||||
//@ Ox.MIN_LATITUDE <n> Minimum latitude of a Mercator projection
|
||||
|
|
@ -66,7 +74,7 @@ Ox.MODIFIER_KEYS = {
|
|||
ctrlKey: 'control',
|
||||
shiftKey: 'shift',
|
||||
metaKey: 'meta' // Mac: command
|
||||
}
|
||||
};
|
||||
//@ Ox.MONTHS <[s]> Names of months
|
||||
Ox.MONTHS = [
|
||||
'January', 'February', 'March', 'April', 'May', 'June',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue