[GRASS-SVN] r73763 - grass/trunk/imagery/i.gensig
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 5 02:15:23 PST 2018
Author: marisn
Date: 2018-12-05 02:15:23 -0800 (Wed, 05 Dec 2018)
New Revision: 73763
Modified:
grass/trunk/imagery/i.gensig/get_train.c
Log:
i.gensig: Use n_ macro for plural form handling
Modified: grass/trunk/imagery/i.gensig/get_train.c
===================================================================
--- grass/trunk/imagery/i.gensig/get_train.c 2018-12-05 09:49:30 UTC (rev 73762)
+++ grass/trunk/imagery/i.gensig/get_train.c 2018-12-05 10:15:23 UTC (rev 73763)
@@ -71,10 +71,7 @@
files->ncats = n;
files->training_cats = list;
- if (files->ncats == 1)
- G_message(_("1 class found"));
- else
- G_message(_("%d classes found"), files->ncats);
+ G_message(n_("One class found", "%d classes found", files->ncats), files->ncats);
return 0;
}
More information about the grass-commit
mailing list