[almanah] core: Add translation context to ‘Impor t’ and ‘Export’ strings



commit ab6b42a7842851ea41beb6ab635bf4ad5fe41c27
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Jun 23 23:49:50 2015 +0100

    core: Add translation context to ‘Import’ and ‘Export’ strings
    
    The verb form should be used in the import/export dialogue, but the
    noun/subject form should be used in the main menu.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751347

 src/gtk/menus.ui           |    4 ++--
 src/import-export-dialog.c |    5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gtk/menus.ui b/src/gtk/menus.ui
index acf38a8..84771a7 100644
--- a/src/gtk/menus.ui
+++ b/src/gtk/menus.ui
@@ -13,11 +13,11 @@
                                <attribute name="action">app.preferences</attribute>
                        </item>
                        <item>
-                               <attribute name="label" translatable="yes">_Import</attribute>
+                               <attribute name="label" translatable="yes" context="Main 
menu">_Import</attribute>
                                <attribute name="action">app.import</attribute>
                        </item>
                        <item>
-                               <attribute name="label" translatable="yes">_Export</attribute>
+                               <attribute name="label" translatable="yes" context="Main 
menu">_Export</attribute>
                                <attribute name="action">app.export</attribute>
                        </item>
                        <item>
diff --git a/src/import-export-dialog.c b/src/import-export-dialog.c
index 62258cc..2491cf2 100644
--- a/src/import-export-dialog.c
+++ b/src/import-export-dialog.c
@@ -205,8 +205,9 @@ almanah_import_export_dialog_new (AlmanahStorageManager *storage_manager, gboole
        /* Set the window title */
        gtk_window_set_title (GTK_WINDOW (import_export_dialog), (import == TRUE) ? _("Import Entries") : 
_("Export Entries"));
 
-       /* Set the button label */
-       gtk_button_set_label (GTK_BUTTON (priv->import_export_button), (import == TRUE) ? _("_Import") : 
_("_Export"));
+       /* Set the button label. Translators: These are verbs. */
+       gtk_button_set_label (GTK_BUTTON (priv->import_export_button),
+                             (import == TRUE) ? C_("Dialog button", "_Import") : C_("Dialog button", 
"_Export"));
 
        /* Populate the mode combo box */
        if (import == TRUE)


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