summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-15 09:37:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-15 09:37:09 -0700
commit4b9a59a1546d8a53b8bf6e53c11823299b22edb7 (patch)
tree64541d2be57278d32ef7f3177318e1870c1ac7f4 /parse-xml.c
parent21dec2a13433f7b9518aec0059caae2780be0dde (diff)
parentef039c9d32e998af3ceab21673a51169f6e4f1ed (diff)
downloadsubsurface-4b9a59a1546d8a53b8bf6e53c11823299b22edb7.tar.gz
Merge branch 'gettext'
Bring all the localization changes into master in preparation for Subsurface 2.1
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 2c47f81e6..cb84cc26a 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -11,6 +11,7 @@
#ifdef XSLT
#include <libxslt/transform.h>
#endif
+#include <glib/gi18n.h>
#include "dive.h"
#include "uemis.h"
@@ -1489,12 +1490,12 @@ void parse_xml_buffer(const char *url, const char *buffer, int size, GError **er
doc = xmlReadMemory(buffer, size, url, NULL, 0);
if (!doc) {
- fprintf(stderr, "Failed to parse '%s'.\n", url);
+ fprintf(stderr, _("Failed to parse '%s'.\n"), url);
if (error != NULL)
{
*error = g_error_new(g_quark_from_string("subsurface"),
DIVE_ERROR_PARSE,
- "Failed to parse '%s'",
+ _("Failed to parse '%s'"),
url);
}
return;