for(var i = 0; i < hotkeysets.length; i++) {
var keysetname = hotkeysets[i];
var menuitem = document.createElement('menuitem');
- if(offlineStrings.testString('hotkey.' + keysetname))
+ if(testString('offlineStrings','hotkey.' + keysetname))
menuitem.setAttribute('label',offlineStrings.getString('hotkey.' + keysetname));
else
menuitem.setAttribute('label',keysetname);
var tab = this.controller.view.tabs.childNodes[i];
tab.curindex = i;
tab.label = i + ' ' + tab.origlabel;
- if(doAccessKeys && offlineStrings.testString('menu.tab' + i + '.accesskey')) {
+ if(doAccessKeys && testString('offlineStrings','menu.tab' + i + '.accesskey')) {
tab.accessKey = offlineStrings.getString('menu.tab' + i + '.accesskey');
}
}
this.controller.view.panels.appendChild(panel);
tab.curindex = this.controller.view.tabs.childNodes.length - 1;
if(!xulG.pref.getBoolPref('open-ils.disable_accesskeys_on_tabs')) {
- if(offlineStrings.testString('menu.tab' + tab.curindex + '.accesskey')) {
+ if(testString('offlineStrings','menu.tab' + tab.curindex + '.accesskey')) {
tab.accessKey = offlineStrings.getString('menu.tab' + tab.curindex + '.accesskey');
}
}
// If we have more than one context this should label each entry with where it came from
// Likely most useful for distinguishing assets from bookings
- if(context != valid_r[i].type && offlineStrings.testString('barcode_choice.' + valid_r[i].type + '_label'))
+ if(context != valid_r[i].type && testString('offlineStrings','barcode_choice.' + valid_r[i].type + '_label'))
button_label = offlineStrings.getFormattedString('barcode_choice.' + valid_r[i].type + '_label', [button_label]);
xml += '<button label="' + button_label + '" name="fancy_submit" value="' + i + '"/>';
label.setAttribute('control',name);
label.setAttribute('class','emphasis');
label.setAttribute('value',
- catStrings.testString('staff.cat.bib_brief.'+name+'.label')
+ testString('catStrings','staff.cat.bib_brief.'+name+'.label')
? catStrings.getString('staff.cat.bib_brief.'+name+'.label')
: name
);
label.setAttribute('accesskey',
- catStrings.testString('staff.cat.bib_brief.'+name+'.accesskey')
+ testString('catStrings','staff.cat.bib_brief.'+name+'.accesskey')
? catStrings.getString('staff.cat.bib_brief.'+name+'.accesskey')
: name
);
}
if (attr.label) {
attrs[i].labels[ attr.label ] = true;
- } else if (document.getElementById('commonStrings').testString('staff.z39_50.search_class.' + i)) {
+ } else if (testString('commonStrings','staff.z39_50.search_class.' + i)) {
attrs[i].labels[ document.getElementById('commonStrings').getString('staff.z39_50.search_class.' + i) ] = true;
} else if (attr.name) {
attrs[i].labels[ attr.name ] = true;