[gitg] Add translation contexts for Commit string



commit a996119a7c43d35fe9081e03aa903e29f9b81c92
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Tue Aug 4 22:42:29 2015 +0200

    Add translation contexts for Commit string
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746633

 gitg/commit/gitg-commit.vala                  |    2 +-
 gitg/preferences/gitg-preferences-commit.vala |    2 +-
 gitg/resources/ui/gitg-commit-dialog.ui       |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gitg/commit/gitg-commit.vala b/gitg/commit/gitg-commit.vala
index 5d49443..17c5f19 100644
--- a/gitg/commit/gitg-commit.vala
+++ b/gitg/commit/gitg-commit.vala
@@ -68,7 +68,7 @@ namespace GitgCommit
 
                public string display_name
                {
-                       owned get { return _("Commit"); }
+                       owned get { return C_("Activity", "Commit"); }
                }
 
                public string description
diff --git a/gitg/preferences/gitg-preferences-commit.vala b/gitg/preferences/gitg-preferences-commit.vala
index ecf5535..3eed47f 100644
--- a/gitg/preferences/gitg-preferences-commit.vala
+++ b/gitg/preferences/gitg-preferences-commit.vala
@@ -116,7 +116,7 @@ public class PreferencesCommit : Gtk.Grid, GitgExt.Preferences
 
        public string display_name
        {
-               owned get { return _("Commit"); }
+               owned get { return C_("Preferences", "Commit"); }
        }
 }
 
diff --git a/gitg/resources/ui/gitg-commit-dialog.ui b/gitg/resources/ui/gitg-commit-dialog.ui
index c6372e3..48c2527 100644
--- a/gitg/resources/ui/gitg-commit-dialog.ui
+++ b/gitg/resources/ui/gitg-commit-dialog.ui
@@ -5,7 +5,7 @@
   <template class="GitgCommitDialog" parent="GtkDialog">
     <property name="can_focus">False</property>
     <property name="border_width">5</property>
-    <property name="title" translatable="yes">Commit</property>
+    <property name="title" translatable="yes" context="Create Dialog">Commit</property>
     <property name="modal">True</property>
     <property name="default_width">600</property>
     <property name="default_height">400</property>



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