Summary Files Commits Branches @commit @diff @stats
path: root / bookmarks.c
diff options
context:
space:
mode:
Commit506ea6fa32138827a103cf11cc174f4a0f3a25c3 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-10-25 02:42:10 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-10-26 07:31:33 +0100
Files909e3c45b22a1d01ead7e7cf8b390c67f3dc696f /bookmarks.c
goodwolf-506ea6fa32138827a103cf11cc174f4a0f3a25c3.tar
goodwolf-506ea6fa32138827a103cf11cc174f4a0f3a25c3.tar.gz
goodwolf-506ea6fa32138827a103cf11cc174f4a0f3a25c3.zip
Parentd88eca3e85906ca9458a8f0da89c85ddf5e9882d (diff)
Add _() to bookmarks.c and update french translation
1 files changed, 8 insertions, 7 deletions
-rw-r--r--bookmarks.c15
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);
}