From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Nov 1 08:10:10 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EB1D1065675 for ; Tue, 1 Nov 2011 08:10:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 32D778FC15 for ; Tue, 1 Nov 2011 08:10:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pA18AAcS069521 for ; Tue, 1 Nov 2011 08:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pA18AAD6069520; Tue, 1 Nov 2011 08:10:10 GMT (envelope-from gnats) Resent-Date: Tue, 1 Nov 2011 08:10:10 GMT Resent-Message-Id: <201111010810.pA18AAD6069520@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexey Markov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61B67106566C for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/162217: Broken translation because of typo in the bin/mrtg X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2011 08:10:10 -0000 >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:

".&$LOC("$sample{$peri}").&$LOC(' Average)')."

should be like:

".&$LOC("$sample{$peri}").&$LOC(" Average)")."

>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 "
-

".&$LOC("$sample{$peri}").&$LOC(' Average\)')."

+

".&$LOC("$sample{$peri}").&$LOC(" Average\)")."

\"$full{$peri}\" >Release-Note: >Audit-Trail: >Unformatted: