i18n for the server/main and server/OpenILS directories
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 12 Feb 2008 02:41:11 +0000 (02:41 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 12 Feb 2008 02:41:11 +0000 (02:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8726 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
Open-ILS/xul/staff_client/server/locale/en-US/common.properties
Open-ILS/xul/staff_client/server/main/data.xul
Open-ILS/xul/staff_client/server/main/gen_offline_widgets.xul
Open-ILS/xul/staff_client/server/main/ws_info.xul

index 5629c17..d06fb77 100644 (file)
 <!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">
index 9b2e1a6..45fa5e8 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!-- Modified by Jason for Evergreen -->
 
 <overlay id="openils_util_overlay"
index 86a4e07..3bb695d 100644 (file)
@@ -84,3 +84,11 @@ staff.z39_50.search_class.publisher=Publisher
 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
index a35e20a..c2d6c71 100644 (file)
@@ -1,6 +1,9 @@
-<?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 -->
@@ -19,7 +22,7 @@
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- LOCALIZATION -->
 <!DOCTYPE window PUBLIC "" ""[
-       <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+       <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
 ]>
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -47,9 +50,7 @@
                        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>
index 70fb9b8..7385822 100644 (file)
@@ -1,6 +1,9 @@
-<?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 -->
@@ -11,7 +14,7 @@
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- LOCALIZATION -->
 <!DOCTYPE window PUBLIC "" ""[
-       <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
+       <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
 ]>
 
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -36,9 +39,7 @@
             netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
 
                        if (typeof JSAN == 'undefined') {
-                               throw(
-                                       "The JSAN library object is missing."
-                               );
+                               throw(document.getElementById('commonStrings').getString('common.jsan.missing'));
                        }
                        /////////////////////////////////////////////////////////////////////////////
 
@@ -87,7 +88,7 @@
 
                        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;
                                                        }
                                                }
index 6d5feb9..8b95f0a 100644 (file)
@@ -1,6 +1,9 @@
-<?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 -->
@@ -11,7 +14,7 @@
 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
 <!-- 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'));
                        }
                        /////////////////////////////////////////////////////////////////////////////
 
@@ -77,7 +78,7 @@
                                [ 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>