From 6f7b0386cdb80e0f505074e2e9dcf4087e5b12e8 Mon Sep 17 00:00:00 2001 From: Tichau Date: Tue, 27 Oct 2015 08:05:21 +0100 Subject: [PATCH] Fixed: output filename label doesn't display underscores --- .../Properties/Resources.Designer.cs | 16 ++++++++++++++++ .../FileConverter/Properties/Resources.en.resx | 10 ++++++++++ .../FileConverter/Properties/Resources.resx | 10 ++++++++++ .../ValueConverters/FileNameConverter.cs | 1 + .../FileConverter/Windows/SettingsWindow.xaml | 16 ++++++++-------- 5 files changed, 45 insertions(+), 8 deletions(-) diff --git a/Application/FileConverter/Properties/Resources.Designer.cs b/Application/FileConverter/Properties/Resources.Designer.cs index a47c80d..834f23e 100644 --- a/Application/FileConverter/Properties/Resources.Designer.cs +++ b/Application/FileConverter/Properties/Resources.Designer.cs @@ -68,5 +68,21 @@ namespace FileConverter.Properties { return ResourceManager.GetString("OuputFileNameTemplateSample", resourceCulture); } } + + /// + /// Looks up a localized string similar to (p): input file path + ///(f): input filename + ///(o): output extension type + ///(i): input extension type + ///(d0): input parent folder + ///(d1): input sub parent folder + ///... + ///use maj for uppercase version. + /// + public static string OutputFilePathTemplateHelp { + get { + return ResourceManager.GetString("OutputFilePathTemplateHelp", resourceCulture); + } + } } } diff --git a/Application/FileConverter/Properties/Resources.en.resx b/Application/FileConverter/Properties/Resources.en.resx index 98819aa..fea3e6a 100644 --- a/Application/FileConverter/Properties/Resources.en.resx +++ b/Application/FileConverter/Properties/Resources.en.resx @@ -120,4 +120,14 @@ C:\Data\MyFolder\SomeMusic.wav + + (p): input file path +(f): input filename +(o): output extension type +(i): input extension type +(d0): input parent folder +(d1): input sub parent folder +... +use maj for uppercase version + \ No newline at end of file diff --git a/Application/FileConverter/Properties/Resources.resx b/Application/FileConverter/Properties/Resources.resx index 3cc1e96..d590496 100644 --- a/Application/FileConverter/Properties/Resources.resx +++ b/Application/FileConverter/Properties/Resources.resx @@ -120,4 +120,14 @@ C:\Data\MyFolder\Default.wav + + (p): input file path +(f): input filename +(o): output extension type +(i): input extension type +(d0): input parent folder +(d1): input sub parent folder +... +use maj for uppercase version + \ No newline at end of file diff --git a/Application/FileConverter/ValueConverters/FileNameConverter.cs b/Application/FileConverter/ValueConverters/FileNameConverter.cs index 41e560a..0d3bdcb 100644 --- a/Application/FileConverter/ValueConverters/FileNameConverter.cs +++ b/Application/FileConverter/ValueConverters/FileNameConverter.cs @@ -65,6 +65,7 @@ namespace FileConverter.ValueConverters for (int index = 0; index < directories.Length; index++) { outputPath = outputPath.Replace(string.Format("(d{0})", directories.Length - index - 1), directories[index]); + outputPath = outputPath.Replace(string.Format("(D{0})", directories.Length - index - 1), directories[index].ToUpperInvariant()); } outputPath += "." + outputExtension; diff --git a/Application/FileConverter/Windows/SettingsWindow.xaml b/Application/FileConverter/Windows/SettingsWindow.xaml index c074451..8785186 100644 --- a/Application/FileConverter/Windows/SettingsWindow.xaml +++ b/Application/FileConverter/Windows/SettingsWindow.xaml @@ -206,19 +206,19 @@