From a363a49c213f1e64add5c34a8a2bd17d154adfd3 Mon Sep 17 00:00:00 2001 From: levinse Date: Mon, 16 May 2011 15:18:56 +0000 Subject: [PATCH] internationalization/localization, RT12515 --- httemplate/view/cust_bill.cgi | 2 +- httemplate/view/cust_main/notes.html | 19 ++++++++++--------- httemplate/view/cust_pay.html | 7 ++++--- httemplate/view/cust_refund.html | 4 ++-- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index 0bcfacbf8..8ddeb1c81 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -1,5 +1,5 @@ <& /elements/header.html, mt('Invoice View'), menubar( - mt('View this customer')." (#$display_custnum)" => "${p}view/cust_main.cgi?$custnum", + mt("View this customer (#[_1])",$display_custnum) => "${p}view/cust_main.cgi?$custnum", ) &> % if ( $conf->exists('deleteinvoices') diff --git a/httemplate/view/cust_main/notes.html b/httemplate/view/cust_main/notes.html index 237838029..71c4fb4d5 100755 --- a/httemplate/view/cust_main/notes.html +++ b/httemplate/view/cust_main/notes.html @@ -54,7 +54,7 @@ % 'edit/cust_main_note.cgi'. % "?custnum=$custnum". % ";notenum=$notenum", -% 'actionlabel' => 'Edit customer note', +% 'actionlabel' => mt('Edit customer note'), % 'width' => 616, % 'height' => 538, #575 % 'frame' => 'top', @@ -63,13 +63,14 @@ % % my $edit = ''; % if ($curuser->access_right('Edit customer note') ) { -% $edit = qq! (edit)!; +% my $editlabel = mt('edit'); +% $edit = qq! ($editlabel)!; % } % % if ( $last_classnum != $note->classnum && !$skipheader ) { % my $tmp_classnum = $note->classnum ? $note->classnum : 0; % $classes{$tmp_classnum} = $note->classname ne '' ? $note->classname -% : 'Other'; +% : mt('Other'); % if ( $last_classnum != -1 ) { @@ -82,15 +83,15 @@ > <% include("/elements/table-grid.html") %> - Date + <% mt('Date') |h %> % if ( $conf->exists('cust_main_note-display_times') ) { - Time + <% mt('Time') |h %> % } - Person + <% mt('Person') |h %> % if ($conf->exists('note-classes') && $conf->config('note-classes') == 1) { - Class + <% mt('Class') |h %> % } - Note + <% mt('Note') |h %> % if ($curuser->access_right('Edit customer note') ) {   % } @@ -124,7 +125,7 @@ % if ( $conf->exists('note-classes') && $conf->config('note-classes') == 2 ) { % my($classnum,$classname); -Show notes of class:   +<% mt('Show notes of class:') |h %>   % foreach my $classnum ( sort { $b <=> $a } (keys %classes) ) {