[pitivi] effects: Cleanup a bit the construction of the useless title words regex
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] effects: Cleanup a bit the construction of the useless title words regex
- Date: Tue, 30 Sep 2014 07:31:07 +0000 (UTC)
commit e1228de94b84f0776fb7ba1301267ba13b795b28
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Sep 30 00:07:58 2014 +0200
effects: Cleanup a bit the construction of the useless title words regex
pitivi/effects.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/effects.py b/pitivi/effects.py
index 3e19ff5..caf046f 100644
--- a/pitivi/effects.py
+++ b/pitivi/effects.py
@@ -267,13 +267,10 @@ class EffectsManager(object):
@type element_factory: L{Gst.ElementFactory}
@return: A human readable name C{str} for the effect
"""
- #TODO check if it is the good way to make it translatable
- #And to filter actually!
video = _("Video")
- audio = _("Audio |audio")
+ audio = _("Audio")
effect = _("effect")
- pipe = " |"
- uselessWords = re.compile(video + pipe + audio + pipe + effect)
+ uselessWords = re.compile(" |".join([video, audio, audio.lower(), effect]))
return uselessWords.sub("", element_factory.get_longname()).title()
def getVideoCategories(self, aware=True):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]