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 @@