[libgsf] i18n fixes



commit 39d0e9ab46748f677e817a5c2a483643510a9abf
Author: Morten Welinder <terra gnome org>
Date:   Sun Mar 3 09:48:27 2013 -0500

    i18n fixes

 gsf/gsf-infile-zip.c  |   10 +++--
 gsf/gsf-input.c       |   85 +++++++++++++++++++++++++++++--------------------
 gsf/gsf-outfile-zip.c |   15 +++++---
 gsf/gsf-output.c      |   68 +++++++++++++++++++++++----------------
 po/POTFILES.in        |    4 ++
 5 files changed, 109 insertions(+), 73 deletions(-)
---
diff --git a/gsf/gsf-infile-zip.c b/gsf/gsf-infile-zip.c
index d42662a..8c8d2a1 100644
--- a/gsf/gsf-infile-zip.c
+++ b/gsf/gsf-infile-zip.c
@@ -24,6 +24,7 @@
 #include <gsf/gsf-infile-zip.h>
 #include <gsf/gsf.h>
 #include <gsf/gsf-zip-impl.h>
+#include <glib/gi18n-lib.h>
 
 #include <string.h>
 #include <zlib.h>
@@ -817,8 +818,8 @@ gsf_infile_zip_class_init (GObjectClass *gobject_class)
                (gobject_class,
                 PROP_SOURCE,
                 g_param_spec_object ("source",
-                                     "Source",
-                                     "The archive being interpreted.",
+                                     _("Source"),
+                                     _("The archive being interpreted"),
                                      GSF_INPUT_TYPE,
                                      GSF_PARAM_STATIC |
                                      G_PARAM_READWRITE |
@@ -833,12 +834,13 @@ gsf_infile_zip_class_init (GObjectClass *gobject_class)
                (gobject_class,
                 PROP_COMPRESSION_LEVEL,
                 g_param_spec_int ("compression-level",
-                                  "Compression Level",
-                                  "The level of compression used, zero meaning none.",
+                                  _("Compression Level"),
+                                  _("The level of compression used, zero meaning none"),
                                   0, 10,
                                   0,
                                   GSF_PARAM_STATIC |
                                   G_PARAM_READABLE));
+
        g_object_class_install_property
                (gobject_class,
                 PROP_INTERNAL_PARENT,
diff --git a/gsf/gsf-input.c b/gsf/gsf-input.c
index 2944a9b..7dd074a 100644
--- a/gsf/gsf-input.c
+++ b/gsf/gsf-input.c
@@ -22,6 +22,7 @@
 #include <gsf-config.h>
 #include <gsf/gsf-input.h>
 #include <gsf/gsf.h>
+#include <glib/gi18n-lib.h>
 
 #include <string.h>
 
@@ -114,46 +115,60 @@ gsf_input_class_init (GObjectClass *gobject_class)
        /* gobject_class->set_property = gsf_input_set_property; */
        gobject_class->get_property = gsf_input_get_property;
 
-       g_object_class_install_property (gobject_class,
-                                        PROP_NAME,
-                                        g_param_spec_string ("name", "Name",
-                                                             "The Input's Name",
-                                                             NULL,
-                                                             GSF_PARAM_STATIC |
-                                                             G_PARAM_READABLE));
-       g_object_class_install_property (gobject_class,
-                                        PROP_SIZE,
-                                        g_param_spec_int64 ("size", "Size",
-                                                            "The Input's Size",
-                                                            0, G_MAXINT64, 0,
-                                                            GSF_PARAM_STATIC |
-                                                            G_PARAM_READABLE));
+       g_object_class_install_property
+               (gobject_class,
+                PROP_NAME,
+                g_param_spec_string ("name",
+                                     _("Name"),
+                                     _("The input's name"),
+                                     NULL,
+                                     GSF_PARAM_STATIC |
+                                     G_PARAM_READABLE));
+
+       g_object_class_install_property
+               (gobject_class,
+                PROP_SIZE,
+                g_param_spec_int64 ("size",
+                                    _("Size"),
+                                    _("The input's size"),
+                                    0, G_MAXINT64, 0,
+                                    GSF_PARAM_STATIC |
+                                    G_PARAM_READABLE));
+
        /**
         * GsfInput:eof:
         *
         * True if the end of the file has been reached.
         */
-       g_object_class_install_property (gobject_class,
-                                        PROP_EOF,
-                                        g_param_spec_boolean ("eof", "EOF",
-                                                              "End Of File",
-                                                              FALSE,
-                                                              GSF_PARAM_STATIC |
-                                                              G_PARAM_READABLE));
-       g_object_class_install_property (gobject_class,
-                                        PROP_REMAINING,
-                                        g_param_spec_int64 ("remaining", "Remaining",
-                                                            "Amount of Data Remaining",
-                                                            0, G_MAXINT64, 0,
-                                                            GSF_PARAM_STATIC |
-                                                            G_PARAM_READABLE));
-       g_object_class_install_property (gobject_class,
-                                        PROP_POS,
-                                        g_param_spec_int64 ("position", "Position",
-                                                            "The Output's Current Position",
-                                                            0, G_MAXINT64, 0,
-                                                            GSF_PARAM_STATIC |
-                                                            G_PARAM_READABLE));
+       g_object_class_install_property
+               (gobject_class,
+                PROP_EOF,
+                g_param_spec_boolean ("eof",
+                                      _("EOF"),
+                                      _("End of file"),
+                                      FALSE,
+                                      GSF_PARAM_STATIC |
+                                      G_PARAM_READABLE));
+
+       g_object_class_install_property
+               (gobject_class,
+                PROP_REMAINING,
+                g_param_spec_int64 ("remaining",
+                                    _("Remaining"),
+                                    _("Amount of data remaining"),
+                                    0, G_MAXINT64, 0,
+                                    GSF_PARAM_STATIC |
+                                    G_PARAM_READABLE));
+
+       g_object_class_install_property
+               (gobject_class,
+                PROP_POS,
+                g_param_spec_int64 ("position",
+                                    _("Position"),
+                                    _("The input's current position"),
+                                    0, G_MAXINT64, 0,
+                                    GSF_PARAM_STATIC |
+                                    G_PARAM_READABLE));
 }
 
 GSF_CLASS_ABSTRACT (GsfInput, gsf_input,
diff --git a/gsf/gsf-outfile-zip.c b/gsf/gsf-outfile-zip.c
index 4a01868..5d319fb 100644
--- a/gsf/gsf-outfile-zip.c
+++ b/gsf/gsf-outfile-zip.c
@@ -23,6 +23,7 @@
 #include <gsf/gsf-outfile-zip.h>
 #include <gsf/gsf.h>
 #include <gsf/gsf-zip-impl.h>
+#include <glib/gi18n-lib.h>
 
 #include <string.h>
 #include <time.h>
@@ -702,8 +703,9 @@ gsf_outfile_zip_class_init (GObjectClass *gobject_class)
        g_object_class_install_property
                (gobject_class,
                 PROP_SINK,
-                g_param_spec_object ("sink", "Sink",
-                                     "Where the archive is written.",
+                g_param_spec_object ("sink",
+                                     _("Sink"),
+                                     _("Where the archive is written"),
                                      GSF_OUTPUT_TYPE,
                                      GSF_PARAM_STATIC |
                                      G_PARAM_READWRITE |
@@ -711,8 +713,9 @@ gsf_outfile_zip_class_init (GObjectClass *gobject_class)
        g_object_class_install_property
                (gobject_class,
                 PROP_ENTRY_NAME,
-                g_param_spec_string ("entry-name", "Entry Name",
-                                     "The filename of this member in the archive without path.",
+                g_param_spec_string ("entry-name",
+                                     _("Entry Name"),
+                                     _("The filename of this member in the archive without path"),
                                      NULL,
                                      GSF_PARAM_STATIC |
                                      G_PARAM_READWRITE |
@@ -721,8 +724,8 @@ gsf_outfile_zip_class_init (GObjectClass *gobject_class)
                (gobject_class,
                 PROP_COMPRESSION_LEVEL,
                 g_param_spec_int ("compression-level",
-                                  "Compression Level",
-                                  "The level of compression used, zero meaning none.",
+                                  _("Compression Level"),
+                                  _("The level of compression used, zero meaning none"),
                                   0, 10,
                                   GSF_ZIP_DEFLATED,
                                   GSF_PARAM_STATIC |
diff --git a/gsf/gsf-output.c b/gsf/gsf-output.c
index fb02fb2..5688f11 100644
--- a/gsf/gsf-output.c
+++ b/gsf/gsf-output.c
@@ -22,6 +22,7 @@
 #include <gsf-config.h>
 #include <gsf/gsf-output.h>
 #include <gsf/gsf.h>
+#include <glib/gi18n-lib.h>
 
 #include <string.h>
 
@@ -128,34 +129,45 @@ gsf_output_class_init (GObjectClass *gobject_class)
 
        parent_class = g_type_class_peek_parent (gobject_class);
 
-       g_object_class_install_property (gobject_class,
-                                        PROP_NAME,
-                                        g_param_spec_string ("name", "Name",
-                                                             "The Output's Name",
-                                                             NULL,
-                                                             GSF_PARAM_STATIC |
-                                                             G_PARAM_READABLE));
-       g_object_class_install_property (gobject_class,
-                                        PROP_SIZE,
-                                        g_param_spec_int64 ("size", "Size",
-                                                            "The Output's Size",
-                                                            0, G_MAXINT64, 0,
-                                                            GSF_PARAM_STATIC |
-                                                            G_PARAM_READABLE));
-       g_object_class_install_property (gobject_class,
-                                        PROP_POS,
-                                        g_param_spec_int64 ("position", "Position",
-                                                            "The Output's Current Position",
-                                                            0, G_MAXINT64, 0,
-                                                            GSF_PARAM_STATIC |
-                                                            G_PARAM_READABLE));
-       g_object_class_install_property (gobject_class,
-                                        PROP_CLOSED,
-                                        g_param_spec_boolean ("is-closed", "Is Closed",
-                                                              "Whether the Output is Closed",
-                                                              FALSE,
-                                                              GSF_PARAM_STATIC |
-                                                              G_PARAM_READABLE));
+       g_object_class_install_property
+               (gobject_class,
+                PROP_NAME,
+                g_param_spec_string ("name",
+                                     _("Name"),
+                                     _("The output's name"),
+                                     NULL,
+                                     GSF_PARAM_STATIC |
+                                     G_PARAM_READABLE));
+
+       g_object_class_install_property
+               (gobject_class,
+                PROP_SIZE,
+                g_param_spec_int64 ("size",
+                                    _("Size"),
+                                    _("The output's size"),
+                                    0, G_MAXINT64, 0,
+                                    GSF_PARAM_STATIC |
+                                    G_PARAM_READABLE));
+
+       g_object_class_install_property
+               (gobject_class,
+                PROP_POS,
+                g_param_spec_int64 ("position",
+                                    _("Position"),
+                                    _("The output's current position"),
+                                    0, G_MAXINT64, 0,
+                                    GSF_PARAM_STATIC |
+                                    G_PARAM_READABLE));
+
+       g_object_class_install_property
+               (gobject_class,
+                PROP_CLOSED,
+                g_param_spec_boolean ("is-closed",
+                                      _("Is Closed"),
+                                      _("Whether the output is closed"),
+                                      FALSE,
+                                      GSF_PARAM_STATIC |
+                                      G_PARAM_READABLE));
 }
 
 GSF_CLASS_ABSTRACT (GsfOutput, gsf_output,
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 1c11e68..475272c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -3,9 +3,13 @@
 [encoding: UTF-8]
 gsf/gsf-blob.c
 gsf/gsf-clip-data.c
+gsf/gsf-infile-zip.c
 gsf/gsf-input-http.c
+gsf/gsf-input.c
 gsf/gsf-libxml.c
 gsf/gsf-msole-utils.c
 gsf/gsf-open-pkg-utils.c
 gsf/gsf-opendoc-utils.c
+gsf/gsf-outfile-zip.c
+gsf/gsf-output.c
 tools/gsf.c


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