[pitivi] medialibrary: Group the singular and plural of messages
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] medialibrary: Group the singular and plural of messages
- Date: Sat, 7 Jan 2017 23:34:57 +0000 (UTC)
commit 0cfce872444db11d086eec48a7e294b51e949279
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Dec 28 01:33:31 2016 +0100
medialibrary: Group the singular and plural of messages
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D1584
pitivi/medialibrary.py | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 2d80ae0..f996410 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -1035,7 +1035,7 @@ class MediaLibraryWidget(Gtk.Box, Loggable):
def __warningInfobarCb(self, infobar, response_id):
if response_id == Gtk.ResponseType.OK:
- self.__showErrors()
+ self.__show_errors()
self._resetErrorList()
infobar.hide()
@@ -1043,15 +1043,15 @@ class MediaLibraryWidget(Gtk.Box, Loggable):
self._errors = []
self._import_warning_infobar.hide()
- def __showErrors(self):
+ def __show_errors(self):
"""Shows a dialog with the import errors."""
- if len(self._errors) > 1:
- msgs = (_("Error while analyzing files"),
- _("The following files can not be used with Pitivi."))
- else:
- msgs = (_("Error while analyzing a file"),
- _("The following file can not be used with Pitivi."))
- error_dialogbox = FileListErrorDialog(*msgs)
+ title = ngettext("Error while analyzing a file",
+ "Error while analyzing files",
+ len(self._errors))
+ headline = ngettext("The following file can not be used with Pitivi.",
+ "The following files can not be used with Pitivi.",
+ len(self._errors))
+ error_dialogbox = FileListErrorDialog(title, headline)
error_dialogbox.connect("close", self._errorDialogBoxCloseCb)
error_dialogbox.connect("response", self._errorDialogBoxResponseCb)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]