[GRASS-SVN] r64240 - grass-addons/grass7/vector/v.nnstat
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 19 08:10:13 PST 2015
Author: neteler
Date: 2015-01-19 08:10:13 -0800 (Mon, 19 Jan 2015)
New Revision: 64240
Modified:
grass-addons/grass7/vector/v.nnstat/getval.cpp
grass-addons/grass7/vector/v.nnstat/nearest_neighbour.cpp
Log:
v.nnstat Addon msgs: avoid trailing dot. Don't gettext empty string
Modified: grass-addons/grass7/vector/v.nnstat/getval.cpp
===================================================================
--- grass-addons/grass7/vector/v.nnstat/getval.cpp 2015-01-19 13:44:26 UTC (rev 64239)
+++ grass-addons/grass7/vector/v.nnstat/getval.cpp 2015-01-19 16:10:13 UTC (rev 64240)
@@ -140,6 +140,6 @@
Vect_destroy_line_struct(Points);
if (ctrl <= 0)
- G_fatal_error(_("Unable to read coordinates of point layer."));
+ G_fatal_error(_("Unable to read coordinates of point layer"));
}
} // end extern "C"
Modified: grass-addons/grass7/vector/v.nnstat/nearest_neighbour.cpp
===================================================================
--- grass-addons/grass7/vector/v.nnstat/nearest_neighbour.cpp 2015-01-19 13:44:26 UTC (rev 64239)
+++ grass-addons/grass7/vector/v.nnstat/nearest_neighbour.cpp 2015-01-19 16:10:13 UTC (rev 64240)
@@ -66,13 +66,13 @@
if (xD->i3 == TRUE) { /* Minimum Enclosing Block */
nna->A = Acol != NULL ? atof(Acol) : MBB(pnts); /* set volume specified by user or MBB volume */
if (nna->A <= 0.)
- G_fatal_error(_("Volume must be greater than 0."));
+ G_fatal_error(_("Volume must be greater than 0"));
}
if (xD->i3 == FALSE) { /* Minimum Enclosing Rectangle */
nna->A = Acol != NULL ? atof(Acol) : MBR(pnts); /* set area specified by user or MBR area */
if (nna->A <= 0.)
- G_fatal_error(_("Area must be greater than 0."));
+ G_fatal_error(_("Area must be greater than 0"));
}
nna->rho = pnts->n / nna->A; /* number of points per area/volume unit */
@@ -119,22 +119,22 @@
G_message(_("Null hypothesis IS NOT REJECTED at the significance level alpha = 0.05"));
}
if (-2.58 < nna->c && nna->c <= -1.96) {
- G_message(_("Null hypothesis IS NOT REJECTED at the significance level alpha = 0.01 => point set is clustered."));
- G_message(_("Null hypothesis CAN BE REJECTED at the significance level alpha = 0.05 => point set is randomly distributed."));
+ G_message(_("Null hypothesis IS NOT REJECTED at the significance level alpha = 0.01 => point set is clustered"));
+ G_message(_("Null hypothesis CAN BE REJECTED at the significance level alpha = 0.05 => point set is randomly distributed"));
}
if (1.96 <= nna->c && nna->c < 2.58) {
- G_message(_("Null hypothesis IS NOT REJECTED at the significance level alpha = 0.01 => point set is dispersed."));
- G_message(_("Null hypothesis CAN BE REJECTED at the significance level alpha = 0.05 => point set is randomly distributed."));
+ G_message(_("Null hypothesis IS NOT REJECTED at the significance level alpha = 0.01 => point set is dispersed"));
+ G_message(_("Null hypothesis CAN BE REJECTED at the significance level alpha = 0.05 => point set is randomly distributed"));
}
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 clustered."));
+ G_message(_("Null hypothesis CAN BE REJECTED at the significance levels alpha = 0.05 and alpha = 0.01 => point set is clustered"));
}
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(_("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)
More information about the grass-commit
mailing list