ports/162217: Broken translation because of typo in the bin/mrtg
Alexey Markov
redrat at mail.ru
Tue Nov 1 08:10:10 UTC 2011
>Number: 162217
>Category: ports
>Synopsis: Broken translation because of typo in the bin/mrtg
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Nov 01 08:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Alexey Markov
>Release: 8.2-RELEASE-p4
>Organization:
JSC Complitex
>Environment:
FreeBSD meson.complitex.ru 8.2-RELEASE-p4 FreeBSD 8.2-RELEASE-p4 #0: Mon Oct 17 11:44:31 MSD 2011 redrat at meson.complitex.ru:/arc/obj/arc/src/sys/MESON amd64
>Description:
There is a little typo in the code of bin/mrtg in the line #1744: ordinary quotation marks instead of double quotation marks. This breaks translations for some languages (e.g. Russian). So, this line:
<h2>".&$LOC("$sample{$peri}").&$LOC(' Average)')."</h2>
should be like:
<h2>".&$LOC("$sample{$peri}").&$LOC(" Average)")."</h2>
>How-To-Repeat:
Install MRTG, change language to Russian and look at translation.
>Fix:
Attached patch fixes this problem.
Patch attached with submission follows:
--- bin/mrtg 2011-11-01 11:52:52.000000000 +0400
+++ bin/mrtg 2011-11-01 11:53:53.000000000 +0400
@@ -1748,7 +1748,7 @@
print HTML "
<!-- Begin $sample{$peri} -->
<div class=\"graph\">
- <h2>".&$LOC("$sample{$peri}").&$LOC(' Average\)')."</h2>
+ <h2>".&$LOC("$sample{$peri}").&$LOC(" Average\)")."</h2>
<img src=\"$imagepath$router-$full{$peri}.${main::GRAPHFMT}\" title=\"$full{$peri}\" alt=\"$full{$peri}\" />
<table>
<tr>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list