<!ENTITY staff.circ.print_list.header.label "Header">
<!ENTITY staff.circ.print_list.line_item.label "Line Item">
<!ENTITY staff.circ.print_list.footer.label "Footer">
+<!ENTITY staff.main.data.loading "Loading data...">
+<!ENTITY staff.main.ws_info.entry "Enter a workstation name and library to register this client under:">
+<!ENTITY staff.main.ws_info.name "Name">
+<!ENTITY staff.main.ws_info.register_btn.label "Register">
+<!ENTITY staff.main.ws_info.register_btn.accesskey "R">
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!-- Modified by Jason for Evergreen -->
<overlay id="openils_util_overlay"
staff.z39_50.search_class.tcn=Accession #
staff.z39_50.search_class.title=Title
staff.z39_50_import_interface_label=Z39.50 IMPORT
+staff.main.data.loaded=Data loaded.
+staff.main.gen_offline_widgets.synced=Offline interface synchronized with server.
+staff.main.gen_offline_widgets.noncat_sort.error=error in noncat sorting:
+staff.main.gen_offline_widgets.please_wait=Please Wait
+staff.main.gen_offline_widgets.workstation_registration_denied=You do not have permission to register a workstation.
+staff.main.gen_offline_widgets.registration.override=Override Registration Failure?
+staff.main.gen_offline_widgets.registration.error=Workstation Registration error (%1$s)
+staff.main.gen_offline_widgets.registration.success=Registration successful
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!-- Application: Evergreen Staff Client -->
<!-- Screen: Main, Authentication Window -->
+<!--
+ vim:noet:sw=4:ts=4:
+-->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- PRESENTATION -->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- LOCALIZATION -->
<!DOCTYPE window PUBLIC "" ""[
- <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+ <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
]>
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
if (typeof JSAN == 'undefined') {
- throw(
- "The JSAN library object is missing."
- );
+ throw(document.getElementById("commonStrings").getString('common.jsan.missing'));
}
/////////////////////////////////////////////////////////////////////////////
urls.XUL_OFFLINE_GENERATE_WIDGETS
);
- document.getElementById('caption').setAttribute('label','Data loaded.');
+ document.getElementById('caption').setAttribute('label', document.getElementById('commonStrings').getString('staff.main.data.loaded'));
xulG.window.open(urls.XUL_MENU_FRAME
+ '?server='+window.escape(xulG.url),
</script>
<groupbox id="data_groupbox" flex="1" class="my_overflow">
- <caption id="caption" label="Loading data..."/>
+ <caption id="caption" label="&staff.main.data.loading;"/>
<description id="data_progress"/>
<iframe id="iframe" />
</groupbox>
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!-- Application: Evergreen Staff Client -->
<!-- Screen: Main, Authentication Window -->
+<!--
+ vim:noet:sw=4:ts=4:
+-->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- PRESENTATION -->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- LOCALIZATION -->
<!DOCTYPE window PUBLIC "" ""[
- <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+ <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
]>
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
if (typeof JSAN == 'undefined') {
- throw(
- "The JSAN library object is missing."
- );
+ throw(document.getElementById('commonStrings').getString('common.jsan.missing'));
}
/////////////////////////////////////////////////////////////////////////////
save_object('print_list_templates',g.data.print_list_templates);
- $('placeholder').setAttribute('value','Offline interface synchronized with server.');
+ $('placeholder').setAttribute('value', $('commonStrings').getString('staff.main.gen_offline_widgets.synced'));
}
util.functional.map_list(
/*util.fm_utils.flatten_ou_branch(g.data.tree.aou)*/ g.data.list.aou,
function(obj) {
- var sname = obj.shortname(); for (i = sname.length; i < 20; i++) sname += ' ';
+ var sname = obj.shortname();
+ for (i = sname.length; i < 20; i++) {
+ sname += ' ';
+ }
return [
obj.name() ? sname + ' ' + obj.name() : obj.shortname(),
obj.id(),
[ b.owning_lib(), b.name() ]
);
} catch(E) {
- alert('error in noncat sorting: ' + E);
+ alert($('commonStrings').getString('staff.main.gen_offline_widgets.noncat_sort.error') + E);
return 0;
}
}
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!-- Application: Evergreen Staff Client -->
<!-- Screen: Main, Authentication Window -->
+<!--
+ vim:noet:sw=4:ts=4:
+-->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- PRESENTATION -->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- LOCALIZATION -->
<!DOCTYPE window PUBLIC "" ""[
- <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+ <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
]>
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
document.getElementById('register_btn').disabled = true;
document.getElementById('wsname').disabled = true;
- document.getElementById('wsname').value = 'Please Wait';
+ document.getElementById('wsname').value = document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.please_wait');
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
if (typeof JSAN == 'undefined') {
- throw(
- "The JSAN library object is missing."
- );
+ throw(document.getElementById("commonStrings").getString('common.jsan.missing'));
}
/////////////////////////////////////////////////////////////////////////////
[ xulG.auth.session.key, g.user.id(), 'REGISTER_WORKSTATION']
);
if (highest_org_id == -1) {
- alert('You do not have permission to register a workstation.');
+ alert(document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.workstation_registration_denied'));
xulG.auth.logoff();
return;
}
[ xulG.auth.session.key, g.my_libs_shortname_hash[ g.ml.value ] + '-' + g.tb.value, g.ml.value ],
null,
{
- 'title' : 'Override Registration Failure?',
+ 'title' : document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.registration.override'),
'overridable_events' : [
1703 /* WORKSTATION_NAME_EXISTS */,
],
switch(robj.ilsevent) {
case -1 : g.error.standard_network_error_alert(); break;
case 1703 /* WORKSTATION_NAME_EXISTS */ : /* handled with override request */ break;
- default: g.error.standard_unexpected_error_alert('Workstation Registration',robj); break;
+ default: g.error.standard_unexpected_error_alert(document.getElementById('commonStrings').getFormattedString('staff.main.gen_offline_widgets.registration.error', ['1']), robj); break;
}
} else {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect UniversalPreferencesWrite UniversalBrowserWrite UniversalPreferencesRead UniversalBrowserRead");
};
xulG.file.get('ws_info');
xulG.file.set_object(g.data.ws_info);
- alert('Registration successful');
+ alert(document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.registration.success'));
xulG.auth.logoff();
}
} catch(E) {
- g.error.standard_unexpected_error_alert('Workstation Registration 2',E);
+ g.error.standard_unexpected_error_alert(document.getElementById('commonStrings').getFormattedString('staff.main.gen_offline_widgets.registration.error', ['2']) ,E);
}
}
<vbox flex="1" style="background: #993333">
<description>
- Enter a workstation name and library to register this client under:
+ &staff.main.ws_info.entry;
</description>
<hbox>
- <label value="Name" control="wsname"/>
+ <label value="&staff.main.ws_info.name;" control="wsname"/>
<textbox id="wsname" />
</hbox>
<hbox>
<hbox id="placeholder"/>
- <button id="register_btn" label="Register" accesskey="R" oncommand="register();"/>
+ <button id="register_btn" label="&staff.main.ws_info.register_btn.label;" accesskey="&staff.main.ws_info.register_btn.accesskey;" oncommand="register();"/>
</hbox>
</vbox>
</window>