From 81dde022ae39ecff8cbe0cbf7c85c7ce8e49df0f Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sun, 16 Dec 2012 03:20:49 -0500 Subject: [PATCH] I18N: Make everything in tt2 files translatable. Simply wrap everything that should be translatable inside l(). Also fixes bug #1088388 Signed-off-by: Pasi Kallinen Conflicts: Open-ILS/src/templates/acq/common/li_table.tt2 Open-ILS/src/templates/acq/invoice/view.tt2 Open-ILS/src/templates/acq/search/unified.tt2 Open-ILS/src/templates/vandelay/inc/item_attrs.tt2 Signed-off-by: Dan Scott --- .../examples/web/templates/flattener_test.tt2 | 18 +- Open-ILS/examples/web/templates/kpac/home.tt2 | 2 +- .../web/templates/kpac/parts/header.tt2 | 8 +- .../src/templates/acq/common/claim_dialog.tt2 | 16 +- .../acq/common/final_claim_dialog.tt2 | 6 +- Open-ILS/src/templates/acq/common/info.tt2 | 6 +- .../src/templates/acq/common/inv_dialog.tt2 | 8 +- Open-ILS/src/templates/acq/common/jubgrid.tt2 | 64 +++--- .../src/templates/acq/common/li_table.tt2 | 208 +++++++++--------- .../templates/acq/common/li_table_pager.tt2 | 4 +- Open-ILS/src/templates/acq/common/notes.tt2 | 18 +- .../src/templates/acq/currency_type/list.tt2 | 6 +- .../acq/financial/claim_eligible.tt2 | 18 +- Open-ILS/src/templates/acq/fund/list.tt2 | 46 ++-- Open-ILS/src/templates/acq/fund/view.tt2 | 66 +++--- .../src/templates/acq/funding_source/list.tt2 | 6 +- .../src/templates/acq/funding_source/view.tt2 | 46 ++-- .../src/templates/acq/invoice/receive.tt2 | 34 ++- Open-ILS/src/templates/acq/invoice/view.tt2 | 91 ++++---- .../src/templates/acq/lineitem/findbib.tt2 | 12 +- .../src/templates/acq/lineitem/history.tt2 | 4 +- .../src/templates/acq/lineitem/related.tt2 | 14 +- .../src/templates/acq/lineitem/search.tt2 | 34 +-- .../src/templates/acq/lineitem/worksheet.tt2 | 8 +- .../src/templates/acq/picklist/bib_search.tt2 | 14 +- .../templates/acq/picklist/brief_record.tt2 | 10 +- .../src/templates/acq/picklist/from_bib.tt2 | 10 +- Open-ILS/src/templates/acq/picklist/list.tt2 | 26 +-- .../src/templates/acq/picklist/upload.tt2 | 14 +- .../templates/acq/picklist/user_request.tt2 | 22 +- Open-ILS/src/templates/acq/picklist/view.tt2 | 12 +- Open-ILS/src/templates/acq/po/create.tt2 | 4 +- .../src/templates/acq/po/edi_messages.tt2 | 6 +- Open-ILS/src/templates/acq/po/events.tt2 | 18 +- Open-ILS/src/templates/acq/po/history.tt2 | 4 +- Open-ILS/src/templates/acq/po/item_table.tt2 | 20 +- Open-ILS/src/templates/acq/po/search.tt2 | 52 ++--- Open-ILS/src/templates/acq/po/view.tt2 | 58 ++--- .../src/templates/acq/receiving/process.tt2 | 8 +- Open-ILS/src/templates/acq/search/unified.tt2 | 86 ++++---- .../src/templates/acq/settings/li_attr.tt2 | 38 ++-- .../src/templates/actor/user/event_log.tt2 | 36 +-- .../src/templates/actor/user/register.tt2 | 18 +- Open-ILS/src/templates/booking/pickup.tt2 | 16 +- .../src/templates/booking/reservation.tt2 | 8 +- Open-ILS/src/templates/booking/return.tt2 | 16 +- Open-ILS/src/templates/cat/authority/list.tt2 | 20 +- .../src/templates/circ/hold_pull_list.tt2 | 34 +-- .../templates/circ/selfcheck/circ_page.tt2 | 16 +- .../src/templates/circ/selfcheck/fines.tt2 | 12 +- .../templates/circ/selfcheck/holds_page.tt2 | 6 +- .../src/templates/circ/selfcheck/main.tt2 | 10 +- .../templates/circ/selfcheck/patron_login.tt2 | 2 +- .../src/templates/circ/selfcheck/payment.tt2 | 58 ++--- .../src/templates/circ/selfcheck/summary.tt2 | 18 +- .../conify/global/acq/cancel_reason.tt2 | 10 +- .../conify/global/acq/claim_event_type.tt2 | 10 +- .../conify/global/acq/claim_policy.tt2 | 10 +- .../conify/global/acq/claim_policy_action.tt2 | 8 +- .../conify/global/acq/claim_type.tt2 | 10 +- .../global/acq/distribution_formula.tt2 | 24 +- .../conify/global/acq/edi_account.tt2 | 12 +- .../conify/global/acq/exchange_rate.tt2 | 8 +- .../templates/conify/global/acq/fund_tag.tt2 | 10 +- .../conify/global/acq/invoice_item_type.tt2 | 8 +- .../global/acq/invoice_payment_method.tt2 | 8 +- .../conify/global/acq/lineitem_alert.tt2 | 10 +- .../global/acq/lineitem_marc_attr_def.tt2 | 12 +- .../templates/conify/global/acq/provider.tt2 | 70 +++--- .../templates/conify/global/action/survey.tt2 | 50 ++--- .../action_trigger/event_definition.tt2 | 46 ++-- .../action_trigger/event_definition_data.tt2 | 28 +-- .../global/asset/copy_location_order.tt2 | 10 +- .../conify/global/asset/copy_template.tt2 | 22 +- .../conify/global/biblio/monograph_part.tt2 | 8 +- .../conify/global/booking/resource.tt2 | 10 +- .../conify/global/booking/resource_attr.tt2 | 10 +- .../global/booking/resource_attr_map.tt2 | 10 +- .../global/booking/resource_attr_value.tt2 | 10 +- .../conify/global/booking/resource_type.tt2 | 10 +- .../global/cat/authority/browse_axis.tt2 | 8 +- .../browse_axis_authority_field_map.tt2 | 10 +- .../global/cat/authority/control_set.tt2 | 8 +- .../authority/control_set_authority_field.tt2 | 14 +- .../cat/authority/control_set_bib_field.tt2 | 10 +- .../conify/global/cat/authority/thesaurus.tt2 | 10 +- .../conify/global/config/acn_prefix.tt2 | 10 +- .../conify/global/config/acn_suffix.tt2 | 10 +- .../conify/global/config/actor_sip_fields.tt2 | 8 +- .../conify/global/config/asset_sip_fields.tt2 | 8 +- .../global/config/barcode_completion.tt2 | 6 +- .../conify/global/config/billing_type.tt2 | 10 +- .../conify/global/config/circ_limit_group.tt2 | 8 +- .../conify/global/config/circ_limit_set.tt2 | 30 +-- .../global/config/circ_matrix_matchpoint.tt2 | 20 +- .../global/config/circ_matrix_weights.tt2 | 8 +- .../conify/global/config/circ_modifier.tt2 | 52 ++--- .../conify/global/config/coded_value_map.tt2 | 10 +- .../conify/global/config/global_flag.tt2 | 4 +- .../conify/global/config/hard_due_date.tt2 | 2 +- .../global/config/hard_due_date_values.tt2 | 10 +- .../global/config/hold_matrix_matchpoint.tt2 | 6 +- .../global/config/hold_matrix_weights.tt2 | 8 +- .../conify/global/config/idl_field_doc.tt2 | 8 +- .../conify/global/config/metabib_field.tt2 | 8 +- .../global/config/org_unit_setting_type.tt2 | 28 +-- .../global/config/record_attr_definition.tt2 | 10 +- .../global/config/rule_age_hold_protect.tt2 | 8 +- .../global/config/rule_circ_duration.tt2 | 8 +- .../conify/global/config/rule_max_fine.tt2 | 8 +- .../global/config/rule_recurring_fine.tt2 | 8 +- .../conify/global/config/sms_carrier.tt2 | 8 +- .../conify/global/config/standing_penalty.tt2 | 8 +- .../conify/global/config/usr_setting_type.tt2 | 28 +-- .../conify/global/config/weight_assoc.tt2 | 8 +- .../conify/global/config/z3950_source.tt2 | 8 +- .../permission/grp_penalty_threshold.tt2 | 10 +- .../conify/global/vandelay/match_set.tt2 | 14 +- .../conify/global/vandelay/match_set_tree.tt2 | 40 ++-- Open-ILS/src/templates/kpac/getit.tt2 | 4 +- Open-ILS/src/templates/kpac/home.tt2 | 8 +- Open-ILS/src/templates/kpac/parts/header.tt2 | 10 +- .../src/templates/kpac/parts/record_row.tt2 | 4 +- .../src/templates/kpac/parts/searchbox.tt2 | 2 +- Open-ILS/src/templates/kpac/record.tt2 | 4 +- Open-ILS/src/templates/kpac/results.tt2 | 2 +- Open-ILS/src/templates/login.tt2 | 12 +- Open-ILS/src/templates/menu.tt2 | 60 ++--- .../opac/myopac/main_payment_form.tt2 | 8 +- Open-ILS/src/templates/opac/myopac/prefs.tt2 | 2 +- .../src/templates/opac/parts/myopac/base.tt2 | 2 +- Open-ILS/src/templates/opac/sms_cn.tt2 | 10 +- Open-ILS/src/templates/serial/list_item.tt2 | 42 ++-- Open-ILS/src/templates/serial/list_stream.tt2 | 42 ++-- .../templates/serial/list_subscription.tt2 | 8 +- .../serial/print_routing_list_users.tt2 | 14 +- .../src/templates/serial/subscription.tt2 | 52 ++--- .../subscription/caption_and_pattern.tt2 | 38 ++-- .../serial/subscription/distribution.tt2 | 8 +- .../serial/subscription/issuance.tt2 | 18 +- .../templates/vandelay/inc/import_errors.tt2 | 30 +-- .../src/templates/vandelay/inc/item_attrs.tt2 | 8 +- .../src/templates/vandelay/inc/matches.tt2 | 6 +- .../src/templates/vandelay/inc/profiles.tt2 | 8 +- Open-ILS/src/templates/vandelay/inc/queue.tt2 | 36 +-- .../src/templates/vandelay/inc/upload.tt2 | 4 +- Open-ILS/src/templates/vandelay/vandelay.tt2 | 2 +- 147 files changed, 1381 insertions(+), 1382 deletions(-) diff --git a/Open-ILS/examples/web/templates/flattener_test.tt2 b/Open-ILS/examples/web/templates/flattener_test.tt2 index 8f610f646d..b15d068459 100644 --- a/Open-ILS/examples/web/templates/flattener_test.tt2 +++ b/Open-ILS/examples/web/templates/flattener_test.tt2 @@ -1,5 +1,5 @@ [% WRAPPER base.tt2 %] -[% ctx.page_title = 'Flattener Test' %] +[% ctx.page_title = l('Flattener Test') %] -
Claims
-
Against item: - - () +
[% l('Claims') %]
+
[% l('Against item: [_1] ([_2]', + '', + '') %]
diff --git a/Open-ILS/src/templates/acq/common/final_claim_dialog.tt2 b/Open-ILS/src/templates/acq/common/final_claim_dialog.tt2 index 882741cb6d..d2195686af 100644 --- a/Open-ILS/src/templates/acq/common/final_claim_dialog.tt2 +++ b/Open-ILS/src/templates/acq/common/final_claim_dialog.tt2 @@ -1,8 +1,8 @@
- + - + - +
diff --git a/Open-ILS/src/templates/acq/common/info.tt2 b/Open-ILS/src/templates/acq/common/info.tt2 index 6fc5456339..2b585d5fc7 100644 --- a/Open-ILS/src/templates/acq/common/info.tt2 +++ b/Open-ILS/src/templates/acq/common/info.tt2 @@ -13,10 +13,10 @@ Show the lineitem(s) related to the same bibliographic record.
-

