[gnome-contacts] Mark some import/export related strings as translatable



commit 437deaf68fa19939f628a9c491aee236ef4fcff2
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sat Sep 3 09:02:11 2022 +0200

    Mark some import/export related strings as translatable
    
    When adding the feature to import and export contacts, we forgot to make
    some strings translatable. Piotr found these, so let's mark them as such
    (we're already in string freeze, but the alternative is that these won't
    be translated anyway).
    
    Fixes: https://gitlab.gnome.org/GNOME/gnome-contacts/-/issues/263

 src/contacts-app.vala         | 4 ++--
 src/contacts-main-window.vala | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index c6affb4e..25613a28 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -335,7 +335,7 @@ public class Contacts.App : Adw.Application {
   }
 
   private void on_import (SimpleAction action, Variant? param) {
-    var chooser = new Gtk.FileChooserNative ("Select contact file",
+    var chooser = new Gtk.FileChooserNative (_("Select contact file"),
                                              this.window,
                                              Gtk.FileChooserAction.OPEN,
                                              _("Import"),
@@ -345,7 +345,7 @@ public class Contacts.App : Adw.Application {
 
     // TODO: somehow get this from the list of importers we have
     var filter = new Gtk.FileFilter ();
-    filter.set_filter_name ("VCard files");
+    filter.set_filter_name (_("vCard files"));
     filter.add_pattern ("*.vcf");
     filter.add_pattern ("*.vcard");
     chooser.add_filter (filter);
diff --git a/src/contacts-main-window.vala b/src/contacts-main-window.vala
index e2fbeecd..3c755e7b 100644
--- a/src/contacts-main-window.vala
+++ b/src/contacts-main-window.vala
@@ -562,7 +562,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow {
                                              Gtk.FileChooserAction.SAVE,
                                              _("_Export"),
                                              _("_Cancel"));
-    chooser.set_current_name ("contacts.vcf");
+    chooser.set_current_name (_("contacts.vcf"));
     chooser.modal = true;
     chooser.response.connect ((response) => {
       if (response != Gtk.ResponseType.ACCEPT) {


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