Merge branch 'gettext'

Bring all the localization changes into master in preparation for
Subsurface 2.1
This commit is contained in:
Dirk Hohndel 2012-10-15 09:37:09 -07:00
commit 4b9a59a154
29 changed files with 9068 additions and 263 deletions

View file

@ -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;