[pitivi: 15/28] Fixed error message in	ElementTreeFormatter._loadEffectTrackObject
- From: Edward Hervey <edwardrv src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [pitivi: 15/28] Fixed error message in	ElementTreeFormatter._loadEffectTrackObject
 
- Date: Thu, 14 Jul 2011 16:24:28 +0000 (UTC)
 
commit 9e0924a659d850f6c9a0b5fcd29d4ab356cdec6c
Author: Alex BÄluÈ <alexandru balut gmail com>
Date:   Thu Jul 7 22:59:03 2011 +0200
    Fixed error message in ElementTreeFormatter._loadEffectTrackObject
 pitivi/formatters/etree.py |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/formatters/etree.py b/pitivi/formatters/etree.py
index 061ac24..a87908b 100644
--- a/pitivi/formatters/etree.py
+++ b/pitivi/formatters/etree.py
@@ -20,6 +20,7 @@
 # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA 02110-1301, USA.
 
+from gettext import gettext as _
 import gobject
 gobject.threads_init()
 import gst
@@ -424,17 +425,15 @@ class ElementTreeFormatter(Formatter):
         try:
             factory = self.avalaible_effects.getFactoryFromName(factory_name)
         except KeyError:
-            #Find a way to figure out how we could install the missing effect...
-            raise FormatterError(_("The project contains effects that are not\
-                                   avalaibe on the system. It can't be loaded"))
+            # TODO: Find a way to install the missing effect.
+            raise FormatterError(_("The project contains effects which are not "
+                                   "available on the system."))
 
         input_stream = factory.getInputStreams()
         if not input_stream:
             raise FormatterError("cant find effect factory input stream")
         input_stream = input_stream[0]
-
         track_object = klass(factory, input_stream)
-
         track.addTrackObject(track_object)
 
         for name, value_string in self._filterElementProperties(element):
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]