diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2022-09-03 09:02:11 +0200 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2022-09-03 09:03:59 +0200 |
commit | 437deaf68fa19939f628a9c491aee236ef4fcff2 (patch) | |
tree | 8e91b94e98a378dd984b7be71c9c3a711bbaf1b3 /src | |
parent | 1d44c11483e3d00611c0beed9afc8f2c9facc3a8 (diff) | |
download | gnome-contacts-437deaf68fa19939f628a9c491aee236ef4fcff2.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/contacts-app.vala | 4 | ||||
-rw-r--r-- | 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 c6affb4..25613a2 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 e2fbeec..3c755e7 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) { |