diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-01-06 09:25:39 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-01-06 09:25:39 +0000 |
commit | 0d75a08d68245495b18d2ac2d2d123c49fcf4687 (patch) | |
tree | c73ef667450a0668c847b9eee4d51b47e1b1dbd8 /tools/Langpack Suite/Form1.cs | |
parent | 01093811362df3064bd5043c180ca848fea12218 (diff) |
more correct fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@2986 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/Langpack Suite/Form1.cs')
-rw-r--r-- | tools/Langpack Suite/Form1.cs | 6 |
1 files changed, 4 insertions, 2 deletions
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);
|