[gtksourceview] FileSaver: translate error messages



commit c83d8ebb39125f17bbd9474e4a448369216523af
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat May 7 16:15:30 2016 +0200

    FileSaver: translate error messages

 gtksourceview/gtksourcefilesaver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcefilesaver.c b/gtksourceview/gtksourcefilesaver.c
index 83942af..d754f5e 100644
--- a/gtksourceview/gtksourcefilesaver.c
+++ b/gtksourceview/gtksourcefilesaver.c
@@ -907,7 +907,7 @@ check_externally_modified_cb (GFile              *location,
                        g_task_return_new_error (saver->priv->task,
                                                 GTK_SOURCE_FILE_SAVER_ERROR,
                                                 GTK_SOURCE_FILE_SAVER_ERROR_EXTERNALLY_MODIFIED,
-                                                "The file is externally modified");
+                                                _("The file is externally modified."));
                        g_object_unref (info);
                        return;
                }
@@ -1347,7 +1347,7 @@ gtk_source_file_saver_save_async (GtkSourceFileSaver     *saver,
                g_task_return_new_error (saver->priv->task,
                                         GTK_SOURCE_FILE_SAVER_ERROR,
                                         GTK_SOURCE_FILE_SAVER_ERROR_INVALID_CHARS,
-                                        "The buffer contains invalid characters");
+                                        _("The buffer contains invalid characters."));
                return;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]