]> git.sur5r.net Git - glabels/commitdiff
Additional translator hints.
authorJim Evins <evins@snaught.com>
Mon, 24 May 2010 23:45:03 +0000 (19:45 -0400)
committerJim Evins <evins@snaught.com>
Mon, 24 May 2010 23:45:03 +0000 (19:45 -0400)
- Fixed a couple of strings that should not have been marked translatable.
- Added comments for "Fixed", "Other", "None", and "No match."
- Attempted to disambiguate 3 different occurances of "Any"

data/ui/new-label-dialog.ui
data/ui/object-editor.ui
libglabels/db.c
libglabels/template.c
src/media-select.c
src/merge-properties-dialog.c
src/merge.c

index 8f9a645e01f4a080ac16815bc6e78e9fe929fb13..ddafabb984bef0c60b4b5cc60bb265a47620045b 100644 (file)
                                     <property name="visible">True</property>
                                     <property name="xalign">0</property>
                                     <property name="yalign">0</property>
-                                    <property name="label" translatable="yes">1
+                                    <property name="label">1
 2
 3
 4</property>
index d8139534e9e72d6a3fd724851ce2dcff6f028b54..9bd35e530219b0cb3791c268c729aafd5ce92111 100644 (file)
                               <object class="GtkLabel" id="data_ex_label">
                                 <property name="visible">True</property>
                                 <property name="xalign">0</property>
-                                <property name="label" translatable="yes">00000000000 00000</property>
+                                <property name="label">00000000000 00000</property>
                               </object>
                               <packing>
                                 <property name="left_attach">1</property>
index 76fd084c903d3e3aa2a46cc62513bb27fcafe07c..0e7cf2765b0e9ea96e8cee3d907c0a1b322e403a 100644 (file)
@@ -264,6 +264,9 @@ lgl_db_init (void)
         model->papers = read_papers ();
 
         /* Create and append an "Other" entry. */
+        /* Translators: "Other" here means other page size.  Meaning a page size
+         * other than the standard ones that libglabels knows about such as
+         * "letter", "A4", etc. */
         paper_other = lgl_paper_new ("Other", _("Other"), 0.0, 0.0, NULL);
         model->papers = g_list_append (model->papers, paper_other);
 
index bacb6c677ea423b91554e0e73d1ef4252d95dda0..c942e8bd120b9338693a9ce43660c0449d50f25d 100644 (file)
@@ -723,7 +723,7 @@ lgl_template_frame_get_layout_description (const lglTemplateFrame *frame)
         }
         else
         {
-                string = g_strdup_printf (_("%d %s"), n_labels, _("per sheet"));
+                string = g_strdup_printf ("%d %s", n_labels, _("per sheet"));
         }
 
         return string;
index 11692786e70095204fefdaa41d98f46eaeb70c0c..e6f1c534d02aab34f7b2e1e68e2ec985a0c13ed3 100644 (file)
@@ -346,16 +346,16 @@ gl_media_select_construct (glMediaSelect *this)
         /* Brand selection control */
         gl_combo_util_add_text_model (GTK_COMBO_BOX (this->priv->brand_combo));
         brands = lgl_db_get_brand_list (NULL, NULL);
-        brands = g_list_prepend (brands, g_strdup (_("Any")));
+        brands = g_list_prepend (brands, g_strdup (C_("Brand", "Any")));
         gl_combo_util_set_strings (GTK_COMBO_BOX (this->priv->brand_combo), brands);
         lgl_db_free_brand_list (brands);
         gl_combo_util_set_active_text (GTK_COMBO_BOX (this->priv->brand_combo),
-                                       _("Any"));
+                                       C_("Brand", "Any"));
 
         /* Page size selection control */
         gl_combo_util_add_text_model (GTK_COMBO_BOX (this->priv->page_size_combo));
         page_sizes = lgl_db_get_paper_name_list ();
-        page_sizes = g_list_prepend (page_sizes, g_strdup (_("Any")));
+        page_sizes = g_list_prepend (page_sizes, g_strdup (C_("Page size", "Any")));
         gl_combo_util_set_strings (GTK_COMBO_BOX (this->priv->page_size_combo), page_sizes);
         lgl_db_free_paper_name_list (page_sizes);
         gl_combo_util_set_active_text (GTK_COMBO_BOX (this->priv->page_size_combo),
@@ -364,10 +364,10 @@ gl_media_select_construct (glMediaSelect *this)
         /* Category selection control */
         gl_combo_util_add_text_model (GTK_COMBO_BOX (this->priv->category_combo));
         categories = lgl_db_get_category_name_list ();
-        categories = g_list_prepend (categories, g_strdup (_("Any")));
+        categories = g_list_prepend (categories, g_strdup (C_("Category", "Any")));
         gl_combo_util_set_strings (GTK_COMBO_BOX (this->priv->category_combo), categories);
         gl_combo_util_set_active_text (GTK_COMBO_BOX (this->priv->category_combo),
-                                       _("Any"));
+                                       C_("Category", "Any"));
         lgl_db_free_category_name_list (categories);
 
         /* Search all treeview */
