// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Represents a language. // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrake.Interop.Model { /// /// Represents a language. /// public class Language { /// /// Gets or sets the english name of the language. /// public string EnglishName { get; set; } /// /// Gets or sets the native name of the language. /// public string NativeName { get; set; } /// /// Gets or sets the language code. /// public string Code { get; set; } /// /// Gets the display string for the language. /// public string Display { get { if (!string.IsNullOrEmpty(this.NativeName) && this.NativeName != this.EnglishName) { return this.EnglishName + " (" + this.NativeName + ")"; } return this.EnglishName; } } } }