Revision: 1487 http://svn.sourceforge.net/geany/?rev=1487&view=rev Author: ntrel Date: 2007-04-30 04:56:50 -0700 (Mon, 30 Apr 2007)
Log Message: ----------- Use g_printerr (if necessary) when generating global tags to convert UTF-8 automatically; mark error messages for translation.
Modified Paths: -------------- trunk/ChangeLog trunk/src/symbols.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-04-29 16:36:42 UTC (rev 1486) +++ trunk/ChangeLog 2007-04-30 11:56:50 UTC (rev 1487) @@ -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
* src/interface.c, geany.glade:
Modified: trunk/src/symbols.c =================================================================== --- trunk/src/symbols.c 2007-04-29 16:36:42 UTC (rev 1486) +++ trunk/src/symbols.c 2007-04-30 11:56:50 UTC (rev 1487) @@ -752,7 +752,7 @@
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; } if (ft->lang == 0 || ft->lang == 1) /* C/C++ */ @@ -767,16 +767,16 @@ g_free(command); if (! status) { - fprintf(stderr, "Failed to create tags file.\n"); + g_printerr(_("Failed to create tags file.\n")); return 1; } } else { - fprintf(stderr, "Usage: %s -g <Tag File> <File list>\n\n", argv[0]); - fprintf(stderr, "Example:\n" + g_printerr(_("Usage: %s -g <Tag File> <File list>\n\n"), argv[0]); + g_printerr(_("Example:\n" "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 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.