From nobody@FreeBSD.org  Tue Nov  1 08:06:38 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 61B67106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Nov 2011 08:06:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 520768FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Nov 2011 08:06:38 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pA186bM0083660
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 1 Nov 2011 08:06:37 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pA186bSR083659;
	Tue, 1 Nov 2011 08:06:37 GMT
	(envelope-from nobody)
Message-Id: <201111010806.pA186bSR083659@red.freebsd.org>
Date: Tue, 1 Nov 2011 08:06:37 GMT
From: Alexey Markov <redrat@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Broken translation because of typo in the bin/mrtg
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162217
>Category:       ports
>Synopsis:       Broken translation because of typo in net-mgmt/mrtg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 01 08:10:09 UTC 2011
>Closed-Date:    Tue Nov 22 22:56:55 UTC 2011
>Last-Modified:  Tue Nov 22 22:56:55 UTC 2011
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Tue Nov 1 21:48:28 UTC 2011 
State-Changed-Why:  
Fix synopsis and ask maintainer for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162217 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Nov 22 22:56:31 UTC 2011 
State-Changed-Why:  
From misfiled PR caught in spamtrap: 

From: "Alexey Markov" <redrat@mail.ru> 
To: <bug-followup@FreeBSD.org>, <redrat@mail.ru> 
Subject: ports/162217: Broken translation because of typo in net-mgmt/mrtg 
Date: Tue, 22 Nov 2011 12:29:24 +0400 

This bug is fixed already by another patch, so this report 
have to be closed. 

--  
WBR, Alexey Markov. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162217 
>Unformatted:
