diff options
Add _() to bookmarks.c and update french translation
1 files changed, 8 insertions, 7 deletions
| -rw-r--r-- | bookmarks.c | 15 |
diff --git a/bookmarks.c b/bookmarks.c index 2eb321d..2a6df22 100644 --- a/bookmarks.c +++ b/bookmarks.c @@ -3,6 +3,7 @@ #include "badwolf.h" #include "config.h" +#include <glib/gi18n.h> /* _() and other internationalization/localization helpers */ #include <glib/gprintf.h> /* g_fprintf() */ #include <gtk/gtk.h> #include <libxml/xinclude.h> @@ -55,7 +56,7 @@ load_xpath_results(GtkListStore *list_store, xmlNodeSetPtr nodes) size = (nodes) ? nodes->nodeNr : 0; - g_fprintf(stderr, "Bookmarks: Found %d bookmarks.\n", size); + g_fprintf(stderr, _("Bookmarks: Found %d bookmarks.\n"), size); for(int i = 0; i < size; i++) if(nodes->nodeTab[i]) { @@ -77,15 +78,15 @@ bookmarks_completion_init() if(access(filename, R_OK) != 0) { - g_fprintf(stderr, "Bookmarks: No loadable file found at %s\n", filename); + g_fprintf(stderr, _("Bookmarks: No loadable file found at %s\n"), filename); return NULL; } - g_fprintf(stderr, "Bookmarks: loading at %s\n", filename); + g_fprintf(stderr, _("Bookmarks: loading at %s\n"), filename); doc = xmlParseFile(filename); if(doc == NULL) { - g_fprintf(stderr, "Bookmarks: unable to parse file \"%s\"\n", filename); + g_fprintf(stderr, _("Bookmarks: unable to parse file \"%s\"\n"), filename); location_completion_cleanup(xpathObj, xpathCtx, doc); return NULL; } @@ -95,7 +96,7 @@ bookmarks_completion_init() xpathCtx = xmlXPathNewContext(doc); if(xpathCtx == NULL) { - g_fprintf(stderr, "Bookmarks: unable to create new XPath context\n"); + g_fprintf(stderr, _("Bookmarks: unable to create new XPath context\n")); location_completion_cleanup(xpathObj, xpathCtx, doc); return NULL; } @@ -103,7 +104,7 @@ bookmarks_completion_init() xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx); if(xpathObj == NULL) { - g_fprintf(stderr, "Bookmarks: unable to evaluate xpath expression \"%s\"\n", xpathExpr); + g_fprintf(stderr, _("Bookmarks: unable to evaluate XPath expression \"%s\"\n"), xpathExpr); location_completion_cleanup(xpathObj, xpathCtx, doc); return NULL; } @@ -112,7 +113,7 @@ bookmarks_completion_init() location_completion_cleanup(xpathObj, xpathCtx, doc); - g_fprintf(stderr, "Bookmarks: Done.\n"); + g_fprintf(stderr, _("Bookmarks: Done.\n")); return GTK_TREE_MODEL(list_store); } |