[open-ils-commits] r8438 - in trunk/Open-ILS: web/opac/locale/en-US
xul/staff_client/server/admin
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jan 20 08:10:48 EST 2008
Author: dbs
Date: 2008-01-20 07:44:43 -0500 (Sun, 20 Jan 2008)
New Revision: 8438
Modified:
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml
Log:
Localize many of the strings in closed_dates.xhtml;
Note: some of the forms need to be redesigned to support i18n.
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-01-20 12:13:59 UTC (rev 8437)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2008-01-20 12:44:43 UTC (rev 8438)
@@ -1297,3 +1297,29 @@
<!ENTITY staff.server.admin.cash.submit "Go!">
<!ENTITY staff.server.admin.cash.desk "Desk Payments">
<!ENTITY staff.server.admin.cash.user "User Payments">
+<!ENTITY staff.server.admin.closed_dates.title "Evergreen: Library Closed Dates Editor">
+<!ENTITY staff.server.admin.closed_dates.welcome "Welcome ">
+<!ENTITY staff.server.admin.closed_dates.editor.title " Closed Dates Editor ">
+<!ENTITY staff.server.admin.closed_dates.editor.for "Edit Closed Dates for: ">
+<!ENTITY staff.server.admin.closed_dates.editor.duration "Closed Duration">
+<!ENTITY staff.server.admin.closed_dates.editor.reason "Reason for Closing">
+<!ENTITY staff.server.admin.closed_dates.editor.delete "Delete">
+<!ENTITY staff.server.admin.closed_dates.editor.allmultiday.delete "delete">
+<!-- Translators: do not translate "<b>YYYY-MM-DD</b>" or "<b>HH:MM</b>" -->
+<!ENTITY staff.server.admin.closed_dates.editor.allmultiday.format "Note: All dates must have the form <b>YYYY-MM-DD</b>. Times must have the form <b>HH:MM</b>">
+<!ENTITY staff.server.admin.closed_dates.add.allday "Add Single Day Closing">
+<!ENTITY staff.server.admin.closed_dates.add.multiday "Add Mult-Date Closing">
+<!ENTITY staff.server.admin.closed_dates.add.detailed "Add Detailed Closing">
+<!ENTITY staff.server.admin.closed_dates.date.start "Start Date">
+<!ENTITY staff.server.admin.closed_dates.time.start "Start Time">
+<!ENTITY staff.server.admin.closed_dates.date.end "End Date">
+<!ENTITY staff.server.admin.closed_dates.time.end "End Time">
+<!ENTITY staff.server.admin.closed_dates.allday.label "All Day">
+<!ENTITY staff.server.admin.closed_dates.editor.reason.label "Reason for closing: ">
+<!ENTITY staff.server.admin.closed_dates.apply_all "Apply to all of my libraries">
+<!ENTITY staff.server.admin.closed_dates.save "Save">
+<!ENTITY staff.server.admin.closed_dates.cancel "Cancel">
+<!ENTITY staff.server.admin.closed_dates.confirm_delete "Are you sure you wish to delete the selected close date?">
+<!ENTITY staff.server.admin.closed_dates.date.invalid "Invalid date format">
+<!ENTITY staff.server.admin.closed_dates.time.invalid "Invalid time format">
+<!ENTITY staff.server.admin.closed_dates.success "Closed date successfully updated">
Modified: trunk/Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml 2008-01-20 12:13:59 UTC (rev 8437)
+++ trunk/Open-ILS/xul/staff_client/server/admin/closed_dates.xhtml 2008-01-20 12:44:43 UTC (rev 8438)
@@ -1,8 +1,15 @@
-<?xml version='1.0'?>
+<?xml version='1.0' encoding="UTF-8"?>
+
+<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
+ <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
+]>
+
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
<head>
- <title>Evergreen: Libray Closed Dates Editor</title>
+ <title>&staff.server.admin.closed_dates.title;</title>
<script language='javascript' src='/opac/common/js/utils.js'> </script>
<script language='javascript' src='/opac/common/js//config.js'> </script>
<script language='javascript' src='/opac/common/js/CGI.js'> </script>
@@ -41,22 +48,22 @@
<body onload='try{cdEditorInit();}catch(e){alert(js2JSON(e));}'>
<div class='welcome_box'>
- <span>Welcome </span><b><span id='cd_user'/></b>
+ <span>&staff.server.admin.closed_dates.welcome;</span><b><span id='cd_user'/></b>
</div>
<center>
- <div class='title'> Closed Dates Editor </div>
+ <div class='title'>&staff.server.admin.closed_dates.editor.title;</div>
<br/>
- Edit Closed Dates for: <select id='cd_orgs' style='width:auto;'/>
+ &staff.server.admin.closed_dates.editor.for;<select id='cd_orgs' style='width:auto;'/>
<br/><br/>
<table class='data_grid data_grid_center' style='width: 80%; padding: 8px;'>
<thead>
<tr>
- <td>Closed Duration</td>
- <td>Reason for Closing</td>
- <td>Delete</td>
+ <td>&staff.server.admin.closed_dates.editor.duration;</td>
+ <td>&staff.server.admin.closed_dates.editor.reason;</td>
+ <td>&staff.server.admin.closed_dates.editor.delete;</td>
</tr>
</thead>
<tbody id='cd_tbody'>
@@ -86,7 +93,7 @@
Every Day From <b name='start_date'/> through <b name='end_date'/>
</td>
<td><div name='note'/></td>
- <td><button name='delete'>delete</button></td>
+ <td><button name='delete'>&staff.server.admin.closed_dates.editor.allmultiday.delete;</button></td>
</tr>
</tbody>
@@ -94,7 +101,7 @@
<br/>
<div style='width: 80%'>
- Note: All dates must have the form <b>YYYY-MM-DD</b>. Times must have the form <b>HH:MM</b>
+ &staff.server.admin.closed_dates.editor.allmultiday.format;
</div>
<br/>
@@ -103,11 +110,11 @@
<tr>
<td width='100%' align='center' style='border: 1px solid #F0E0F0;'>
<button id='cd_new_allday'
- onclick='cdShowEditRow("cd_edit_allday_row");'>Add Single Day Closing</button>
+ onclick='cdShowEditRow("cd_edit_allday_row");'>&staff.server.admin.closed_dates.add.allday;</button>
<button id='cd_new_multiday'
- onclick='cdShowEditRow("cd_edit_allmultiday_row");'>Add Mult-Date Closing</button>
+ onclick='cdShowEditRow("cd_edit_allmultiday_row");'>&staff.server.admin.closed_dates.add.multiday;</button>
<button id='cd_new'
- onclick='cdShowEditRow("cd_edit_row");'>Add Detailed Closing</button>
+ onclick='cdShowEditRow("cd_edit_row");'>&staff.server.admin.closed_dates.add.detailed;</button>
</td>
</tr>
</table>
@@ -119,10 +126,10 @@
<table class='data_grid data_grid_center' style='width: 100%;'>
<thead>
<tr>
- <td>Start Date</td>
- <td>Start Time</td>
- <td>End Date</td>
- <td>End Time</td>
+ <td>&staff.server.admin.closed_dates.date.start;</td>
+ <td>&staff.server.admin.closed_dates.time.start;</td>
+ <td>&staff.server.admin.closed_dates.date.end;</td>
+ <td>&staff.server.admin.closed_dates.time.end;</td>
</tr>
</thead>
<tbody>
@@ -138,7 +145,7 @@
<input id='cd_edit_start_time' type='text' size='5' maxlength='5'/>
</td>
<td>
- <div style='font-size: 80%;'>All Day</div>
+ <div style='font-size: 80%;'>&staff.server.admin.closed_dates.allday.label;</div>
<input type='checkbox' id='cd_edit_start_time_allday'
onclick='
var input = $("cd_edit_start_time");
@@ -157,7 +164,7 @@
<input id='cd_edit_end_time' type='text' size='5' maxlength='5'/>
</td>
<td>
- <div style='font-size: 80%;'>All Day</div>
+ <div style='font-size: 80%;'>&staff.server.admin.closed_dates.allday.label;</div>
<input type='checkbox' id='cd_edit_end_time_allday'
onclick='
var input = $("cd_edit_end_time");
@@ -172,7 +179,7 @@
<tr id='cd_edit_allday_row' class='hide_me'>
<td>
- <span> All Day </span>
+ <span> &staff.server.admin.closed_dates.allday.label; </span>
<input id='cd_edit_allday_start_date' type='text' size='10' maxlength='10'/>
<img src="/opac/common/js/jscalendar/img.gif"
id='cd_edit_allday_start_date_img' class='cal_img'/>
@@ -197,19 +204,19 @@
<tr id='cd_edit_note_row' class='hide_me' valign='middle'>
<td>
- <div>Reason for closing: </div>
+ <div>&staff.server.admin.closed_dates.editor.reason.label;</div>
<textarea style='border: 1px solid blue; background: #E0F0E0; margin: 5px;'
id='cd_edit_note' wrap='soft' cols='40' rows='3'/>
<div id='cd_apply_all_div' class='hide_me'>
- Apply to all of my libraries <input type='checkbox' id='cd_apply_all'/>
+ &staff.server.admin.closed_dates.apply_all; <input type='checkbox' id='cd_apply_all'/>
</div>
</td>
</tr>
<tr id='cd_edit_submit' class='hide_me'>
<td>
- <button onclick='cdNew();'>Save</button>
- <button onclick='cdCancelEdit();'>Cancel</button>
+ <button onclick='cdNew();'>&staff.server.admin.closed_dates.save;</button>
+ <button onclick='cdCancelEdit();'>&staff.server.admin.closed_dates.cancel;</button>
</td>
</tr>
@@ -217,11 +224,11 @@
</tbody>
</table>
- <span class='hide_me' id='cd_all_day'>All Day</span>
- <span class='hide_me' id='cd_confirm_delete'>Are you sure you wish to delete the selected close date?</span>
- <span class='hide_me' id='cd_invalid_date'>Invalid date format</span>
- <span class='hide_me' id='cd_invalid_time'>Invalid time format</span>
- <span class='hide_me' id='cd_update_success'>Closed date successfully updated</span>
+ <span class='hide_me' id='cd_all_day'>&staff.server.admin.closed_dates.allday.label;</span>
+ <span class='hide_me' id='cd_confirm_delete'>&staff.server.admin.closed_dates.confirm_delete;</span>
+ <span class='hide_me' id='cd_invalid_date'>&staff.server.admin.closed_dates.date.invalid;</span>
+ <span class='hide_me' id='cd_invalid_time'>&staff.server.admin.closed_dates.time.invalid;</span>
+ <span class='hide_me' id='cd_update_success'>&staff.server.admin.closed_dates.success;</span>
</center>
</body>
More information about the open-ils-commits
mailing list