use proper translation mechanism for JS SPR-798

This commit is contained in:
Andreas Gohr 2017-02-14 10:41:41 +01:00
commit fa2e06046c
6 changed files with 10 additions and 116 deletions

View file

@ -1,34 +1,6 @@
var $_LANG = {};
/* 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 */
}
$_LANG = $lang;
}catch(err){
}
};
$(function(){
setLang();
});
} )( jQuery, spc, wikiLang );
/* DOKUWIKI:include js/plugins/do_tasks.js */
/* DOKUWIKI:include js/sidebar-menu.js */