summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Parsing
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-05-29 17:31:58 +0000
committersr55 <[email protected]>2013-05-29 17:31:58 +0000
commitbffc8a4ab97bcd4630496c62be4720e0c590f1fa (patch)
treede2a7bac1438c0dbec660388fee636053ef3a96b /win/CS/HandBrake.ApplicationServices/Parsing
parente0c83de39ee1c7533842c566b4cbea80c0257f99 (diff)
WinGui: Use ISO639-2 Codes rather than language names for auto language selection
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5524 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Parsing')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Parsing/Subtitle.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Parsing/Subtitle.cs b/win/CS/HandBrake.ApplicationServices/Parsing/Subtitle.cs
index 34a919908..0a68476f4 100644
--- a/win/CS/HandBrake.ApplicationServices/Parsing/Subtitle.cs
+++ b/win/CS/HandBrake.ApplicationServices/Parsing/Subtitle.cs
@@ -69,6 +69,22 @@ namespace HandBrake.ApplicationServices.Parsing
public string LanguageCode { get; set; }
/// <summary>
+ /// Gets the language code clean.
+ /// TODO Remove this after fixing language code.
+ /// </summary>
+ public string LanguageCodeClean
+ {
+ get
+ {
+ if (this.LanguageCode != null)
+ {
+ return this.LanguageCode.Replace("iso639-2: ", string.Empty).Trim();
+ }
+ return string.Empty;
+ }
+ }
+
+ /// <summary>
/// Gets or sets the Subtitle Type
/// </summary>
public SubtitleType SubtitleType { get; set; }