MARC Order Record

-

MARC ILS Record

+

[% l('MARC Order Record') %]

+

[% l('MARC ILS Record') %]

- +
diff --git a/Open-ILS/src/templates/acq/common/inv_dialog.tt2 b/Open-ILS/src/templates/acq/common/inv_dialog.tt2 index 3bec75cf9a..f149e05d41 100644 --- a/Open-ILS/src/templates/acq/common/inv_dialog.tt2 +++ b/Open-ILS/src/templates/acq/common/inv_dialog.tt2 @@ -1,11 +1,11 @@ -Choose invoice +[% l('Choose invoice') %] diff --git a/Open-ILS/src/templates/acq/common/jubgrid.tt2 b/Open-ILS/src/templates/acq/common/jubgrid.tt2 index ce13d56449..9e0360ce5b 100644 --- a/Open-ILS/src/templates/acq/common/jubgrid.tt2 +++ b/Open-ILS/src/templates/acq/common/jubgrid.tt2 @@ -54,57 +54,57 @@ pointing to the JUB model (and store) that you have created. JUBGrid.jubGridLayout = [{ //noscroll: true, cells: [[ - {name: 'ID', field: 'id', width:'auto'}, - {name: 'Title', width: "180px", get:JUBGrid.getJUBTitle}, - {name: 'Author', get:JUBGrid.getJUBAuthor, width:'auto'}, - {name: 'ISBN', get:JUBGrid.getJUBIsbn, width:'auto'}, - {name: 'Pubdate', get:JUBGrid.getJUBPubdate, width:'auto'}, - {name: 'Actual Price', + {name: '[% l('ID') %]', field: 'id', width:'auto'}, + {name: '[% l('Title') %]', width: "180px", get:JUBGrid.getJUBTitle}, + {name: '[% l('Author') %]', get:JUBGrid.getJUBAuthor, width:'auto'}, + {name: '[% l('ISBN') %]', get:JUBGrid.getJUBIsbn, width:'auto'}, + {name: '[% l('Pubdate') %]', get:JUBGrid.getJUBPubdate, width:'auto'}, + {name: '[% l('Actual Price') %]', field:'actual_price', get:JUBGrid.getJUBActualPrice, editor:dojox.grid.editors.Dijit, width:'auto', editorClass: "dijit.form.CurrencyTextBox" }, - {name: 'Estimated Price', + {name: '[% l('Estimated Price') %]', field:'estimated_price', get:JUBGrid.getJUBEstimatedPrice, width:'auto', editor:dojox.grid.editors.Dijit, editorClass: "dijit.form.CurrencyTextBox" }, - {name: 'Vendor', width:'auto', + {name: '[% l('Vendor') %]', width:'auto', field: 'provider', get:JUBGrid.getProvider, editor:openils.editors.ProviderSelectEditor, }, - {name: 'No. Copies', field: 'item_count', width:'auto'}, - {name: 'State', field: 'state', width:'auto'}, - {name: 'PO', get:JUBGrid.getPO, width:'auto'} + {name: '[% l('No. Copies') %]', field: 'item_count', width:'auto'}, + {name: '[% l('State') %]', field: 'state', width:'auto'}, + {name: '[% l('PO') %]', get:JUBGrid.getPO, width:'auto'} ]] }]; JUBGrid.jubDetailGridLayout = [{ cells: [[ - {name:"ID", field:"id"}, - {name:"Fund", field:"fund", + {name:"[% l('ID') %]", field:"id"}, + {name:"[% l('Fund') %]", field:"fund", get:JUBGrid.getLIDFundCode, editor: openils.editors.FundSelectEditor, }, - {name:"Branch", field:"owning_lib", + {name:"[% l('Branch') %]", field:"owning_lib", get:JUBGrid.getLIDLibName, editor: openils.editors.OrgUnitSelectEditor }, - {name:"Barcode", field:"barcode", width:'auto', + {name:"[% l('Barcode') %]", field:"barcode", width:'auto', editor:dojox.grid.editors.Dijit, editorClass: "dijit.form.TextBox" }, - {name:"Call Number", field:"cn_label", width:'auto', + {name:"[% l('Call Number') %]", field:"cn_label", width:'auto', editor:dojox.grid.editors.Dijit, editorClass: "dijit.form.TextBox" }, - {name:"Shelving Location", field:"location", width:'auto', + {name:"[% l('Shelving Location') %]", field:"location", width:'auto', editor:openils.editors.CopyLocationSelectEditor, get:JUBGrid.getCopyLocation }, - {name:"Receive Time", width:'auto', + {name:"[% l('Receive Time') %]", width:'auto', get:JUBGrid.getRecvTime }, ]] @@ -112,16 +112,16 @@ pointing to the JUB model (and store) that you have created. JUBGrid.jubDetailGridLayoutReadOnly = [{ cells: [[ - {name:'ID', field:"id"}, - {name:'Fund', field:"fund", + {name:'[% l('ID') %]', field:"id"}, + {name:'[% l('Fund') %]', field:"fund", get:JUBGrid.getLIDFundCode, }, - {name:'Branch', field:"owning_lib", + {name:'[% l('Branch') %]', field:"owning_lib", get:JUBGrid.getLIDLibName, }, - {name:'Barcode', field:"barcode", width:'auto'}, - {name:'Call Number', field:"cn_label", width:'auto'}, - {name:'Shelving Location', field:"location", + {name:'[% l('Barcode') %]', field:"barcode", width:'auto'}, + {name:'[% l('Call Number') %]', field:"cn_label", width:'auto'}, + {name:'[% l('Shelving Location') %]', field:"location", width:'auto', get:JUBGrid.getCopyLocation}, ]] }]; @@ -135,10 +135,10 @@ pointing to the JUB model (and store) that you have created.
@@ -155,7 +155,7 @@ pointing to the JUB model (and store) that you have created.
- New Copy + [% l('New Copy') %]
- + - + @@ -189,10 +189,10 @@ pointing to the JUB model (and store) that you have created. diff --git a/Open-ILS/src/templates/acq/common/li_table.tt2 b/Open-ILS/src/templates/acq/common/li_table.tt2 index 328bed06c6..83881d0393 100644 --- a/Open-ILS/src/templates/acq/common/li_table.tt2 +++ b/Open-ILS/src/templates/acq/common/li_table.tt2 @@ -15,33 +15,33 @@ @@ -65,12 +65,12 @@ - - - - - - + + + + + + @@ -103,12 +103,12 @@ @@ -116,23 +116,23 @@
Line ItemsItemsNotesActionsStatusEstimated Price[% l('Line Items') %][% l('Items') %][% l('Notes') %][% l('Actions') %][% l('Status') %][% l('Estimated Price') %]
# - - - | ✍ worksheet - - - | requests + + + | [% l('✍ worksheet') %] + + + | [% l('requests') %]
- Copies(0) + [% l('Copies([_1])', '0') %] - Notes(0) + [% l('Notes([_1])', '0') %] @@ -153,7 +153,7 @@
-

Add/Edit Items

+

[% l('Add/Edit Items') %]


@@ -164,15 +164,15 @@ -
↖ Return
+
[% l('↖ Return') %]
- Item Count: + [% l('Item Count: ') %] -
Go
+
[% l('Go') %]
-
Save Changes
+
[% l('Save Changes') %]