From: Dan Scott Date: Sun, 16 Dec 2012 08:20:49 +0000 (-0500) Subject: I18N: Make everything in tt2 files translatable. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=81dde022ae39ecff8cbe0cbf7c85c7ce8e49df0f;p=contrib%2FConifer.git 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 --- 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') %]