← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 525: Reverting commit Rev 485.1.11. This does not work, and prevents the filters from working in othe...

 

------------------------------------------------------------
revno: 525
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Tue 2011-08-30 23:29:02 -0500
message:
  Reverting commit Rev 485.1.11.  This does not work, and prevents the filters from working in other languages.  The filters already work for all languages, so if they aren't working in a specific language, it's probably unrelated to this.
modified:
  openshot/windows/TreeEffects.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/windows/TreeEffects.py'
--- openshot/windows/TreeEffects.py	2011-08-30 22:12:51 +0000
+++ openshot/windows/TreeEffects.py	2011-08-31 04:29:02 +0000
@@ -35,7 +35,7 @@
 		# init vars
 		self.treeview = treeview
 		self.project = project
-		self.filter_category = _("Show All")
+		self.filter_category = "Show All"
 		
 		self.store = None
 	
@@ -162,29 +162,29 @@
 		_ = self._
 		
 		# 1st match the filter category
-		if self.filter_category == _("Show All"):
-			
-			if filter:
-				# match text of filter
-				if _(filter).lower() in _(my_effect.title).lower():
-					# text matches
-					return True
-			else:
-				# no additional text filter 
-				return True
-			
-		elif self.filter_category == _("Video") and my_effect.category == _("Video"):
-			
-			if filter:
-				# match text of filter
-				if _(filter).lower() in _(my_effect.title).lower():
-					# text matches
-					return True
-			else:
-				# no additional text filter 
-				return True
-			
-		elif self.filter_category == _("Audio") and my_effect.category == _("Audio"):
+		if self.filter_category == "Show All":
+			
+			if filter:
+				# match text of filter
+				if _(filter).lower() in _(my_effect.title).lower():
+					# text matches
+					return True
+			else:
+				# no additional text filter 
+				return True
+			
+		elif self.filter_category == "Video" and my_effect.category == "Video":
+			
+			if filter:
+				# match text of filter
+				if _(filter).lower() in _(my_effect.title).lower():
+					# text matches
+					return True
+			else:
+				# no additional text filter 
+				return True
+			
+		elif self.filter_category == "Audio" and my_effect.category == "Audio":
 			
 			if filter:
 				# match text of filter