| Issue 1291: | Localization | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Dear Adam,
I found today your great FullCaleander PlugIn. And I have a easy feature request and the solution, too.
if (navigator.userLanguage) {
lang = navigator.userLanguage.substring(0,2).toLowerCase();
} else {
lang = navigator.language.substring(0,2).toLowerCase();
}
default['en'] ={ monthNames: ['January','February','March','April','May','June','July','August','September','October','November','December'],
monthNamesShort: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
dayNames: ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],
dayNamesShort: ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']
}
/* language match */
$defaults = default[lang];
So it is very easy to translate. It is also possible to mix textual elements like above with the "old" defaults for all other things.
I hope you like my idea.
Greetings
Frank
Dec 17, 2012
#1
may...@gmail.com
Aug 15, 2013
(No comment was entered for this change.)
Status:
Duplicate
Mergedinto: 47 |
|
| ► Sign in to add a comment |