[pitivi/1.0] check: Error messages of GstPluginDependency checks changed to more specific.
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/1.0] check: Error messages of GstPluginDependency checks changed to more specific.
- Date: Thu, 13 Dec 2018 07:55:14 +0000 (UTC)
commit e58e73d89f4a5aa33bdeb63e63c4e6f0c2bbaaef
Author: ymdatta <ymdatta protonmail com>
Date: Wed Dec 12 23:47:54 2018 +0530
check: Error messages of GstPluginDependency checks changed to more specific.
Fixes #2190
pitivi/check.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
---
diff --git a/pitivi/check.py b/pitivi/check.py
index 378fd8e4..10367e7f 100644
--- a/pitivi/check.py
+++ b/pitivi/check.py
@@ -176,6 +176,23 @@ class GstPluginDependency(Dependency):
def _format_version(self, plugin):
return _string_to_list(plugin.get_version())
+ def __repr__(self):
+ if self.satisfied:
+ return ""
+
+ if not self.component:
+ # Translators: %s is a Python module name or another os component
+ message = _("- %s GStreamer plug-in not found on the system") % self.modulename
+ else:
+ # Translators: %s is a Python module name or another os component
+ message = _("- %s Gstreamer plug-in version %s is installed but Pitivi requires at least version
%s") % (
+ self.modulename, self.version_installed, self.version_required_string)
+
+ if self.additional_message is not None:
+ message += "\n -> " + self.additional_message
+
+ return message
+
class GstDependency(GIDependency):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]