@@ -499,7 +499,7 @@ filter_changed_cb (glMediaSelect *this)
                 gl_debug (DEBUG_MEDIA_SELECT, "brand = \"%s\"", brand);
                 gl_debug (DEBUG_MEDIA_SELECT, "page_size_name = \"%s\"", page_size_name);
                 gl_debug (DEBUG_MEDIA_SELECT, "category_name = \"%s\"", category_name);
-                if (!g_utf8_collate (brand, _("Any")))
+                if (!g_utf8_collate (brand, C_("Brand", "Any")))
                 {
                         g_free (brand);
                         brand = NULL;
@@ -698,7 +698,7 @@ db_changed_cb (glMediaSelect *this)
              page_size_name && strlen(page_size_name) &&
              category_name && strlen(category_name) )
         {
-                if (!g_utf8_collate (brand, _("Any")))
+                if (!g_utf8_collate (brand, C_("Brand", "Any")))
                 {
                         g_free (brand);
                         brand = NULL;
@@ -868,7 +868,7 @@ gl_media_select_set_filter_parameters (glMediaSelect  *this,
         page_size_name = lgl_db_lookup_paper_name_from_id (page_size_id);
         if (page_size_name == NULL)
         {
-                page_size_name = g_strdup (_("Any"));
+                page_size_name = g_strdup (C_("Page size", "Any"));
         }
 
         gl_combo_util_set_active_text (GTK_COMBO_BOX (this->priv->page_size_combo),
@@ -877,7 +877,7 @@ gl_media_select_set_filter_parameters (glMediaSelect  *this,
         category_name = lgl_db_lookup_category_name_from_id (category_id);
         if (category_name == NULL)
         {
-                category_name = g_strdup (_("Any"));
+                category_name = g_strdup (C_("Category", "Any"));
         }
 
         gl_combo_util_set_active_text (GTK_COMBO_BOX (this->priv->category_combo),
@@ -964,9 +964,8 @@ load_recent_list (glMediaSelect      *this,
         }
         else
         {
-                this->priv->recent_info_bar = gl_message_bar_new (GTK_MESSAGE_INFO,
-                                                                          GTK_BUTTONS_NONE,
-                                                                          "%s", _("No recent templates found."));
+                this->priv->recent_info_bar = gl_message_bar_new (GTK_MESSAGE_INFO, GTK_BUTTONS_NONE,
+                                                                  "%s", _("No recent templates found."));
                 gl_message_bar_format_secondary_text (GL_MESSAGE_BAR (this->priv->recent_info_bar),
                                                       "%s", _("Try selecting a template in the \"Search all\" tab."));
 
@@ -1057,9 +1056,9 @@ load_search_all_list (glMediaSelect      *this,
         }
         else
         {
-                this->priv->search_all_info_bar = gl_message_bar_new (GTK_MESSAGE_INFO,
-                                                                              GTK_BUTTONS_NONE,
-                                                                              "%s", _("No match."));
+                /* Translators: "No match" means that for the given template search criteria, there
+                 * were no matches found. */
+                this->priv->search_all_info_bar = gl_message_bar_new (GTK_MESSAGE_INFO, GTK_BUTTONS_NONE, "%s", _("No match."));
                 gl_message_bar_format_secondary_text (GL_MESSAGE_BAR (this->priv->search_all_info_bar),
                                                       "%s", _("Try selecting a different brand, page size or category."));
 
index d3eadc11beeca7e7f32d179c0adca5e5cb823bc3..6988fcbcd8ecaa3d1da68f957832bf861646f49b 100644 (file)
@@ -436,6 +436,10 @@ type_changed_cb (GtkWidget               *widget,
                                  G_CALLBACK (src_changed_cb), dialog);
                break;
        case GL_MERGE_SRC_IS_FIXED:
+                /* Translators: "Fixed" here means that for the given document-merge method, there are
+                 * no further choices to further define the source of data.  E.g. if you select the
+                 * evolution-data-server, there are no further choices -- the source is "Fixed."
+                 */
                dialog->priv->src_entry = gtk_label_new (_("Fixed"));
                gtk_misc_set_alignment (GTK_MISC (dialog->priv->src_entry), 0.0, 0.5);
 
index d83c4e44fd16ee972300ff3e5e1c469b84f1468b..6829246241ef2697c948316ed77a6fb49d09208c 100644 (file)
@@ -166,6 +166,8 @@ gl_merge_get_descriptions (void)
        GList   *p;
        Backend *backend;
 
+        /* Translators: "None" here means that no document-merge source or
+         * method has been selected. */
        descriptions = g_list_append (descriptions, g_strdup(_("None")));
 
        for ( p=backends; p!=NULL; p=p->next) {