summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Language.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-02-21 22:06:24 +0000
committersr55 <[email protected]>2014-02-21 22:06:24 +0000
commitf2ca02b9220a88a018759932dd9608b2de8a91cf (patch)
tree0f3c3cd02a9f137f61f0359f6d96295c7109f728 /win/CS/HandBrake.Interop/HandBrakeInterop/Model/Language.cs
parent24dafeb39495eaf0081160bd642d8da10d0b9995 (diff)
WinGui: Some tidy up and refactoring in the interop library. Few small internal namespace changes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6053 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Model/Language.cs')
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/Model/Language.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Language.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Language.cs
new file mode 100644
index 000000000..9d731ed69
--- /dev/null
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Language.cs
@@ -0,0 +1,48 @@
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="Language.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Represents a language.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model
+{
+ /// <summary>
+ /// Represents a language.
+ /// </summary>
+ public class Language
+ {
+ /// <summary>
+ /// Gets or sets the english name of the language.
+ /// </summary>
+ public string EnglishName { get; set; }
+
+ /// <summary>
+ /// Gets or sets the native name of the language.
+ /// </summary>
+ public string NativeName { get; set; }
+
+ /// <summary>
+ /// Gets or sets the language code.
+ /// </summary>
+ public string Code { get; set; }
+
+ /// <summary>
+ /// Gets the display string for the language.
+ /// </summary>
+ public string Display
+ {
+ get
+ {
+ if (!string.IsNullOrEmpty(this.NativeName) && this.NativeName != this.EnglishName)
+ {
+ return this.EnglishName + " (" + this.NativeName + ")";
+ }
+
+ return this.EnglishName;
+ }
+ }
+ }
+}