[gnome-subtitles] Allow to know if a translation exists.



commit 4e4fba5636d81aa7bebbbc254a1c3f215d1475ff
Author: Pedro Castro <mail pedrocastro org>
Date:   Sat Jun 11 19:42:58 2011 +0100

    Allow to know if a translation exists.

 src/SubLib/Core/Domain/Subtitle.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/SubLib/Core/Domain/Subtitle.cs b/src/SubLib/Core/Domain/Subtitle.cs
index 5241ced..66c2712 100644
--- a/src/SubLib/Core/Domain/Subtitle.cs
+++ b/src/SubLib/Core/Domain/Subtitle.cs
@@ -1,6 +1,6 @@
 /*
  * This file is part of SubLib.
- * Copyright (C) 2005-2010 Pedro Castro
+ * Copyright (C) 2005-2011 Pedro Castro
  *
  * SubLib is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -98,6 +98,10 @@ public class Subtitle {
 		}
 	}
 	
+	public bool HasTranslation {
+		get { return this.translation != null; }
+	}
+	
 	/// <summary>The subtitle's text style.</summary>
 	public Style Style {
 		get { return style; }
@@ -139,7 +143,7 @@ public class Subtitle {
 	/* Internal properties */
 	
 	internal SubtitleProperties Properties {
-		set { properties = value; }
+		set { this.properties = value; }
 	}
 	
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]