[easytag/wip/core-refactoring: 3/7] Mark up a string for translation



commit 94547c1d72a0b7e2c1445b1b59693fbcb182e14b
Author: David King <amigadave amigadave com>
Date:   Tue Jan 26 13:04:41 2016 +0000

    Mark up a string for translation

 src/picture.c      |    2 +-
 src/tags/id3_tag.c |    2 +-
 src/tags/vcedit.c  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/picture.c b/src/picture.c
index d11dc0a..8955c1f 100644
--- a/src/picture.c
+++ b/src/picture.c
@@ -475,7 +475,7 @@ et_picture_load_file_data (GFile *file, GError **error)
             g_object_unref (ostream);
             /* FIXME: Mark up the string for translation. */
             g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA, "%s",
-                         "Input truncated or empty");
+                         _("Input truncated or empty"));
             return NULL;
         }
 
diff --git a/src/tags/id3_tag.c b/src/tags/id3_tag.c
index f40b791..1288cac 100644
--- a/src/tags/id3_tag.c
+++ b/src/tags/id3_tag.c
@@ -1512,7 +1512,7 @@ et_id3tag_check_if_file_is_valid (GFile *file, GError **error)
     if (!valid)
     {
         g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "%s",
-                     "Input truncated or empty");
+                     _("Input truncated or empty"));
     }
 
     return valid;
diff --git a/src/tags/vcedit.c b/src/tags/vcedit.c
index 536170b..1d0c00d 100644
--- a/src/tags/vcedit.c
+++ b/src/tags/vcedit.c
@@ -430,7 +430,7 @@ vcedit_open (EtOggState *state,
         {
             if(bytes<CHUNKSIZE)
                 g_set_error (error, ET_OGG_ERROR, ET_OGG_ERROR_TRUNC,
-                             "Input truncated or empty");
+                             _("Input truncated or empty"));
             else
                 g_set_error (error, ET_OGG_ERROR, ET_OGG_ERROR_NOTOGG,
                              "Input is not an Ogg bitstream");


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