media.cgi: Added missing translation

Message ID 20200513150834.31160-1-matthias.fischer@ipfire.org
State New
Headers show
Series
  • media.cgi: Added missing translation
Related show

Commit Message

Matthias Fischer May 13, 2020, 3:08 p.m. UTC
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 html/cgi-bin/media.cgi | 2 +-
 langs/de/cgi-bin/de.pl | 1 +
 langs/en/cgi-bin/en.pl | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

Comments

Michael Tremer May 13, 2020, 3:51 p.m. UTC | #1
Hi,

> On 13 May 2020, at 16:08, Matthias Fischer <matthias.fischer@ipfire.org> wrote:
> 
> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
> ---
> html/cgi-bin/media.cgi | 2 +-
> langs/de/cgi-bin/de.pl | 1 +
> langs/en/cgi-bin/en.pl | 1 +
> 3 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/html/cgi-bin/media.cgi b/html/cgi-bin/media.cgi
> index a33d69313..7ef6905bd 100644
> --- a/html/cgi-bin/media.cgi
> +++ b/html/cgi-bin/media.cgi
> @@ -147,7 +147,7 @@ END
> 	my @iostat1 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$1}');
> 	my @iostat2 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$5}');
> 	my @iostat3 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$6}');
> -	print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>Transfers</h3></td></tr>";
> +	print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>$Lang::tr{'transfers}</h3></td></tr>";
> 	my $i=0;

You have a syntax error here due to a missing ‘.

> 
> 	for(my $i = 1; $i <= $#iostat1; $i++){
> diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl
> index 0efb512cb..caa3d711e 100644
> --- a/langs/de/cgi-bin/de.pl
> +++ b/langs/de/cgi-bin/de.pl
> @@ -2442,6 +2442,7 @@
> 'trafficsum' => 'Total',
> 'trafficto' => 'Nach',
> 'transfer limits' => 'Transferbeschränkungen',
> +'transfers' => 'Datenübertragungen',
> 'transparent on' => 'Transparent auf',
> 'transport mode does not support vti' => 'VTI wird im Transport-Modus nicht unterstützt',
> 'tripwire' => 'Tripwire',
> diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
> index c1b26b3ff..29c90de5d 100644
> --- a/langs/en/cgi-bin/en.pl
> +++ b/langs/en/cgi-bin/en.pl
> @@ -2475,6 +2475,7 @@
> 'transfer limits' => 'Transfer limits',
> 'transparent on' => 'Transparent on',
> 'transport mode does not support vti' => 'VTI is not support in transport mode',
> +'transfers' => 'Data transfers',
> 'tripwire' => 'Tripwire',
> 'tripwire cronjob' => 'tripwire cronjob',
> 'tripwire functions' => 'tripwire functions',
> -- 
> 2.17.1
>
Matthias Fischer May 13, 2020, 4:01 p.m. UTC | #2
Thanks - fix is on its way.

But: what would be the right translation for 'Inodes'!?

I saw it, but...

On 13.05.2020 17:51, Michael Tremer wrote:
> Hi,
> 
>> On 13 May 2020, at 16:08, Matthias Fischer <matthias.fischer@ipfire.org> wrote:
>> 
>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>> ---
>> html/cgi-bin/media.cgi | 2 +-
>> langs/de/cgi-bin/de.pl | 1 +
>> langs/en/cgi-bin/en.pl | 1 +
>> 3 files changed, 3 insertions(+), 1 deletion(-)
>> 
>> diff --git a/html/cgi-bin/media.cgi b/html/cgi-bin/media.cgi
>> index a33d69313..7ef6905bd 100644
>> --- a/html/cgi-bin/media.cgi
>> +++ b/html/cgi-bin/media.cgi
>> @@ -147,7 +147,7 @@ END
>> 	my @iostat1 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$1}');
>> 	my @iostat2 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$5}');
>> 	my @iostat3 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$6}');
>> -	print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>Transfers</h3></td></tr>";
>> +	print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>$Lang::tr{'transfers}</h3></td></tr>";
>> 	my $i=0;
> 
> You have a syntax error here due to a missing ‘.
> 
>> 
>> 	for(my $i = 1; $i <= $#iostat1; $i++){
>> diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl
>> index 0efb512cb..caa3d711e 100644
>> --- a/langs/de/cgi-bin/de.pl
>> +++ b/langs/de/cgi-bin/de.pl
>> @@ -2442,6 +2442,7 @@
>> 'trafficsum' => 'Total',
>> 'trafficto' => 'Nach',
>> 'transfer limits' => 'Transferbeschränkungen',
>> +'transfers' => 'Datenübertragungen',
>> 'transparent on' => 'Transparent auf',
>> 'transport mode does not support vti' => 'VTI wird im Transport-Modus nicht unterstützt',
>> 'tripwire' => 'Tripwire',
>> diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
>> index c1b26b3ff..29c90de5d 100644
>> --- a/langs/en/cgi-bin/en.pl
>> +++ b/langs/en/cgi-bin/en.pl
>> @@ -2475,6 +2475,7 @@
>> 'transfer limits' => 'Transfer limits',
>> 'transparent on' => 'Transparent on',
>> 'transport mode does not support vti' => 'VTI is not support in transport mode',
>> +'transfers' => 'Data transfers',
>> 'tripwire' => 'Tripwire',
>> 'tripwire cronjob' => 'tripwire cronjob',
>> 'tripwire functions' => 'tripwire functions',
>> -- 
>> 2.17.1
>> 
>
Matthias Fischer May 13, 2020, 4:47 p.m. UTC | #3
Ok.

I created a long and a short version...

Long version:

'inodes' => 'Number representing certain data structures on running
filesystem (stores all informations about files except its name and its
actual data)',

But - but I was afraid it wouldn't fit on my monitor.

So I pushed the short version... ;-)

Best,
Matthias

On 13.05.2020 17:51, Michael Tremer wrote:
> Hi,
> 
>> On 13 May 2020, at 16:08, Matthias Fischer <matthias.fischer@ipfire.org> wrote:
>> 
>> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
>> ---
>> html/cgi-bin/media.cgi | 2 +-
>> langs/de/cgi-bin/de.pl | 1 +
>> langs/en/cgi-bin/en.pl | 1 +
>> 3 files changed, 3 insertions(+), 1 deletion(-)
>> 
>> diff --git a/html/cgi-bin/media.cgi b/html/cgi-bin/media.cgi
>> index a33d69313..7ef6905bd 100644
>> --- a/html/cgi-bin/media.cgi
>> +++ b/html/cgi-bin/media.cgi
>> @@ -147,7 +147,7 @@ END
>> 	my @iostat1 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$1}');
>> 	my @iostat2 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$5}');
>> 	my @iostat3 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$6}');
>> -	print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>Transfers</h3></td></tr>";
>> +	print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>$Lang::tr{'transfers}</h3></td></tr>";
>> 	my $i=0;
> 
> You have a syntax error here due to a missing ‘.
> 
>> 
>> 	for(my $i = 1; $i <= $#iostat1; $i++){
>> diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl
>> index 0efb512cb..caa3d711e 100644
>> --- a/langs/de/cgi-bin/de.pl
>> +++ b/langs/de/cgi-bin/de.pl
>> @@ -2442,6 +2442,7 @@
>> 'trafficsum' => 'Total',
>> 'trafficto' => 'Nach',
>> 'transfer limits' => 'Transferbeschränkungen',
>> +'transfers' => 'Datenübertragungen',
>> 'transparent on' => 'Transparent auf',
>> 'transport mode does not support vti' => 'VTI wird im Transport-Modus nicht unterstützt',
>> 'tripwire' => 'Tripwire',
>> diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
>> index c1b26b3ff..29c90de5d 100644
>> --- a/langs/en/cgi-bin/en.pl
>> +++ b/langs/en/cgi-bin/en.pl
>> @@ -2475,6 +2475,7 @@
>> 'transfer limits' => 'Transfer limits',
>> 'transparent on' => 'Transparent on',
>> 'transport mode does not support vti' => 'VTI is not support in transport mode',
>> +'transfers' => 'Data transfers',
>> 'tripwire' => 'Tripwire',
>> 'tripwire cronjob' => 'tripwire cronjob',
>> 'tripwire functions' => 'tripwire functions',
>> -- 
>> 2.17.1
>> 
>

Patch

diff --git a/html/cgi-bin/media.cgi b/html/cgi-bin/media.cgi
index a33d69313..7ef6905bd 100644
--- a/html/cgi-bin/media.cgi
+++ b/html/cgi-bin/media.cgi
@@ -147,7 +147,7 @@  END
 	my @iostat1 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$1}');
 	my @iostat2 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$5}');
 	my @iostat3 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$6}');
