From 0d75a08d68245495b18d2ac2d2d123c49fcf4687 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky <mataes2007@gmail.com> Date: Sun, 6 Jan 2013 09:25:39 +0000 Subject: more correct fix git-svn-id: http://svn.miranda-ng.org/main/trunk@2986 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- tools/Langpack Suite/Form1.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/Langpack Suite') diff --git a/tools/Langpack Suite/Form1.cs b/tools/Langpack Suite/Form1.cs index ab64f79a9f..e0c9baa2e8 100644 --- a/tools/Langpack Suite/Form1.cs +++ b/tools/Langpack Suite/Form1.cs @@ -19,7 +19,7 @@ namespace Langpack_Suite private CultureInfo culture; public FolderBrowserDialog LangpackFolder; public String[] arguments; - public bool vitype, quiet = false; + public bool vitype, quiet = false, outfile = false; public string output = ""; Searcher search; ToolTip tipper; @@ -77,6 +77,7 @@ namespace Langpack_Suite if (key.Equals("\\l")) { output = arguments[i].Substring(2); + outfile = true; } if (key.Equals("\\p")) { @@ -189,7 +190,8 @@ namespace Langpack_Suite InfMessageLangBox.Text = LocaleText + "\r\n"; FolderName = Directory.GetParent(Directory.GetCurrentDirectory()).ToString() + "\\" + LangpacksComboBox.Text; - output = FolderName + "\\" + LangpackNameEdit.Text + ".txt"; + if (!outfile) + output = FolderName + "\\" + LangpackNameEdit.Text + ".txt"; if (File.Exists(output)) File.Delete(output); -- cgit v1.2.3