Merge pull request #541 from ivandrofly/fix/patch-11

More minor fixes
This commit is contained in:
Nikolaj Olsson 2015-02-18 09:04:08 +01:00
commit 358400097f
3 changed files with 10 additions and 11 deletions

View File

@ -43,10 +43,9 @@ namespace Nikse.SubtitleEdit.Forms
{
return;
}
try
{
var ci = new CultureInfo(languageString.Replace("_", "-"));
var ci = new CultureInfo(languageString.Replace('_', '-'));
_threeLetterIsoLanguageName = ci.ThreeLetterISOLanguageName;
}
catch (CultureNotFoundException exception)

View File

@ -71,7 +71,7 @@ namespace Nikse.SubtitleEdit.Forms
internal void Initialize(string hunspellName, string text)
{
if (!string.IsNullOrEmpty(text))
textBoxAddName.Text = text.Trim().TrimEnd('.').TrimEnd('!').TrimEnd('?');
textBoxAddName.Text = text.Trim().TrimEnd('.', '!', '?');
comboBoxDictionaries.Items.Clear();
foreach (string name in Utilities.GetDictionaryLanguages())

View File

@ -11,15 +11,15 @@ namespace Nikse.SubtitleEdit.Forms
{
InitializeComponent();
comboBoxFrameRateFrom.Items.Add((23.976).ToString());
comboBoxFrameRateFrom.Items.Add((24.0).ToString());
comboBoxFrameRateFrom.Items.Add((25.0).ToString());
comboBoxFrameRateFrom.Items.Add((29.97).ToString());
comboBoxFrameRateFrom.Items.Add(23.976);
comboBoxFrameRateFrom.Items.Add(24.0);
comboBoxFrameRateFrom.Items.Add(25.0);
comboBoxFrameRateFrom.Items.Add(29.97);
comboBoxFrameRateTo.Items.Add((23.976).ToString());
comboBoxFrameRateTo.Items.Add((24.0).ToString());
comboBoxFrameRateTo.Items.Add((25.0).ToString());
comboBoxFrameRateTo.Items.Add((29.97).ToString());
comboBoxFrameRateTo.Items.Add(23.976);
comboBoxFrameRateTo.Items.Add(24.0);
comboBoxFrameRateTo.Items.Add(25.0);
comboBoxFrameRateTo.Items.Add(29.97);
LanguageStructure.ChangeFrameRate language = Configuration.Settings.Language.ChangeFrameRate;
Text = language.Title;