Add Romanian language code for 890 files - thx Elad :)

This commit is contained in:
Nikolaj Olsson 2017-08-17 05:46:50 +02:00
parent 1e688a2342
commit a0235232d0
3 changed files with 20 additions and 1 deletions

View File

@ -16,6 +16,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
public const int LanguageIdHebrew = 0x8f;
public const int LanguageIdChineseTraditional = 0x90;
public const int LanguageIdChineseSimplified = 0x91;
public const int LanguageIdRomanian = 0x22;
private static readonly List<int> HebrewCodes = new List<int> {
0x40, // א

View File

@ -28,6 +28,7 @@
/// </summary>
private void InitializeComponent()
{
Nikse.SubtitleEdit.Core.TimeCode timeCode1 = new Nikse.SubtitleEdit.Core.TimeCode();
this.labelTimeCodeStartOfProgramme = new System.Windows.Forms.Label();
this.buttonOK = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button();
@ -173,6 +174,14 @@
this.timeUpDownStartTime.Name = "timeUpDownStartTime";
this.timeUpDownStartTime.Size = new System.Drawing.Size(96, 24);
this.timeUpDownStartTime.TabIndex = 11;
timeCode1.Hours = 99;
timeCode1.Milliseconds = 999;
timeCode1.Minutes = 59;
timeCode1.Seconds = 59;
timeCode1.TimeSpan = System.TimeSpan.Parse("4.03:59:59.9990000");
timeCode1.TotalMilliseconds = 359999999D;
timeCode1.TotalSeconds = 359999.999D;
this.timeUpDownStartTime.TimeCode = timeCode1;
this.timeUpDownStartTime.UseVideoOffset = false;
//
// comboBoxLanguage
@ -186,7 +195,8 @@
"Chinese Traditional",
"English",
"Hebrew",
"Russian"});
"Russian",
"Romanian"});
this.comboBoxLanguage.Location = new System.Drawing.Point(185, 147);
this.comboBoxLanguage.Name = "comboBoxLanguage";
this.comboBoxLanguage.Size = new System.Drawing.Size(219, 21);

View File

@ -45,6 +45,10 @@ namespace Nikse.SubtitleEdit.Forms
Configuration.Settings.SubtitleSettings.CurrentCavena89LanguageId = Cavena890.LanguageIdRussian;
comboBoxLanguage.SelectedIndex = 6;
break;
case "ro":
Configuration.Settings.SubtitleSettings.CurrentCavena89LanguageId = Cavena890.LanguageIdRomanian;
comboBoxLanguage.SelectedIndex = 7;
break;
case "zh":
Configuration.Settings.SubtitleSettings.CurrentCavena89LanguageId = Cavena890.LanguageIdChineseSimplified;
comboBoxLanguage.SelectedIndex = 2;
@ -155,6 +159,10 @@ namespace Nikse.SubtitleEdit.Forms
Configuration.Settings.SubtitleSettings.CurrentCavena89LanguageId = Cavena890.LanguageIdDanish;
comboBoxLanguage.SelectedIndex = 1;
break;
case Cavena890.LanguageIdRomanian:
Configuration.Settings.SubtitleSettings.CurrentCavena89LanguageId = Cavena890.LanguageIdRomanian;
comboBoxLanguage.SelectedIndex = 7;
break;
default:
Configuration.Settings.SubtitleSettings.CurrentCavena89LanguageId = Cavena890.LanguageIdEnglish;
comboBoxLanguage.SelectedIndex = 4;