diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-11-25 04:11:58 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-11-25 04:11:58 +0100 |
commit | ccff5442184e84d511c2bd25ed3da53e4336a272 (patch) | |
tree | 8402a0ba68852e0aec5841ed4519ccfe88352223 /src/Resources.vala | |
parent | a1e1833f48ed618273dab9198b547148a89832a7 (diff) | |
parent | 4a3f1fdfe1eb3743564adcee35d5513224339260 (diff) |
Merge tag 'upstream/0.25.1'
Upstream version 0.25.1
Diffstat (limited to 'src/Resources.vala')
-rw-r--r-- | src/Resources.vala | 40 |
1 files changed, 12 insertions, 28 deletions
diff --git a/src/Resources.vala b/src/Resources.vala index 138772e..bf34ae0 100644 --- a/src/Resources.vala +++ b/src/Resources.vala @@ -376,22 +376,27 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., public const string MODIFY_TAGS_LABEL = _("Modify Tags"); public string tag_photos_label(string name, int count) { - return ((count == 1) ? _("Tag Photo as “%s”") : _("Tag Photos as “%s”")).printf(name); + return ngettext ("Tag Photo as “%s”", + "Tag Photos as “%s”", + count).printf(name); } public string tag_photos_tooltip(string name, int count) { - return ((count == 1) ? _("Tag the selected photo as “%s”") : - _("Tag the selected photos as “%s”")).printf(name); + return ngettext ("Tag the selected photo as “%s”", + "Tag the selected photos as “%s”", + count).printf(name); } public string untag_photos_menu(string name, int count) { - return ((count == 1) ? _("Remove Tag “%s” From _Photo") : - _("Remove Tag “%s” From _Photos")).printf(name); + return ngettext ("Remove Tag “%s” From _Photo", + "Remove Tag “%s” From _Photos", + count).printf(name); } public string untag_photos_label(string name, int count) { - return ((count == 1) ? _("Remove Tag “%s” From Photo") : - _("Remove Tag “%s” From Photos")).printf(name); + return ngettext ("Remove Tag “%s” From Photo", + "Remove Tag “%s” From Photos", + count).printf(name); } public static string rename_tag_exists_message(string name) { @@ -418,27 +423,6 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc., return _("Delete Search “%s”").printf(name); } - private unowned string rating_menu(Rating rating) { - switch (rating) { - case Rating.REJECTED: - return RATE_REJECTED_MENU; - case Rating.UNRATED: - return RATE_UNRATED_MENU; - case Rating.ONE: - return RATE_ONE_MENU; - case Rating.TWO: - return RATE_TWO_MENU; - case Rating.THREE: - return RATE_THREE_MENU; - case Rating.FOUR: - return RATE_FOUR_MENU; - case Rating.FIVE: - return RATE_FIVE_MENU; - default: - return RATE_UNRATED_MENU; - } - } - private unowned string rating_label(Rating rating) { switch (rating) { case Rating.REJECTED: |