language handling for js
This commit is contained in:
parent
c39e94e4e3
commit
4fca1d16bb
5 changed files with 104 additions and 18 deletions
29
script.js
29
script.js
|
@ -1,6 +1,33 @@
|
|||
|
||||
/* DOKUWIKI:include js/base/helper.js */
|
||||
|
||||
/* DOKUWIKI:include js/base/spc.js */
|
||||
|
||||
( function( $, spc, lang ) {
|
||||
|
||||
var setLang = function(){
|
||||
try{
|
||||
if(lang==="de"){
|
||||
/* DOKUWIKI:include lang/de/lang.js */
|
||||
} else if(lang==="en"){
|
||||
/* DOKUWIKI:include lang/en/lang.js */
|
||||
} else{
|
||||
/* default */
|
||||
/* DOKUWIKI:include lang/de/lang.js */
|
||||
}
|
||||
}catch(err){
|
||||
}
|
||||
};
|
||||
|
||||
$(function(){
|
||||
setLang();
|
||||
});
|
||||
|
||||
} )( jQuery, spc, wikiLang );
|
||||
|
||||
|
||||
/* DOKUWIKI:include js/plugins/do_tasks.js */
|
||||
/* DOKUWIKI:include js/sidebar-menu.js */
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue