[shotwell] i18n: Use dpgettext2 for strings marked with NC_



commit 90d24e0badb68007433e2d29ba7a82315aa42caf
Author: Jens Georg <mail jensge org>
Date:   Sun Jul 10 15:31:47 2016 +0200

    i18n: Use dpgettext2 for strings marked with NC_
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/Commands.vala     |    8 ++++++--
 src/Dialogs.vala      |    4 +++-
 src/SearchFilter.vala |    3 ++-
 3 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/src/Commands.vala b/src/Commands.vala
index a5816ea..d922c7d 100644
--- a/src/Commands.vala
+++ b/src/Commands.vala
@@ -564,7 +564,9 @@ public class EditTitleCommand : SingleDataSourceCommand {
     private string? old_title;
     
     public EditTitleCommand(MediaSource source, string new_title) {
-        base(source, Resources.EDIT_TITLE_LABEL, "");
+        var title = GLib.dpgettext2 (null, "Button Label",
+                Resources.EDIT_TITLE_LABEL);
+        base(source, title, "");
         
         this.new_title = new_title;
         old_title = source.get_title();
@@ -604,7 +606,9 @@ public class EditMultipleTitlesCommand : MultipleDataSourceAtOnceCommand {
     public Gee.HashMap<MediaSource, string?> old_titles = new Gee.HashMap<MediaSource, string?>();
     
     public EditMultipleTitlesCommand(Gee.Collection<MediaSource> media_sources, string new_title) {
-        base (media_sources, Resources.EDIT_TITLE_LABEL, "");
+        var title = GLib.dpgettext2 (null, "Button Label",
+                Resources.EDIT_TITLE_LABEL);
+        base (media_sources, title, "");
         
         this.new_title = new_title;
         foreach (MediaSource media in media_sources)
diff --git a/src/Dialogs.vala b/src/Dialogs.vala
index 791329f..4f9e7f4 100644
--- a/src/Dialogs.vala
+++ b/src/Dialogs.vala
@@ -1974,7 +1974,9 @@ public abstract class TagsDialog : TextEntryDialogMediator {
 
 public class AddTagsDialog : TagsDialog {
     public AddTagsDialog() {
-        base (Resources.ADD_TAGS_TITLE, _("Tags (separated by commas):"));
+        var title = GLib.dpgettext2 (null, "Dialog Title",
+                Resources.ADD_TAGS_TITLE);
+        base (title, _("Tags (separated by commas):"));
     }
 
     public string[]? execute() {
diff --git a/src/SearchFilter.vala b/src/SearchFilter.vala
index 23f7aed..cb2a312 100644
--- a/src/SearchFilter.vala
+++ b/src/SearchFilter.vala
@@ -538,7 +538,8 @@ public class SearchFilterActions {
         Gtk.RadioActionEntry rejected_or_higher = { "CommonDisplayRejectedOrHigher", null, TRANSLATABLE,
             "<Ctrl>9", TRANSLATABLE, RatingFilter.REJECTED_OR_HIGHER };
         rejected_or_higher.label = Resources.DISPLAY_REJECTED_OR_HIGHER_MENU;
-        rejected_or_higher.tooltip = Resources.DISPLAY_REJECTED_OR_HIGHER_TOOLTIP;
+        rejected_or_higher.tooltip = GLib.dpgettext2 (null, "Tooltip",
+                Resources.DISPLAY_REJECTED_OR_HIGHER_TOOLTIP);
         view_filter_actions += rejected_or_higher;
         
         Gtk.RadioActionEntry unrated_or_higher = { "CommonDisplayUnratedOrHigher", null, TRANSLATABLE, 


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