[GRASS-SVN] r66446 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 9 07:29:37 PDT 2015


Author: annakrat
Date: 2015-10-09 07:29:37 -0700 (Fri, 09 Oct 2015)
New Revision: 66446

Modified:
   grass/trunk/lib/gis/parser.c
Log:
fix error output for GUI - misplaced translation, wrong format string (co-author: wenzeslaus)

Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2015-10-09 13:38:35 UTC (rev 66445)
+++ grass/trunk/lib/gis/parser.c	2015-10-09 14:29:37 UTC (rev 66446)
@@ -1476,10 +1476,10 @@
                                     fprintf(stderr, "\n");
                                 }
                                 else {
-                                    fprintf(stderr, _("GRASS_INFO_ERROR(%d,1): "));
+                                    fprintf(stderr, "GRASS_INFO_ERROR(%d,1): ", getpid());
                                     fprintf(stderr,
-                                            "option <%s>: <%s> exists. To overwrite, use the --overwrite flag",
-                                            getpid(), opt->key, opt->answers[i]);
+                                            _("option <%s>: <%s> exists. To overwrite, use the --overwrite flag"),
+                                            opt->key, opt->answers[i]);
                                     fprintf(stderr, "\n");
                                     fprintf(stderr, "GRASS_INFO_END(%d,1)\n",
                                             getpid());



More information about the grass-commit mailing list