diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-10-15 09:37:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-10-15 09:37:09 -0700 |
commit | 4b9a59a1546d8a53b8bf6e53c11823299b22edb7 (patch) | |
tree | 64541d2be57278d32ef7f3177318e1870c1ac7f4 /file.c | |
parent | 21dec2a13433f7b9518aec0059caae2780be0dde (diff) | |
parent | ef039c9d32e998af3ceab21673a51169f6e4f1ed (diff) | |
download | subsurface-4b9a59a1546d8a53b8bf6e53c11823299b22edb7.tar.gz |
Merge branch 'gettext'
Bring all the localization changes into master in preparation for
Subsurface 2.1
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4,6 +4,7 @@ #include <stdlib.h> #include <string.h> #include <errno.h> +#include <glib/gi18n.h> #include "dive.h" #include "file.h" @@ -71,7 +72,7 @@ static void suunto_read(struct zip_file *file, GError **error) size = read * 3 / 2; mem = realloc(mem, size); } - parse_xml_buffer("SDE file", mem, read, error, FALSE); + parse_xml_buffer(_("SDE file"), mem, read, error, FALSE); free(mem); } #endif @@ -258,11 +259,11 @@ void parse_file(const char *filename, GError **error, gboolean possible_default_ if (default_filename && ! strcmp(filename, default_filename)) return; - g_warning("Failed to read '%s'.\n", filename); + g_warning(_("Failed to read '%s'.\n"), filename); if (error) { *error = g_error_new(g_quark_from_string("subsurface"), DIVE_ERROR_PARSE, - "Failed to read '%s'", + _("Failed to read '%s'"), filename); } return; |