[shotwell] More ngettext for plurals
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] More ngettext for plurals
- Date: Thu, 17 Nov 2016 22:00:30 +0000 (UTC)
commit 94e107e021a24df2a99f0eb6b84449111908f744
Author: Jens Georg <mail jensge org>
Date: Thu Nov 17 22:59:53 2016 +0100
More ngettext for plurals
Signed-off-by: Jens Georg <mail jensge org>
src/Dialogs.vala | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/Dialogs.vala b/src/Dialogs.vala
index af757d3..22dfd72 100644
--- a/src/Dialogs.vala
+++ b/src/Dialogs.vala
@@ -1732,11 +1732,12 @@ public class AdjustDateTimeDialog : Gtk.Dialog {
batch_radio_button.toggled.connect(on_time_changed);
if (contains_video) {
- modify_originals_check_button = new Gtk.CheckButton.with_mnemonic((photo_count == 1) ?
- _("_Modify original photo file") : _("_Modify original photo files"));
+ var text = ngettext ("_Modify original photo file", "_Modify original photo files",
+ photo_count);
+ modify_originals_check_button = new Gtk.CheckButton.with_mnemonic(text);
} else {
- modify_originals_check_button = new Gtk.CheckButton.with_mnemonic((photo_count == 1) ?
- _("_Modify original file") : _("_Modify original files"));
+ var text = ngettext ("_Modify original file", "_Modify original files", photo_count);
+ modify_originals_check_button = new Gtk.CheckButton.with_mnemonic(text);
}
modify_originals_check_button.set_active(Config.Facade.get_instance().get_commit_metadata_to_masters() &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]