Date: Tue, 1 Nov 2011 08:06:37 GMT From: Alexey Markov <redrat@mail.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/162217: Broken translation because of typo in the bin/mrtg Message-ID: <201111010806.pA186bSR083659@red.freebsd.org> Resent-Message-ID: <201111010810.pA18AAD6069520@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111010806.pA186bSR083659>