Subversion Repositories oidplus

Rev

Rev 695 | Rev 704 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 695 Rev 699
Line 130... Line 130...
130
        }
130
        }
131
        pageChangeCallbacks = [];
131
        pageChangeCallbacks = [];
132
}
132
}
133
 
133
 
134
function openOidInPanel(id, reselect/*=false*/, anchor/*=''*/, force/*=false*/) {
134
function openOidInPanel(id, reselect/*=false*/, anchor/*=''*/, force/*=false*/) {
135
        reselect = (typeof reselect === 'undefined') ? false : reselect;
135
        reselect = (typeof reselect === 'undefined') ? false : reselect; // do not translate
136
        anchor = (typeof anchor === 'undefined') ? '' : anchor;
136
        anchor = (typeof anchor === 'undefined') ? '' : anchor; // do not translate
137
        force = (typeof force === 'undefined') ? false : force;
137
        force = (typeof force === 'undefined') ? false : force; // do not translate
138
 
138
 
139
        var mayClose = performCloseQueryCB();
139
        var mayClose = performCloseQueryCB();
140
        if (!force && !mayClose) return false;
140
        if (!force && !mayClose) return false;
141
 
141
 
142
        performCloseCB();
142
        performCloseCB();
Line 529... Line 529...
529
        }
529
        }
530
}
530
}
531
 
531
 
532
function getCurrentLang() {
532
function getCurrentLang() {
533
        // Note: If the argument "?lang=" is used, PHP will automatically set a Cookie, so it is OK when we only check for the cookie
533
        // Note: If the argument "?lang=" is used, PHP will automatically set a Cookie, so it is OK when we only check for the cookie
534
        var lang = getCookie('LANGUAGE');
534
        var lang = getCookie('LANGUAGE'); // do not translate
535
        return (typeof lang != "undefined") ? lang : DEFAULT_LANGUAGE;
535
        return (typeof lang != 'undefined') ? lang : DEFAULT_LANGUAGE; // do not translate
536
}
536
}
537
 
537
 
538
function _L() {
538
function _L() {
539
        var args = Array.prototype.slice.call(arguments);
539
        var args = Array.prototype.slice.call(arguments);
540
        var str = args.shift().trim();
540
        var str = args.shift().trim();
541
 
541
 
542
        var tmp = "";
542
        var tmp = "";
543
        if (typeof language_messages[getCurrentLang()] == "undefined") {
543
        if (typeof language_messages[getCurrentLang()] == 'undefined') { // do not translate
544
                tmp = str;
544
                tmp = str;
545
        } else {
545
        } else {
546
                var msg = language_messages[getCurrentLang()][str];
546
                var msg = language_messages[getCurrentLang()][str];
547
                if (typeof msg != "undefined") {
547
                if (typeof msg != 'undefined') { // do not translate
548
                        tmp = msg;
548
                        tmp = msg;
549
                } else {
549
                } else {
550
                        tmp = str;
550
                        tmp = str;
551
                }
551
                }
552
        }
552
        }