-	print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>Transfers</h3></td></tr>";
+	print "<tr><td colspan='3'>&nbsp;\n<tr><td colspan='3'><h3>$Lang::tr{'transfers}</h3></td></tr>";
 	my $i=0;
 
 	for(my $i = 1; $i <= $#iostat1; $i++){
diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl
index 0efb512cb..caa3d711e 100644
--- a/langs/de/cgi-bin/de.pl
+++ b/langs/de/cgi-bin/de.pl
@@ -2442,6 +2442,7 @@ 
 'trafficsum' => 'Total',
 'trafficto' => 'Nach',
 'transfer limits' => 'Transferbeschränkungen',
+'transfers' => 'Datenübertragungen',
 'transparent on' => 'Transparent auf',
 'transport mode does not support vti' => 'VTI wird im Transport-Modus nicht unterstützt',
 'tripwire' => 'Tripwire',
diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
index c1b26b3ff..29c90de5d 100644
--- a/langs/en/cgi-bin/en.pl
+++ b/langs/en/cgi-bin/en.pl
@@ -2475,6 +2475,7 @@ 
 'transfer limits' => 'Transfer limits',
 'transparent on' => 'Transparent on',
 'transport mode does not support vti' => 'VTI is not support in transport mode',
+'transfers' => 'Data transfers',
 'tripwire' => 'Tripwire',
 'tripwire cronjob' => 'tripwire cronjob',
 'tripwire functions' => 'tripwire functions',