#2554: v.nnstat: unwanted output about translation
---------------------------------------+------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Addons | Version: svn-trunk
Keywords: v.nnstat translation info | Platform: Unspecified
Cpu: Unspecified |
---------------------------------------+------------------------------------
When I run v.nnstat I get output about translation that shouldn't be in
the module (see from 'Project-Id-Version'):
{{{
v.nnstat input=hospitals@PERMANENT
*** Nearest Neighbour Analysis results ***
Input settings .. 3D layer: 0 3D NNA: 0
Number of points .......... 160
Area ...................... 209175870266.108368 [units^2]
Density of points ......... 0.000000
Average distance between the nearest neighbours ........... 14349.097
[units]
Average expected distance between the nearest neighbours .. 18078.642
[units]
Ratio rA/rE ............... 0.793704
*** Results of two-tailed test of the mean ***
Null hypothesis: Point set is randomly distributed within the region.
Standard variate of the normal curve> c = -4.992043
Null hypothesis CAN BE REJECTED at the significance levels alpha = 0.05
and alpha = 0.01 => point set is clustered.
Project-Id-Version: grassmods_fr
Report-Msgid-Bugs-To:
POT-Creation-Date: 2014-12-22 16:11+0100
PO-Revision-Date: 2014-01-01 11:35+0100
Last-Translator: Sylvain Maillard <sylvain.maillard@gmail.com>
Language-Team: Français <grass-translations@lists.osgeo.org>
Language: fr
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Generator: Poedit 1.5.5
}}}
This seems to come from an empty, but translated G_message string. When I
comment that out I get the expected output ending at "point set is
clustered":
{{{
Index: grass-addons/grass7/vector/v.nnstat/nearest_neighbour.cpp
--- grass-addons/grass7/vector/v.nnstat/nearest_neighbour.cpp (révision
64109)
+++ grass-addons/grass7/vector/v.nnstat/nearest_neighbour.cpp (copie de
travail)
@@ -134,7 +134,7 @@
if (nna->c >= 2.58) {
G_message(_("Null hypothesis CAN BE REJECTED at the significance
levels alpha = 0.05 and alpha = 0.01 => point set is dispersed."));
}
- G_message(_(""));
+ /*G_message(_(""));*/
}
void nn_statistics(struct points *pnts, struct nna_par *xD, struct
nearest *nna)
}}}
I don't really see any reason for this empty string, and if there is one,
then that string should probably not be marked for translation, or ?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2554>
GRASS GIS <http://grass.osgeo.org>