From 506ea6fa32138827a103cf11cc174f4a0f3a25c3 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sun, 25 Oct 2020 02:42:10 +0100 Subject: Add _() to bookmarks.c and update french translation --- bookmarks.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'bookmarks.c') 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 /* _() and other internationalization/localization helpers */ #include /* g_fprintf() */ #include #include @@ -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); } -- cgit v1.3.1-26-gb76a