Use g_printerr (if necessary) when generating global tags to convert

UTF-8 automatically; mark error messages for translation.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1487 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-04-30 11:56:50 +00:00
parent 737f9c6542
commit e3c956c7ad
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2007-04-30 Nick Treleaven <nick.treleaven@btinternet.com>
* src/symbols.c:
Use g_printerr (if necessary) when generating global tags to convert
UTF-8 automatically; mark error messages for translation.
2007-04-29 Nick Treleaven <nick.treleaven@btinternet.com> 2007-04-29 Nick Treleaven <nick.treleaven@btinternet.com>
* src/interface.c, geany.glade: * src/interface.c, geany.glade:

View File

@ -752,7 +752,7 @@ int symbols_generate_global_tags(int argc, char **argv)
if (ft == NULL) if (ft == NULL)
{ {
fprintf(stderr, "Unknown filetype extension for \"%s\".\n", tags_file); g_printerr(_("Unknown filetype extension for \"%s\".\n"), tags_file);
return 1; return 1;
} }
if (ft->lang == 0 || ft->lang == 1) /* C/C++ */ if (ft->lang == 0 || ft->lang == 1) /* C/C++ */
@ -767,16 +767,16 @@ int symbols_generate_global_tags(int argc, char **argv)
g_free(command); g_free(command);
if (! status) if (! status)
{ {
fprintf(stderr, "Failed to create tags file.\n"); g_printerr(_("Failed to create tags file.\n"));
return 1; return 1;
} }
} }
else else
{ {
fprintf(stderr, "Usage: %s -g <Tag File> <File list>\n\n", argv[0]); g_printerr(_("Usage: %s -g <Tag File> <File list>\n\n"), argv[0]);
fprintf(stderr, "Example:\n" g_printerr(_("Example:\n"
"CFLAGS=`pkg-config gtk+-2.0 --cflags` %s -g gtk2.c.tags" "CFLAGS=`pkg-config gtk+-2.0 --cflags` %s -g gtk2.c.tags"
" /usr/include/gtk-2.0/gtk/gtk.h\n", argv[0]); " /usr/include/gtk-2.0/gtk/gtk.h\n"), argv[0]);
return 1; return 1;
} }
return 0; return 0;