mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Moved langues out of .exe file and into a "Languages" folder. Should make it easier for ppl to make/see/test translations + easier for me to include new languages
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@438 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
7ec8a50b9e
commit
960da18f65
@ -1,17 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
using Nikse.SubtitleEdit.Logic;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
public sealed partial class ChooseLanguage : Form
|
||||
{
|
||||
private const string CustomLanguageFileName = "Language.xml";
|
||||
|
||||
public class CultureListItem
|
||||
{
|
||||
CultureInfo _cultureInfo;
|
||||
@ -39,8 +37,6 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
int index = comboBoxLanguages.SelectedIndex;
|
||||
if (index == -1)
|
||||
return "en-US";
|
||||
else if (comboBoxLanguages.Items[index].ToString() == CustomLanguageFileName)
|
||||
return CustomLanguageFileName;
|
||||
else
|
||||
return (comboBoxLanguages.Items[index] as CultureListItem).Name;
|
||||
}
|
||||
@ -51,13 +47,11 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
InitializeComponent();
|
||||
|
||||
List<string> list = new List<string>();
|
||||
foreach (string name in System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames())
|
||||
if (Directory.Exists(Path.Combine(Configuration.DataDirectory, "Languages")))
|
||||
{
|
||||
string prefix = "Nikse.SubtitleEdit.Resources.";
|
||||
string postfix = ".xml.zip";
|
||||
if (name.StartsWith(prefix) && name.EndsWith(postfix))
|
||||
foreach (string fileName in Directory.GetFiles(Path.Combine(Configuration.DataDirectory, "Languages"), "*.xml"))
|
||||
{
|
||||
string cultureName = name.Substring(prefix.Length, name.Length - prefix.Length - postfix.Length);
|
||||
string cultureName = Path.GetFileNameWithoutExtension(fileName);
|
||||
list.Add(cultureName);
|
||||
}
|
||||
}
|
||||
@ -87,13 +81,6 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
comboBoxLanguages.SelectedIndex = index;
|
||||
|
||||
string customLanguageFile = Path.Combine(Configuration.BaseDirectory, CustomLanguageFileName);
|
||||
if (File.Exists(customLanguageFile))
|
||||
{
|
||||
comboBoxLanguages.Items.Add(CustomLanguageFileName);
|
||||
}
|
||||
|
||||
|
||||
Text = Configuration.Settings.Language.ChooseLanguage.Title;
|
||||
labelLanguage.Text = Configuration.Settings.Language.ChooseLanguage.Language;
|
||||
buttonOK.Text = Configuration.Settings.Language.General.OK;
|
||||
|
208
src/Forms/Main.Designer.cs
generated
208
src/Forms/Main.Designer.cs
generated
@ -220,6 +220,7 @@
|
||||
this.toolStripMenuItemPlayRateNormal = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemPlayRateFast = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemPlayRateVeryFast = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.AudioWaveForm = new Nikse.SubtitleEdit.Controls.WaveForm();
|
||||
this.tabControlButtons = new System.Windows.Forms.TabControl();
|
||||
this.tabPageTranslate = new System.Windows.Forms.TabPage();
|
||||
this.labelTranslateTip = new System.Windows.Forms.Label();
|
||||
@ -241,6 +242,7 @@
|
||||
this.buttonPlayCurrent = new System.Windows.Forms.Button();
|
||||
this.buttonPlayNext = new System.Windows.Forms.Button();
|
||||
this.tabPageCreate = new System.Windows.Forms.TabPage();
|
||||
this.timeUpDownVideoPosition = new Nikse.SubtitleEdit.Controls.TimeUpDown();
|
||||
this.buttonGotoSub = new System.Windows.Forms.Button();
|
||||
this.buttonBeforeText = new System.Windows.Forms.Button();
|
||||
this.buttonSetEnd = new System.Windows.Forms.Button();
|
||||
@ -259,6 +261,7 @@
|
||||
this.labelVideoPosition = new System.Windows.Forms.Label();
|
||||
this.buttonSecBack1 = new System.Windows.Forms.Button();
|
||||
this.tabPageAdjust = new System.Windows.Forms.TabPage();
|
||||
this.timeUpDownVideoPositionAdjust = new Nikse.SubtitleEdit.Controls.TimeUpDown();
|
||||
this.buttonAdjustSetEndTime = new System.Windows.Forms.Button();
|
||||
this.buttonSetEndAndGoToNext = new System.Windows.Forms.Button();
|
||||
this.buttonSetStartAndOffsetRest = new System.Windows.Forms.Button();
|
||||
@ -324,6 +327,7 @@
|
||||
this.labelTextLineTotal = new System.Windows.Forms.Label();
|
||||
this.labelCharactersPerSecond = new System.Windows.Forms.Label();
|
||||
this.buttonUnBreak = new System.Windows.Forms.Button();
|
||||
this.timeUpDownStartTime = new Nikse.SubtitleEdit.Controls.TimeUpDown();
|
||||
this.buttonUndoListViewChanges = new System.Windows.Forms.Button();
|
||||
this.labelStartTimeWarning = new System.Windows.Forms.Label();
|
||||
this.labelDurationWarning = new System.Windows.Forms.Label();
|
||||
@ -334,18 +338,14 @@
|
||||
this.textBoxListViewText = new System.Windows.Forms.TextBox();
|
||||
this.labelDuration = new System.Windows.Forms.Label();
|
||||
this.labelAutoDuration = new System.Windows.Forms.Label();
|
||||
this.SubtitleListview1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.textBoxSource = new System.Windows.Forms.TextBox();
|
||||
this.panelVideoPlayer = new System.Windows.Forms.Panel();
|
||||
this.mediaPlayer = new Nikse.SubtitleEdit.Controls.VideoPlayerContainer();
|
||||
this.contextMenuStripEmpty = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.insertLineToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.imageListPlayRate = new System.Windows.Forms.ImageList(this.components);
|
||||
this.timeUpDownStartTime = new Nikse.SubtitleEdit.Controls.TimeUpDown();
|
||||
this.SubtitleListview1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
|
||||
this.mediaPlayer = new Nikse.SubtitleEdit.Controls.VideoPlayerContainer();
|
||||
this.AudioWaveForm = new Nikse.SubtitleEdit.Controls.WaveForm();
|
||||
this.timeUpDownVideoPosition = new Nikse.SubtitleEdit.Controls.TimeUpDown();
|
||||
this.timeUpDownVideoPositionAdjust = new Nikse.SubtitleEdit.Controls.TimeUpDown();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
@ -1992,6 +1992,34 @@
|
||||
this.toolStripMenuItemPlayRateVeryFast.Text = "Very fast";
|
||||
this.toolStripMenuItemPlayRateVeryFast.Click += new System.EventHandler(this.veryFastToolStripMenuItem_Click);
|
||||
//
|
||||
// AudioWaveForm
|
||||
//
|
||||
this.AudioWaveForm.AllowDrop = true;
|
||||
this.AudioWaveForm.AllowNewSelection = true;
|
||||
this.AudioWaveForm.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.AudioWaveForm.BackColor = System.Drawing.Color.Black;
|
||||
this.AudioWaveForm.BackgroundColor = System.Drawing.Color.Black;
|
||||
this.AudioWaveForm.Color = System.Drawing.Color.GreenYellow;
|
||||
this.AudioWaveForm.DrawGridLines = true;
|
||||
this.AudioWaveForm.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(18)))));
|
||||
this.AudioWaveForm.Location = new System.Drawing.Point(472, 32);
|
||||
this.AudioWaveForm.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.AudioWaveForm.Name = "AudioWaveForm";
|
||||
this.AudioWaveForm.NewSelectionParagraph = null;
|
||||
this.AudioWaveForm.SelectedColor = System.Drawing.Color.Red;
|
||||
this.AudioWaveForm.Size = new System.Drawing.Size(768, 229);
|
||||
this.AudioWaveForm.StartPositionSeconds = 0D;
|
||||
this.AudioWaveForm.TabIndex = 6;
|
||||
this.AudioWaveForm.TextColor = System.Drawing.Color.Gray;
|
||||
this.AudioWaveForm.WaveFormNotLoadedText = "Click to add wave form";
|
||||
this.AudioWaveForm.WavePeaks = null;
|
||||
this.AudioWaveForm.ZoomFactor = 1D;
|
||||
this.AudioWaveForm.Click += new System.EventHandler(this.AudioWaveForm_Click);
|
||||
this.AudioWaveForm.DragDrop += new System.Windows.Forms.DragEventHandler(this.AudioWaveForm_DragDrop);
|
||||
this.AudioWaveForm.DragEnter += new System.Windows.Forms.DragEventHandler(this.AudioWaveForm_DragEnter);
|
||||
//
|
||||
// tabControlButtons
|
||||
//
|
||||
this.tabControlButtons.Controls.Add(this.tabPageTranslate);
|
||||
@ -2267,6 +2295,16 @@
|
||||
this.tabPageCreate.Text = "Create";
|
||||
this.tabPageCreate.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// timeUpDownVideoPosition
|
||||
//
|
||||
this.timeUpDownVideoPosition.AutoSize = true;
|
||||
this.timeUpDownVideoPosition.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.timeUpDownVideoPosition.Location = new System.Drawing.Point(86, 192);
|
||||
this.timeUpDownVideoPosition.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.timeUpDownVideoPosition.Name = "timeUpDownVideoPosition";
|
||||
this.timeUpDownVideoPosition.Size = new System.Drawing.Size(92, 25);
|
||||
this.timeUpDownVideoPosition.TabIndex = 12;
|
||||
//
|
||||
// buttonGotoSub
|
||||
//
|
||||
this.buttonGotoSub.Location = new System.Drawing.Point(6, 58);
|
||||
@ -2492,6 +2530,16 @@
|
||||
this.tabPageAdjust.Text = "Adjust";
|
||||
this.tabPageAdjust.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// timeUpDownVideoPositionAdjust
|
||||
//
|
||||
this.timeUpDownVideoPositionAdjust.AutoSize = true;
|
||||
this.timeUpDownVideoPositionAdjust.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.timeUpDownVideoPositionAdjust.Location = new System.Drawing.Point(87, 214);
|
||||
this.timeUpDownVideoPositionAdjust.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.timeUpDownVideoPositionAdjust.Name = "timeUpDownVideoPositionAdjust";
|
||||
this.timeUpDownVideoPositionAdjust.Size = new System.Drawing.Size(92, 25);
|
||||
this.timeUpDownVideoPositionAdjust.TabIndex = 13;
|
||||
//
|
||||
// buttonAdjustSetEndTime
|
||||
//
|
||||
this.buttonAdjustSetEndTime.Location = new System.Drawing.Point(6, 84);
|
||||
@ -3148,6 +3196,16 @@
|
||||
this.buttonUnBreak.UseVisualStyleBackColor = true;
|
||||
this.buttonUnBreak.Click += new System.EventHandler(this.ButtonUnBreakClick);
|
||||
//
|
||||
// timeUpDownStartTime
|
||||
//
|
||||
this.timeUpDownStartTime.AutoSize = true;
|
||||
this.timeUpDownStartTime.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.timeUpDownStartTime.Location = new System.Drawing.Point(9, 27);
|
||||
this.timeUpDownStartTime.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.timeUpDownStartTime.Name = "timeUpDownStartTime";
|
||||
this.timeUpDownStartTime.Size = new System.Drawing.Size(92, 25);
|
||||
this.timeUpDownStartTime.TabIndex = 0;
|
||||
//
|
||||
// buttonUndoListViewChanges
|
||||
//
|
||||
this.buttonUndoListViewChanges.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
@ -3269,6 +3327,31 @@
|
||||
this.labelAutoDuration.TabIndex = 30;
|
||||
this.labelAutoDuration.Text = "Auto";
|
||||
//
|
||||
// SubtitleListview1
|
||||
//
|
||||
this.SubtitleListview1.AllowDrop = true;
|
||||
this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.SubtitleListview1.ContextMenuStrip = this.contextMenuStripListview;
|
||||
this.SubtitleListview1.FirstVisibleIndex = -1;
|
||||
this.SubtitleListview1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.SubtitleListview1.FullRowSelect = true;
|
||||
this.SubtitleListview1.GridLines = true;
|
||||
this.SubtitleListview1.HideSelection = false;
|
||||
this.SubtitleListview1.Location = new System.Drawing.Point(1, 3);
|
||||
this.SubtitleListview1.Name = "SubtitleListview1";
|
||||
this.SubtitleListview1.Size = new System.Drawing.Size(932, 148);
|
||||
this.SubtitleListview1.SmallImageList = this.imageList1;
|
||||
this.SubtitleListview1.TabIndex = 0;
|
||||
this.SubtitleListview1.UseCompatibleStateImageBehavior = false;
|
||||
this.SubtitleListview1.View = System.Windows.Forms.View.Details;
|
||||
this.SubtitleListview1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListview1_SelectedIndexChanged);
|
||||
this.SubtitleListview1.DragDrop += new System.Windows.Forms.DragEventHandler(this.SubtitleListview1_DragDrop);
|
||||
this.SubtitleListview1.DragEnter += new System.Windows.Forms.DragEventHandler(this.SubtitleListview1_DragEnter);
|
||||
this.SubtitleListview1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SubtitleListview1_KeyDown);
|
||||
this.SubtitleListview1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SubtitleListview1_MouseDoubleClick);
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.textBoxSource);
|
||||
@ -3313,62 +3396,6 @@
|
||||
this.panelVideoPlayer.Size = new System.Drawing.Size(282, 278);
|
||||
this.panelVideoPlayer.TabIndex = 5;
|
||||
//
|
||||
// contextMenuStripEmpty
|
||||
//
|
||||
this.contextMenuStripEmpty.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.insertLineToolStripMenuItem});
|
||||
this.contextMenuStripEmpty.Name = "contextMenuStripEmpty";
|
||||
this.contextMenuStripEmpty.Size = new System.Drawing.Size(126, 26);
|
||||
//
|
||||
// insertLineToolStripMenuItem
|
||||
//
|
||||
this.insertLineToolStripMenuItem.Name = "insertLineToolStripMenuItem";
|
||||
this.insertLineToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
|
||||
this.insertLineToolStripMenuItem.Text = "Insert line";
|
||||
this.insertLineToolStripMenuItem.Click += new System.EventHandler(this.insertLineToolStripMenuItem_Click);
|
||||
//
|
||||
// imageListPlayRate
|
||||
//
|
||||
this.imageListPlayRate.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListPlayRate.ImageStream")));
|
||||
this.imageListPlayRate.TransparentColor = System.Drawing.Color.Transparent;
|
||||
this.imageListPlayRate.Images.SetKeyName(0, "FastForward.png");
|
||||
this.imageListPlayRate.Images.SetKeyName(1, "FastForwardHighLight.png");
|
||||
//
|
||||
// timeUpDownStartTime
|
||||
//
|
||||
this.timeUpDownStartTime.AutoSize = true;
|
||||
this.timeUpDownStartTime.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.timeUpDownStartTime.Location = new System.Drawing.Point(9, 27);
|
||||
this.timeUpDownStartTime.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.timeUpDownStartTime.Name = "timeUpDownStartTime";
|
||||
this.timeUpDownStartTime.Size = new System.Drawing.Size(92, 25);
|
||||
this.timeUpDownStartTime.TabIndex = 0;
|
||||
//
|
||||
// SubtitleListview1
|
||||
//
|
||||
this.SubtitleListview1.AllowDrop = true;
|
||||
this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.SubtitleListview1.ContextMenuStrip = this.contextMenuStripListview;
|
||||
this.SubtitleListview1.FirstVisibleIndex = -1;
|
||||
this.SubtitleListview1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.SubtitleListview1.FullRowSelect = true;
|
||||
this.SubtitleListview1.GridLines = true;
|
||||
this.SubtitleListview1.HideSelection = false;
|
||||
this.SubtitleListview1.Location = new System.Drawing.Point(1, 3);
|
||||
this.SubtitleListview1.Name = "SubtitleListview1";
|
||||
this.SubtitleListview1.Size = new System.Drawing.Size(932, 148);
|
||||
this.SubtitleListview1.SmallImageList = this.imageList1;
|
||||
this.SubtitleListview1.TabIndex = 0;
|
||||
this.SubtitleListview1.UseCompatibleStateImageBehavior = false;
|
||||
this.SubtitleListview1.View = System.Windows.Forms.View.Details;
|
||||
this.SubtitleListview1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListview1_SelectedIndexChanged);
|
||||
this.SubtitleListview1.DragDrop += new System.Windows.Forms.DragEventHandler(this.SubtitleListview1_DragDrop);
|
||||
this.SubtitleListview1.DragEnter += new System.Windows.Forms.DragEventHandler(this.SubtitleListview1_DragEnter);
|
||||
this.SubtitleListview1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SubtitleListview1_KeyDown);
|
||||
this.SubtitleListview1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.SubtitleListview1_MouseDoubleClick);
|
||||
//
|
||||
// mediaPlayer
|
||||
//
|
||||
this.mediaPlayer.AllowDrop = true;
|
||||
@ -3389,53 +3416,26 @@
|
||||
this.mediaPlayer.DragDrop += new System.Windows.Forms.DragEventHandler(this.mediaPlayer_DragDrop);
|
||||
this.mediaPlayer.DragEnter += new System.Windows.Forms.DragEventHandler(this.mediaPlayer_DragEnter);
|
||||
//
|
||||
// AudioWaveForm
|
||||
// contextMenuStripEmpty
|
||||
//
|
||||
this.AudioWaveForm.AllowDrop = true;
|
||||
this.AudioWaveForm.AllowNewSelection = true;
|
||||
this.AudioWaveForm.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.AudioWaveForm.BackColor = System.Drawing.Color.Black;
|
||||
this.AudioWaveForm.BackgroundColor = System.Drawing.Color.Black;
|
||||
this.AudioWaveForm.Color = System.Drawing.Color.GreenYellow;
|
||||
this.AudioWaveForm.DrawGridLines = true;
|
||||
this.AudioWaveForm.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(18)))));
|
||||
this.AudioWaveForm.Location = new System.Drawing.Point(472, 32);
|
||||
this.AudioWaveForm.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.AudioWaveForm.Name = "AudioWaveForm";
|
||||
this.AudioWaveForm.NewSelectionParagraph = null;
|
||||
this.AudioWaveForm.SelectedColor = System.Drawing.Color.Red;
|
||||
this.AudioWaveForm.Size = new System.Drawing.Size(768, 229);
|
||||
this.AudioWaveForm.StartPositionSeconds = 0D;
|
||||
this.AudioWaveForm.TabIndex = 6;
|
||||
this.AudioWaveForm.TextColor = System.Drawing.Color.Gray;
|
||||
this.AudioWaveForm.WaveFormNotLoadedText = "Click to add wave form";
|
||||
this.AudioWaveForm.WavePeaks = null;
|
||||
this.AudioWaveForm.ZoomFactor = 1D;
|
||||
this.AudioWaveForm.Click += new System.EventHandler(this.AudioWaveForm_Click);
|
||||
this.AudioWaveForm.DragDrop += new System.Windows.Forms.DragEventHandler(this.AudioWaveForm_DragDrop);
|
||||
this.AudioWaveForm.DragEnter += new System.Windows.Forms.DragEventHandler(this.AudioWaveForm_DragEnter);
|
||||
this.contextMenuStripEmpty.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.insertLineToolStripMenuItem});
|
||||
this.contextMenuStripEmpty.Name = "contextMenuStripEmpty";
|
||||
this.contextMenuStripEmpty.Size = new System.Drawing.Size(126, 26);
|
||||
//
|
||||
// timeUpDownVideoPosition
|
||||
// insertLineToolStripMenuItem
|
||||
//
|
||||
this.timeUpDownVideoPosition.AutoSize = true;
|
||||
this.timeUpDownVideoPosition.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.timeUpDownVideoPosition.Location = new System.Drawing.Point(86, 192);
|
||||
this.timeUpDownVideoPosition.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.timeUpDownVideoPosition.Name = "timeUpDownVideoPosition";
|
||||
this.timeUpDownVideoPosition.Size = new System.Drawing.Size(92, 25);
|
||||
this.timeUpDownVideoPosition.TabIndex = 12;
|
||||
this.insertLineToolStripMenuItem.Name = "insertLineToolStripMenuItem";
|
||||
this.insertLineToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
|
||||
this.insertLineToolStripMenuItem.Text = "Insert line";
|
||||
this.insertLineToolStripMenuItem.Click += new System.EventHandler(this.insertLineToolStripMenuItem_Click);
|
||||
//
|
||||
// timeUpDownVideoPositionAdjust
|
||||
// imageListPlayRate
|
||||
//
|
||||
this.timeUpDownVideoPositionAdjust.AutoSize = true;
|
||||
this.timeUpDownVideoPositionAdjust.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.timeUpDownVideoPositionAdjust.Location = new System.Drawing.Point(87, 214);
|
||||
this.timeUpDownVideoPositionAdjust.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.timeUpDownVideoPositionAdjust.Name = "timeUpDownVideoPositionAdjust";
|
||||
this.timeUpDownVideoPositionAdjust.Size = new System.Drawing.Size(92, 25);
|
||||
this.timeUpDownVideoPositionAdjust.TabIndex = 13;
|
||||
this.imageListPlayRate.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListPlayRate.ImageStream")));
|
||||
this.imageListPlayRate.TransparentColor = System.Drawing.Color.Transparent;
|
||||
this.imageListPlayRate.Images.SetKeyName(0, "FastForward.png");
|
||||
this.imageListPlayRate.Images.SetKeyName(1, "FastForwardHighLight.png");
|
||||
//
|
||||
// Main
|
||||
//
|
||||
|
@ -6302,33 +6302,11 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
Configuration.Settings.Language = new Language(); // default is en-US
|
||||
}
|
||||
else if (cultureName == "Language.xml")
|
||||
{
|
||||
var reader = new StreamReader(Configuration.BaseDirectory + cultureName);
|
||||
Configuration.Settings.Language = Language.Load(reader);
|
||||
reader.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
|
||||
|
||||
Stream strm = asm.GetManifestResourceStream("Nikse.SubtitleEdit.Resources." + cultureName + ".xml.zip");
|
||||
if (strm != null)
|
||||
{
|
||||
var rdr = new StreamReader(strm);
|
||||
Configuration.Settings.Language = Language.LoadAndDecompress(rdr);
|
||||
rdr.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
strm = asm.GetManifestResourceStream("Nikse.SubtitleEdit.Resources." + cultureName + ".xml");
|
||||
if (strm != null)
|
||||
{
|
||||
var reader = new StreamReader(strm);
|
||||
Configuration.Settings.Language = Language.Load(reader);
|
||||
reader.Close();
|
||||
}
|
||||
}
|
||||
var reader = new System.IO.StreamReader(Path.Combine(Configuration.DataDirectory, "Languages") + Path.DirectorySeparatorChar + cultureName + ".xml");
|
||||
Configuration.Settings.Language = Language.Load(reader);
|
||||
reader.Close();
|
||||
}
|
||||
Configuration.Settings.General.Language = cultureName;
|
||||
_languageGeneral = Configuration.Settings.Language.General;
|
||||
|
@ -577,9 +577,6 @@
|
||||
<metadata name="toolStripWaveControls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>208, 56</value>
|
||||
</metadata>
|
||||
<metadata name="toolStripWaveControls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>208, 56</value>
|
||||
</metadata>
|
||||
<data name="toolStripButtonWaveFormZoomOut.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
@ -687,7 +684,7 @@
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD2
|
||||
CAAAAk1TRnQBSQFMAgEBAgEAAcgBBQHIAQUBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||
CAAAAk1TRnQBSQFMAgEBAgEAAdgBBQHYAQUBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
|
||||
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
|
||||
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
||||
|
1159
src/Languages/bg-BG.xml
Normal file
1159
src/Languages/bg-BG.xml
Normal file
File diff suppressed because it is too large
Load Diff
1159
src/Languages/cs-CZ.xml
Normal file
1159
src/Languages/cs-CZ.xml
Normal file
File diff suppressed because it is too large
Load Diff
1161
src/Languages/da-DK.xml
Normal file
1161
src/Languages/da-DK.xml
Normal file
File diff suppressed because it is too large
Load Diff
1163
src/Languages/es-ES.xml
Normal file
1163
src/Languages/es-ES.xml
Normal file
File diff suppressed because it is too large
Load Diff
1195
src/Languages/eu-ES.xml
Normal file
1195
src/Languages/eu-ES.xml
Normal file
File diff suppressed because it is too large
Load Diff
1157
src/Languages/fr-FR.xml
Normal file
1157
src/Languages/fr-FR.xml
Normal file
File diff suppressed because it is too large
Load Diff
1152
src/Languages/hu-HU.xml
Normal file
1152
src/Languages/hu-HU.xml
Normal file
File diff suppressed because it is too large
Load Diff
1158
src/Languages/it-IT.xml
Normal file
1158
src/Languages/it-IT.xml
Normal file
File diff suppressed because it is too large
Load Diff
1159
src/Languages/ja-JP.xml
Normal file
1159
src/Languages/ja-JP.xml
Normal file
File diff suppressed because it is too large
Load Diff
1160
src/Languages/pl-PL.xml
Normal file
1160
src/Languages/pl-PL.xml
Normal file
File diff suppressed because it is too large
Load Diff
1157
src/Languages/ro-RO.xml
Normal file
1157
src/Languages/ro-RO.xml
Normal file
File diff suppressed because it is too large
Load Diff
1159
src/Languages/sr-Cyrl-CS.xml
Normal file
1159
src/Languages/sr-Cyrl-CS.xml
Normal file
File diff suppressed because it is too large
Load Diff
1166
src/Languages/sr-Latn-CS.xml
Normal file
1166
src/Languages/sr-Latn-CS.xml
Normal file
File diff suppressed because it is too large
Load Diff
1160
src/Languages/sv-SE.xml
Normal file
1160
src/Languages/sv-SE.xml
Normal file
File diff suppressed because it is too large
Load Diff
1155
src/Languages/zh-CHS.xml
Normal file
1155
src/Languages/zh-CHS.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -844,28 +844,7 @@
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="Resources\bg-BG.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\cs-CZ.xml.zip" />
|
||||
<None Include="Resources\da-DK.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<EmbeddedResource Include="Resources\fr-FR.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\OpenOfficeDictionaries.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\it-IT.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\hu-HU.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\ja-JP.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\eu-ES.xml.zip" />
|
||||
<None Include="Resources\pl-PL.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<EmbeddedResource Include="Resources\da-DK.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\es-ES.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\pl-PL.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\ro-RO.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\sr-Cyrl-CS.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\sr-Latn-CS.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\sv-SE.xml.zip" />
|
||||
<EmbeddedResource Include="Resources\zh-CHS.xml.zip" />
|
||||
<None Include="Resources\OpenOfficeDictionaries.xml.zip" />
|
||||
<None Include="Web References\MicrosoftTranslationService\GetTranslationsResponse.datasource">
|
||||
<DependentUpon>Reference.map</DependentUpon>
|
||||
</None>
|
||||
@ -906,14 +885,51 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Resources\bg-BG.xml" />
|
||||
<Content Include="Resources\cs-CZ.xml" />
|
||||
<Content Include="Resources\eu-ES.xml" />
|
||||
<Content Include="Resources\fa-IR.xml">
|
||||
<SubType>Designer</SubType>
|
||||
<Content Include="Languages\bg-BG.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\cs-CZ.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\da-DK.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\es-ES.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\eu-ES.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\fr-FR.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\hu-HU.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\it-IT.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\ja-JP.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\pl-PL.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\ro-RO.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\sr-Cyrl-CS.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\sr-Latn-CS.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\sv-SE.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Languages\zh-CHS.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Resources\ja-JP.xml" />
|
||||
<Content Include="Resources\zh-CHS.xml" />
|
||||
<None Include="Web References\SeNetworkService\SeService.disco" />
|
||||
<None Include="DLLs\Interop.QuartzTypeLib.dll" />
|
||||
<None Include="DLLs\NHunspell.dll" />
|
||||
@ -963,9 +979,6 @@
|
||||
<DependentUpon>VobSubEditCharacters.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<None Include="Resources\it-IT.xml" />
|
||||
<None Include="Resources\es-ES.xml" />
|
||||
<None Include="Resources\nl-NL.xml" />
|
||||
<None Include="Icons\Donate.gif" />
|
||||
<None Include="Icons\connect.png" />
|
||||
<Content Include="Icons\Find.png">
|
||||
@ -1004,21 +1017,9 @@
|
||||
<Content Include="Icons\WaveFormToogle.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Resources\hu-HU.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Resources\OpenOfficeDictionaries.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Resources\fr-FR.xml" />
|
||||
<Content Include="Resources\ro-RO.xml" />
|
||||
<Content Include="Resources\sr-Cyrl-CS.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Resources\sr-Latn-CS.xml" />
|
||||
<Content Include="Resources\sv-SE.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Icons\SE.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user