more message-text cleanups in the templates.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 29 Mar 2011 00:56:10 +0000 (00:56 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 29 Mar 2011 00:56:10 +0000 (00:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/branches/i18n@1289 6d9bc8c9-1ec2-4278-b937-99fde70a366f

14 files changed:
conifer/integration/linktool/templates/associate.xhtml
conifer/integration/linktool/templates/index.xhtml
conifer/integration/linktool/templates/new_site_cannot.xhtml
conifer/integration/linktool/templates/whichsite.xhtml
conifer/templates/admin/su.xhtml
conifer/templates/browse_index.xhtml
conifer/templates/components/site.xhtml
conifer/templates/item/common_metadata.xhtml
conifer/templates/item/item_add_cat_search.xhtml
conifer/templates/item/item_add_elec.xhtml
conifer/templates/item/item_add_url.xhtml
conifer/templates/item/item_metadata.xhtml
conifer/templates/site_invitation.xhtml
conifer/templates/site_join.xhtml

index 293d81a..fd2f2b9 100644 (file)
@@ -1,5 +1,6 @@
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
       xmlns:py="http://genshi.edgewall.org/">
   <xi:include href="linktoolmaster.xhtml"/>
   <head>
@@ -12,9 +13,7 @@
   <body>
     <h1>No associated reserves items.</h1>
     <div py:if="extsite.is_currentish()">
-      <p>There are no reserves materials associated with this course
-      site. As an instructor, you can choose one of the following
-      options:</p>
+      <p>There are no reserves materials associated with this course site. As an instructor, you can choose one of the following options:</p>
       <ol>
        <li>
          <div><b>Link this course site to one of my current reserves list</b></div>
        </li>
 -->
       </ol>
-      <p>Or, you can just <a href="${ROOT}/browse/">browse the reserves</a>.</p>
+      <p i18n:msg="browse">Or, you can just <a href="${ROOT}/browse/">browse the reserves</a>.</p>
     </div>
     <div py:if="not extsite.is_currentish()"
         py:with="t=extsite.term_obj or 'unknown'; c=extsite.coursecode or 'unknown'">
-      <p>There are no reserves materials associated with this course
-      site.</p> <p>You can create reserves lists for course sites
-      associated with a current or future term. But this site is
-      associated with the term "${t}" and the course "${c}" &mdash; so
-      a reserves list cannot be created.</p>
+      <p>There are no reserves materials associated with this course site.</p>
+      <p i18n:msg="term,course">You can create reserves lists for course sites associated with a current or future term. But this site is associated with the term "${t}" and the course "${c}" &mdash; so a reserves list cannot be created.</p>
       <p><a href="${ROOT}/browse/">Browse the reserves</a></p>
     </div>
   </body>
index 8917db5..d7d3c9e 100644 (file)
@@ -10,7 +10,7 @@
   </script>
 </head>
 <body>
-<h1>Welcome</h1>
+<h1>Welcome!</h1>
 ${repr(list(related_sites))}
 </body>
 </html>
index 063b10a..50c5a06 100644 (file)
@@ -1,5 +1,6 @@
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
       xmlns:py="http://genshi.edgewall.org/">
   <xi:include href="linktoolmaster.xhtml"/>
   <head>
   </head>
   <body>
     <h1>Cannot create site...</h1>
-    <p>Sorry, but your site's course code (${coursecode or 'unknown'})
-    and/or term code (${termcode or 'unknown'}) do not match any known
-    codes in the reserves system.</p>
-    <p> 
+    <p i18n:msg="course,term">Sorry, but your site's course code (${coursecode or 'unknown'}) and/or term code (${termcode or 'unknown'}) do not match any known codes in the reserves system.</p> <p> 
       <a href="https://clew.uwindsor.ca/xsl-portal/site/${request.session['clew-site']}/">
        Go back
       </a>
index f121df1..7eb55ae 100644 (file)
@@ -4,9 +4,8 @@
   <xi:include href="linktoolmaster.xhtml"/>
   <head/>
   <body>
-    <h1 style="padding-top: 1em;">Please choose a set of reserves materials</h1>
-    <p>There is more than one set of reserves materials related to this
-    site. Please choose from the list below:</p>
+    <h1 style="padding-top: 1em;">Please choose a set of reserves materials.</h1>
+    <p>There is more than one set of reserves materials related to this site. Please choose from the list below:</p>
     <ul>
       <li py:for="site in related_sites"
          style="margin-bottom: 1em;"><a href="${site.site_url()}">${site}</a></li>
index 3f1e222..98f06ca 100644 (file)
@@ -14,7 +14,7 @@ title = _('Impersonate another user')
 <body>
   <h1>${title}</h1>
   <form action="." method="POST">
-       <p>UWin ID to impersonate:</p>
+       <p>User ID to impersonate:</p>
        <p><input type="text" name="userid"/></p>
        <p><input type="submit" value="${_('Impersonate')}"/></p>
   </form>
index 3820921..a0c3063 100644 (file)
@@ -6,6 +6,7 @@ blocks = itertools.groupby(sites, lambda s: s.course.department)
 ?>
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
       xmlns:py="http://genshi.edgewall.org/">
 <xi:include href="master.xhtml"/>
 <head>
@@ -13,9 +14,8 @@ blocks = itertools.groupby(sites, lambda s: s.course.department)
 </head>
 <body>
   <h1>${title}</h1>
-  <div py:if="user.is_anonymous()">
-    (Note: some reserve materials may require you
-    to <a href="${ROOT}${settings.LOGIN_URL}?next=${ROOT}/">log in</a>)
+  <div py:if="user.is_anonymous()" i18n:msg="log_in">
+    (Note: some reserve materials may require you to <a href="${ROOT}${settings.LOGIN_URL}?next=${ROOT}/">log in</a>)
   </div>
   
   <img py:def="lock(condition=True)" 
index d4ac24a..a3c53ce 100644 (file)
@@ -3,6 +3,7 @@ searchtext = _('search this site...')
 ?>
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:py="http://genshi.edgewall.org/"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       py:strip="">
   
@@ -59,7 +60,7 @@ searchtext = _('search this site...')
                 <span py:if="_circmod == 'RESERVE 7 DAY'">7 Day Loan</span>
           </div>
          <div class="callnumber"><span py:if="_avail &gt; 0">Ask for: </span><span class="standout">${_callno}</span></div>
-          <div py:if="_dueinfo">NEXT DUE: ${_dueinfo}</div>
+          <div py:if="_dueinfo" i18n:msg="due_info" i18n:comment="The next copy is due back:">NEXT DUE: ${_dueinfo}</div>
          </div>
                  
          <div py:if="not valid" class="unavailable">
index 8975483..77c9e2c 100644 (file)
@@ -1,5 +1,6 @@
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
       xmlns:py="http://genshi.edgewall.org/"
       py:strip="True">
 <?python
@@ -15,7 +16,7 @@ if len(authors) < 2:
       <tr><th>Title of document</th><td><input type="text" name="title" value="${item.title}"/></td></tr>
       <tr><th>Title of source</th><td><input type="text" name="source_title" value="${item.source_title}"/></td></tr>
       <tr py:for="n, author in enumerate(authors)">
-       <th>Author #${n+1}</th><td><input type="text" name="author${n+1}" value="${author}"/></td>
+       <th i18n:msg="num">Author #${n+1}</th><td><input type="text" name="author${n+1}" value="${author}"/></td>
       </tr>
       <tr><th>Publisher</th><td><input type="text" name="publisher" value="${item.publisher}"/></td></tr>
       <tr><th>Published</th><td><input type="text" name="published" value="${item.published}"/></td></tr>
index 89b1e54..e725c7e 100644 (file)
@@ -10,6 +10,7 @@ dc_keys = ['dc:title', 'dc:creator', 'dc:publisher', 'dc:date']
 ?>
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
       xmlns:py="http://genshi.edgewall.org/">
 <xi:include href="../master.xhtml"/>
 <xi:include href="../paginate.xhtml"/>
@@ -45,13 +46,13 @@ dc_keys = ['dc:title', 'dc:creator', 'dc:publisher', 'dc:date']
     </form>
     <div py:def="page_control" py:if="results">
       <p>
-       ${start}&ndash;${min(numhits, start+limit-1)} of ${numhits} results.
+       <span i18n:msg="first,last,total">${start}&ndash;${min(numhits, start+limit-1)} of ${numhits} results.</span>
        <span py:if="start-limit&gt;0">
-         <a href=".?query=${query}&amp;start=${start-limit}&amp;limit=${limit}">Previous ${limit}</a>
+         <a href=".?query=${query}&amp;start=${start-limit}&amp;limit=${limit}" i18n:msg="count">Previous ${limit}</a>
          &bull;
        </span>
        <span py:if="start+limit&lt;numhits">
-         <a href=".?query=${query}&amp;start=${start+limit}&amp;limit=${limit}">Next ${limit}</a>
+         <a href=".?query=${query}&amp;start=${start+limit}&amp;limit=${limit}" i18n:msg="count">Next ${limit}</a>
        </span>
       </p>
     </div>
index 7fa9453..e21e47b 100644 (file)
@@ -29,7 +29,7 @@ site.title = '%s: %s (%s)' % (site.course.code, site.course.name, site.term)
            enctype="multipart/form-data">
        <table class="metadata_table">
          ${common_table(item)}
-         <tr><th>File</th><td><input type="file" name="file"/></td></tr>
+         <tr><th>Electronic file</th><td><input type="file" name="file"/></td></tr>
        </table>
        <p><input type="submit" value="${_('Upload file and Create item')}"/>
        ${go_back_link()}
@@ -47,7 +47,7 @@ site.title = '%s: %s (%s)' % (site.course.code, site.course.name, site.term)
       <h2>Replace file contents</h2>
       <form action="." method="POST" enctype="multipart/form-data">
        <table class="metadata_table">
-         <tr><th>File</th><td><input type="file" name="file"/></td></tr>
+         <tr><th>Electronic file</th><td><input type="file" name="file"/></td></tr>
        </table>
        <p><input type="submit" value="${_('Upload new file contents')}"/></p>
 
index 4d860a4..39c8d3a 100644 (file)
@@ -5,6 +5,7 @@ site.title = '%s: %s (%s)' % (site.course.code, site.course.name, site.term)
 ?>
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
       xmlns:py="http://genshi.edgewall.org/">
   <xi:include href="../master.xhtml"/>
   <xi:include href="../components/site.xhtml"/>
@@ -23,7 +24,7 @@ site.title = '%s: %s (%s)' % (site.course.code, site.course.name, site.term)
     ${nested_title(parent_item)}
     ${offer_to_delete(item)}
     <div py:if="not is_edit" style="float:right;">
-      <a href="javascript:void($('#refworks,.metadata_table').toggle());">Import RIS</a>
+      <a href="javascript:void($('#refworks,.metadata_table').toggle());" i18n:comment="Refworks Import Format">Import RIS</a>
     </div>
     <h2>${title}</h2>
 
index 2a4c3e2..ee444d8 100644 (file)
@@ -67,7 +67,7 @@ callnum = item.call_number()
              title="${_avail} of ${_desk} copies available at reserves desk; ${_lib} total copies in library system">
          <th>Call Number (take this to the counter)</th>
           <td>
-          <div class="${_avail &gt; 0 and 'available' or 'unavailable'}" py:if="_dueinfo">DUE: ${_dueinfo}</div>
+          <div class="${_avail &gt; 0 and 'available' or 'unavailable'}" py:if="_dueinfo" i18n:msg="duedate">DUE: ${_dueinfo}</div>
           <div class="callnumber ${_avail &gt; 0 and 'available' or 'unavailable'}">${_callno}</div>
           <div py:if="_circmod">
                 <span py:if="_circmod == 'RSV2'">2 Hour Loan</span>
@@ -105,16 +105,12 @@ callnum = item.call_number()
       </div>
       <div id="ask_to_download_panel">
        <p py:if="custom_declaration" py:content="custom_declaration"/>
-       <p py:if="not custom_declaration">By pressing the 'Request' button
-       below, I am requesting a digital copy of a reading (chapter, article)
-       for my own private study and research use. I agree that I will not
-       reproduce, redistribute or transmit a copy of the reading in any
-       format.</p>
+       <p py:if="not custom_declaration">By pressing the 'Request' button below, I am requesting a digital copy of a reading (chapter, article) for my own private study and research use. I agree that I will not reproduce, redistribute or transmit a copy of the reading in any format.</p>
        <p><a class="bigdownload" href="javascript:askToDownload();"><button onclick="askToDownload();">Request to download this document</button></a></p>
       </div>
       <div id="downloadpanel">
        <p><a class="bigdownload" href="${item.item_download_url()}"><button onclick="location='${item.item_download_url()}';">Click here to download the document.</button></a></p>
-       <p>Document type: ${item.fileobj_mimetype}. Size: ${item.fileobj.size} bytes.</p>
+       <p i18n:msg="type,bytes">Document type: ${item.fileobj_mimetype}. Size: ${item.fileobj.size} bytes.</p>
        </div>
     </div>
 
index c038456..0673ffd 100644 (file)
@@ -15,11 +15,7 @@ title = _('Join a site using an Invitation Code')
 </head>
 <body>
   <h1>${title}</h1>
-  <p>Your instructor may have provided you with an Invitation Code,
-  which will give you access to your course's reserves. Enter the
-  invitation code below to continue. Note that not all courses require
-  an invitation code; contact your instructor or the library staff for
-  more information.</p>
+  <p>Your instructor may have provided you with an Invitation Code, which will give you access to your course's reserves. Enter the invitation code below to continue. Note that not all courses require an invitation code; contact your instructor or the library staff for more information.</p>
   <div class="errors" py:if="error">${error}</div>
   <form action="." method="POST">
   <table class="metadata_table">
index e16b11d..75a59f2 100644 (file)
@@ -13,8 +13,7 @@ title = _('Join this site?')
     ${site_banner(site)}
     <h2>${title}</h2>
 
-    <p>If you choose to join this site, it will be added to your "My
-    Reserves" list.</p>
+    <p>If you choose to join this site, it will be added to your "My Reserves" list.</p>
     <form action="." method="POST">
       <p><input type="submit" value="${_('Yes, join this site')}"/> ${go_back_link()}</p>
     </form>