浏览代码

libgis: clarify warning about renamed option

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63362 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 年之前
父节点
当前提交
df6a6315d9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/gis/parser.c

+ 2 - 2
lib/gis/parser.c

@@ -994,9 +994,9 @@ void set_option(const char *string)
         if (renamed_key) {
             for (at_opt = &st->first_option; at_opt; at_opt = at_opt->next_opt) {
                 if (strcmp(renamed_key, at_opt->key) == 0) {
-                    G_warning(_("Please update the interface of the module: "
+                    G_warning(_("Please update the user interface of <%s>: "
                                 "option <%s> has been renamed to <%s>"),
-                              the_key, renamed_key);
+                              G_program_name(), the_key, renamed_key);
                     opt = at_opt;
                     found = 1;
                     break;