From: Ivan Kohler Date: Sun, 25 Sep 2016 19:20:40 +0000 (-0700) Subject: fix translation escaping X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=4dc075fc38008d1c6cbe9b88b2bdb32bdc92adbf fix translation escaping --- diff --git a/httemplate/elements/change_password.html b/httemplate/elements/change_password.html index 2b40ec1c8..a84e823d2 100644 --- a/httemplate/elements/change_password.html +++ b/httemplate/elements/change_password.html @@ -8,7 +8,7 @@ display: none; } -(<% mt('change') %>) +(<% emt('change') %>)
diff --git a/httemplate/elements/tr-cust_main-phones.html b/httemplate/elements/tr-cust_main-phones.html index accf8ac64..a19340165 100644 --- a/httemplate/elements/tr-cust_main-phones.html +++ b/httemplate/elements/tr-cust_main-phones.html @@ -1,22 +1,22 @@ - <% mt('Phones') %> + <% emt('Phones') %>
<%$style%>> -
<% $daytime_label %> +
<% $daytime_label |h %>
  <%$style%>> -
<% $night_label %> +
<% $night_label |h %>
  <%$style%>> -
<% $mobile_label %> +
<% $mobile_label |h %>
diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html index 197ade14f..d4d4afa6e 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -288,7 +288,7 @@ function create_application_row(rownum, appnum) { td_invnum.setAttribute('colspan', 4); td_invnum.style.textAlign = 'right'; td_invnum.appendChild( - document.createTextNode('<% mt('Apply to Invoice ') %>') + document.createTextNode(<% mt('Apply to Invoice ') |js_string %>) ); var select_invnum = document.createElement('SELECT'); select_invnum.setAttribute('rownum', rownum); diff --git a/httemplate/misc/change_pkg_contact.html b/httemplate/misc/change_pkg_contact.html index c88140ebf..26eacb905 100755 --- a/httemplate/misc/change_pkg_contact.html +++ b/httemplate/misc/change_pkg_contact.html @@ -16,7 +16,7 @@ % if ( $cust_pkg->contactnum ) { - <% mt('Current Contact') %> + <% emt('Current Contact') %> <% $cust_pkg->contact_obj->line |h %> diff --git a/httemplate/misc/detach_pkg.html b/httemplate/misc/detach_pkg.html index b2dfa389d..dc2329150 100755 --- a/httemplate/misc/detach_pkg.html +++ b/httemplate/misc/detach_pkg.html @@ -28,7 +28,7 @@ - <% mt('Name') %> + <% emt('Name') %> <% $cust_pkg->contact_obj->line |h %> @@ -36,7 +36,7 @@ % #} - <% mt('Address') %> + <% emt('Address') %> <% $loc->location_label( 'join_string' => '
', diff --git a/httemplate/search/report_prepaid_income.html b/httemplate/search/report_prepaid_income.html index dfb2ea249..127c1b852 100644 --- a/httemplate/search/report_prepaid_income.html +++ b/httemplate/search/report_prepaid_income.html @@ -32,9 +32,9 @@ <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %> <& /elements/tr-select-cust_main-status.html, - label => mt('Customer Status') &> + label => emt('Customer Status') &> <& /elements/tr-select-cust_class.html, - label => mt('Customer Class'), field => 'cust_classnum', multiple => 1 &> + label => emt('Customer Class'), field => 'cust_classnum', multiple => 1 &> <& /elements/tr-select.html, label => 'Invoice Status', field => 'mode', @@ -43,7 +43,7 @@ - <% mt('Include packages with period ≤ 1 month') %> + <% emt('Include packages with period < 1 month') %> diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index d9525750c..6d5277612 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -83,7 +83,7 @@ function areyousure(href, message) { % $onclick = ''; % if ( $cust_bill->promised_date ) { % my $date_format = $conf->config('date_format') || '%b %o, %Y'; - <% mt('Payment promised by [_1]', + <% emt('Payment promised by [_1]', time2str($date_format, $cust_bill->promised_date) ) %> ( <% $onclick %><% mt('change') |h %> )

@@ -144,7 +144,7 @@ function areyousure(href, message) { % $cust_bill->cust_main->agent->invoice_modes; % if ( @modes || $include_statement_template ) { <% $br ? '|' : '' %> -<% mt('View as:') %> +<% emt('View as:') %> <& /elements/select-table.html, diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 3feff2f78..d75f114cf 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -10,7 +10,7 @@ % if ( $this eq 'ship' and % $cust_main->bill_locationnum == $cust_main->ship_locationnum ) % { - (<% mt('same as billing') %>) + (<% emt('same as billing') %>) % } % if ( diff --git a/httemplate/view/cust_main/misc.html b/httemplate/view/cust_main/misc.html index 7e625d26c..d9bf91e17 100644 --- a/httemplate/view/cust_main/misc.html +++ b/httemplate/view/cust_main/misc.html @@ -165,7 +165,7 @@ % if ( $conf->exists('ticket_system-selfservice_edit_subject') ) { - <% mt('Edit ticket subjects') %> + <% emt('Edit ticket subjects') %> <% $cust_main->edit_subject ? 'yes' : 'no' %> diff --git a/httemplate/view/cust_main/notes/email.html b/httemplate/view/cust_main/notes/email.html index da2c352b6..41c5b8ad4 100644 --- a/httemplate/view/cust_main/notes/email.html +++ b/httemplate/view/cust_main/notes/email.html @@ -8,22 +8,22 @@ .row1 {background-color: #ffffff}
- <% mt('Email sent to this customer') %>
+ <% emt('Email sent to this customer') %>
% if ($maxrecords < $total) { -<% mt('Showing [_1] most recent of [quant,_2,total message]', $maxrecords, $total) %> +<% emt('Showing [_1] most recent of [quant,_2,total message]', $maxrecords, $total) %> - (<% mt('view all') %>) + (<% emt('view all') %>) % } else { -<% mt('[quant,_1,total message]', $total) %> +<% emt('[quant,_1,total message]', $total) %> % }
<& /elements/table-grid.html &> - <% mt('Date') %> - <% mt('Type') %> - <% mt('Destination') %> - <% mt('Subject') %> + <% emt('Date') %> + <% emt('Type') %> + <% emt('Destination') %> + <% emt('Subject') %> % my $i = 0; diff --git a/httemplate/view/cust_main/packages/package.html b/httemplate/view/cust_main/packages/package.html index 0a5305ed5..1b397d851 100644 --- a/httemplate/view/cust_main/packages/package.html +++ b/httemplate/view/cust_main/packages/package.html @@ -265,7 +265,7 @@ % if ( @cust_pkg_usage ) { - + % foreach my $usage (@cust_pkg_usage) { % my $part = $usage->part_pkg_usage; % my $ratio = 255 * ($usage->minutes / $part->minutes);
<% mt('Included usage') %>
<% emt('Included usage') %>