Replace hardcoded text by localization keys

This commit is contained in:
Tichau committed 2016-07-25 08:35:01 +02:00
1 parent 9a369be509
commit ee1ff06637
6 files changed
+581 -348

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -422,7 +422,7 @@ use maj for uppercase version</value>
<value>Video</value>
</data>
<data name="ExitWaitingDuration" xml:space="preserve">
<value>Waiting duration</value>
<value>Waiting duration before application exit</value>
</data>
<data name="Language" xml:space="preserve">
<value>Language</value>
@@ -430,4 +430,13 @@ use maj for uppercase version</value>
<data name="MaximumNumberOfSimultaneousConversions" xml:space="preserve">
<value>Maximum number of simultaneous conversions</value>
</data>
<data name="DefaultPresetName" xml:space="preserve">
<value>New preset</value>
</data>
<data name="DownloadingChangeLog" xml:space="preserve">
<value>###Downloading change log ...</value>
</data>
<data name="LicenceHeader" xml:space="preserve">
<value>**This program is free software**.\n You can redistribute it and/or modify it under the terms of the GNU General Public License.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. See the GNU General Public License (available in the installation folder: `LICENSE.md`) for more details.\n\n</value>
</data>
</root>
@@ -422,7 +422,7 @@ use maj for uppercase version</value>
<value>Video</value>
</data>
<data name="ExitWaitingDuration" xml:space="preserve">
<value>Waiting duration</value>
<value>Waiting duration before application exit</value>
</data>
<data name="Language" xml:space="preserve">
<value>Language</value>
@@ -430,4 +430,13 @@ use maj for uppercase version</value>
<data name="MaximumNumberOfSimultaneousConversions" xml:space="preserve">
<value>Maximum number of simultaneous conversions</value>
</data>
<data name="DefaultPresetName" xml:space="preserve">
<value>New preset</value>
</data>
<data name="DownloadingChangeLog" xml:space="preserve">
<value>###Downloading change log ...</value>
</data>
<data name="LicenceHeader" xml:space="preserve">
<value>**This program is free software**.\n You can redistribute it and/or modify it under the terms of the GNU General Public License.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. See the GNU General Public License (available in the installation folder: `LICENSE.md`) for more details.\n\n</value>
</data>
</root>
@@ -1,13 +1,12 @@
// <copyright file="BitrateToString.cs" company="AAllard">License: http://www.gnu.org/licenses/gpl.html GPL version 3.</copyright>
using System.Linq;
using FileConverter.Windows;
namespace FileConverter.ValueConverters
{
using System;
using System.Globalization;
using System.Windows.Data;
using System.Linq;
using FileConverter.Windows;
public class OutputTypeEnumToViewModel : IValueConverter
{
@@ -896,30 +896,6 @@
<Label Grid.Row="4" Grid.Column="0" Content="{x:Static project:Resources.AutomaticallyCheckForUpdates}" HorizontalAlignment="Right" Margin="0,0,5,0"/>
<CheckBox Grid.Row="4" Grid.Column="1" IsChecked="{Binding ApplicationSettings.CheckUpgradeAtStartup, ElementName=window, Mode=TwoWay}" Margin="0,5,0,5" />
</Grid>
<!--<StackPanel Margin="5,10,5,5">
<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
<Label Content="Language :"/>
<ComboBox ItemsSource="{Binding SupportedCultures, ElementName=window, Mode=OneTime}"
SelectedValue="{Binding ApplicationSettings.ApplicationLanguage, ElementName=window, Mode=TwoWay}">
<ComboBox.ItemTemplate>
<DataTemplate>
<ContentPresenter Content="{Binding Converter={StaticResource CultureInfoToString}}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
<Slider Width="200"/>
<CheckBox x:Name="QuitAtEndCheckBox" Content="{x:Static project:Resources.AutomaticallyExitWhenAllConversionsFinished}" IsChecked="{Binding ApplicationSettings.ExitApplicationWhenConversionsFinished, ElementName=window, Mode=TwoWay}" Margin="0,0,0,5" />
<DockPanel Margin="40,0,0,5" Visibility="{Binding IsChecked, Converter={StaticResource BoolToVisibility}, ConverterParameter=Collapsed, ElementName=QuitAtEndCheckBox}">
<Label Content="Waiting duration :"/>
<Slider x:Name="DurationBeforeQuitSlider" Value="{Binding ApplicationSettings.DurationBetweenEndOfConversionsAndApplicationExit, ElementName=window, Mode=TwoWay}" Minimum="0" Maximum="10" SmallChange="0.1" IsSnapToTickEnabled="True" Width="250" TickFrequency="0.1"/>
<Label Content="{Binding Value, Converter={StaticResource DoubleToTimeString}, ElementName=DurationBeforeQuitSlider}"/>
</DockPanel>
<CheckBox Content="{x:Static project:Resources.AutomaticallyCheckForUpdates}" IsChecked="{Binding ApplicationSettings.CheckUpgradeAtStartup, ElementName=window, Mode=TwoWay}" />
</StackPanel>-->
</TabItem>
<!-- About -->
@@ -192,7 +192,7 @@ namespace FileConverter
{
get
{
return "**This program is free software**.\n You can redistribute it and/or modify it under the terms of the GNU General Public License.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. See the GNU General Public License (available in the installation folder: `LICENSE.md`) for more details.\n\n" + this.releaseNoteContent;
return Properties.Resources.LicenceHeader + this.releaseNoteContent;
}
set
@@ -229,7 +229,7 @@ namespace FileConverter
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
Upgrade.Helpers.GetChangeLogAsync(new UpgradeVersionDescription(), this.OnChangeLogRetrieved);
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
this.AboutSectionContent = "###Downloading change log ...";
this.AboutSectionContent = Properties.Resources.DownloadingChangeLog;
this.DisplaySeeChangeLogLink = false;
}
@@ -242,7 +242,7 @@ namespace FileConverter
{
if (e.PropertyName == "OutputType")
{
this.OnPropertyChanged("InputCategories");
this.OnPropertyChanged(nameof(this.InputCategories));
}
}
@@ -343,12 +343,12 @@ namespace FileConverter
private void AddPresetButton_Click(object sender, RoutedEventArgs e)
{
Application application = Application.Current as Application;
string presetName = "New preset";
string presetName = Properties.Resources.DefaultPresetName;
int index = 1;
while (application.Settings.ConversionPresets.Any(match => match.Name == presetName))
{
index++;
presetName = string.Format("New preset ({0})", index);
presetName = $"{Properties.Resources.DefaultPresetName} ({index})";
}
ConversionPreset newPreset = null;