Bugzilla – Attachment 31438 Details for
Bug 11668
Untranslatable "Total" in borrowers stats and other reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[Follow-up] Fix untranslatable "Total" in more files
Follow-up-Fix-untranslatable-Total-in-more-files.patch (text/plain), 6.48 KB, created by
Marc Véron
on 2014-09-07 19:11:50 UTC
(
hide
)
Description:
[Follow-up] Fix untranslatable "Total" in more files
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2014-09-07 19:11:50 UTC
Size:
6.48 KB
patch
obsolete
>From 21a7532b8fd08f92f465249164950f226a3aa7dd Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Sun, 7 Sep 2014 21:08:01 +0200 >Subject: [PATCH] [Follow-up] Fix untranslatable "Total" in more files > >This patch fixes untranslatable "Total" in following files: > >reports/acquisitions_stats.pl >reports/bor_issues_top.pl >reports/borrowers_out.pl >reports/cat_issues_top.pl >reports/catalogue_stats.pl >reports/issues_avg_stats.pl >reports/issues_stats.pl > >To test follow test plan from first patch as appropiate. > >http://bugs.koha-community.org/show_bug.cgi?id=11668 >--- > reports/acquisitions_stats.pl | 4 ++-- > reports/bor_issues_top.pl | 4 ++-- > reports/borrowers_out.pl | 4 ++-- > reports/cat_issues_top.pl | 4 ++-- > reports/catalogue_stats.pl | 4 ++-- > reports/issues_avg_stats.pl | 4 ++-- > reports/issues_stats.pl | 4 ++-- > reports/reserves_stats.pl | 4 ++-- > 8 files changed, 16 insertions(+), 16 deletions(-) > >diff --git a/reports/acquisitions_stats.pl b/reports/acquisitions_stats.pl >index b19bf8e..4885a0e 100755 >--- a/reports/acquisitions_stats.pl >+++ b/reports/acquisitions_stats.pl >@@ -94,7 +94,7 @@ if ($do_it) { > foreach my $col (@$cols) { > print $col->{coltitle} . $sep; > } >- print "Total\n"; >+ print gettext("Total") . "\n"; > foreach my $line (@$lines) { > my $x = $line->{loopcell}; > print $line->{rowtitle} . $sep; >@@ -104,7 +104,7 @@ if ($do_it) { > print $line->{totalrow}; > print "\n"; > } >- print "TOTAL"; >+ print gettext("TOTAL"); > $cols = @$results[0]->{loopfooter}; > foreach my $col (@$cols) { > print $sep. $col->{totalcol}; >diff --git a/reports/bor_issues_top.pl b/reports/bor_issues_top.pl >index bdd58ba..c19b579 100755 >--- a/reports/bor_issues_top.pl >+++ b/reports/bor_issues_top.pl >@@ -86,7 +86,7 @@ if ($do_it) { > print @$results[0]->{line} ."/". @$results[0]->{column} .$sep; > # Other header > print join($sep, map {$_->{coltitle}} @$cols); >- print $sep . "Total\n"; >+ print $sep . gettext("Total") . "\n"; > # Table > foreach my $line ( @$lines ) { > my $x = $line->{loopcell}; >@@ -96,7 +96,7 @@ if ($do_it) { > print "\n"; > } > # footer >- print "TOTAL"; >+ print gettext("TOTAL"); > $cols = @$results[0]->{loopfooter}; > print join($sep, map {$_->{totalcol}} @$cols); > print $sep.@$results[0]->{total}; >diff --git a/reports/borrowers_out.pl b/reports/borrowers_out.pl >index 9687234..bb93e51 100755 >--- a/reports/borrowers_out.pl >+++ b/reports/borrowers_out.pl >@@ -83,7 +83,7 @@ if ($do_it) { > foreach my $col ( @$cols ) { > print $col->{coltitle}.$sep; > } >- print "Total\n"; >+ print gettext("Total") . "\n"; > # Table > foreach my $line ( @$lines ) { > my $x = $line->{loopcell}; >@@ -96,7 +96,7 @@ if ($do_it) { > print "\n"; > } > # footer >- print "TOTAL"; >+ print gettext("TOTAL"); > $cols = @$results[0]->{loopfooter}; > foreach my $col ( @$cols ) { > print $sep.$col->{totalcol}; >diff --git a/reports/cat_issues_top.pl b/reports/cat_issues_top.pl >index 893fd21..343dd53 100755 >--- a/reports/cat_issues_top.pl >+++ b/reports/cat_issues_top.pl >@@ -89,7 +89,7 @@ if ($do_it) { > foreach my $col ( @$cols ) { > print $col->{coltitle}.$sep; > } >- print "Total\n"; >+ print gettext("Total") . "\n"; > # Table > foreach my $line ( @$lines ) { > my $x = $line->{loopcell}; >@@ -101,7 +101,7 @@ if ($do_it) { > print "\n"; > } > # footer >- print "TOTAL"; >+ print gettext("TOTAL"); > $cols = @$results[0]->{loopfooter}; > foreach my $col ( @$cols ) { > print $sep.$col->{totalcol}; >diff --git a/reports/catalogue_stats.pl b/reports/catalogue_stats.pl >index a19334a..f73415a 100755 >--- a/reports/catalogue_stats.pl >+++ b/reports/catalogue_stats.pl >@@ -86,7 +86,7 @@ if ($do_it) { > foreach my $col ( @$cols ) { > print $col->{coltitle}.$sep; > } >- print "Total\n"; >+ print gettext("Total") . "\n"; > foreach my $line ( @$lines ) { > my $x = $line->{loopcell}; > print $line->{rowtitle}.$sep; >@@ -96,7 +96,7 @@ if ($do_it) { > print $line->{totalrow}; > print "\n"; > } >- print "TOTAL"; >+ print gettext("TOTAL"); > $cols = @$results[0]->{loopfooter}; > foreach my $col ( @$cols ) { > print $sep.$col->{totalcol}; >diff --git a/reports/issues_avg_stats.pl b/reports/issues_avg_stats.pl >index 3781d37..ea0c65f 100755 >--- a/reports/issues_avg_stats.pl >+++ b/reports/issues_avg_stats.pl >@@ -91,7 +91,7 @@ if ($do_it) { > foreach my $col ( @$cols ) { > print $col->{coltitle}.$sep; > } >- print "Total\n"; >+ print gettext("Total") . "\n"; > # Table > foreach my $line ( @$lines ) { > my $x = $line->{loopcell}; >@@ -103,7 +103,7 @@ if ($do_it) { > print "\n"; > } > # footer >- print "TOTAL"; >+ print gettext("TOTAL"); > $cols = @$results[0]->{loopfooter}; > foreach my $col ( @$cols ) { > print $sep.$col->{totalcol}; >diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl >index 0ab0143..7f73fc1 100755 >--- a/reports/issues_stats.pl >+++ b/reports/issues_stats.pl >@@ -107,7 +107,7 @@ if ($do_it) { > foreach my $col ( @$cols ) { > print $col->{coltitle}.$sep; > } >- print "Total\n"; >+ print gettext("Total") . "\n"; > # Table > foreach my $line ( @$lines ) { > my $x = $line->{loopcell}; >@@ -116,7 +116,7 @@ if ($do_it) { > print $line->{totalrow}, "\n"; > } > # footer >- print "TOTAL"; >+ print gettext("TOTAL"); > $cols = @$results[0]->{loopfooter}; > print map {$sep.$_->{totalcol}} @$cols; > print $sep.@$results[0]->{total}; >diff --git a/reports/reserves_stats.pl b/reports/reserves_stats.pl >index 11fcb8e..50fa725 100755 >--- a/reports/reserves_stats.pl >+++ b/reports/reserves_stats.pl >@@ -115,7 +115,7 @@ if ($do_it) { > foreach my $col ( @$cols ) { > print $col->{coltitle}.$sep; > } >- print "Total\n"; >+ print gettext("Total") . "\n"; > # Table > foreach my $line ( @$lines ) { > my $x = $line->{loopcell}; >@@ -124,7 +124,7 @@ if ($do_it) { > print $line->{totalrow}, "\n"; > } > # footer >- print "TOTAL"; >+ print gettext("TOTAL"); > $cols = @$results[0]->{loopfooter}; > print map {$sep.$_->{totalcol}} @$cols; > print $sep.@$results[0]->{total}; >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11668
:
27936
|
31425
|
31438
|
31512
|
31513
|
32698
|
32699
|
32711
|
32712
|
32713
|
36794