summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-01-13 18:07:13 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-01-13 18:07:13 +0000
commit600781b4dc366cb280e3af183ff40c1c635baf1a (patch)
tree6701ae9513d493c9b517132b8bf79db520775ca8 /tools
parent150f125a35021a95e785c15b4d7b10693fe38031 (diff)
fixed generation: empty folders and files not needed any more
git-svn-id: http://svn.miranda-ng.org/main/trunk@3098 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools')
-rw-r--r--tools/Langpack Suite/Form1.cs23
1 files changed, 14 insertions, 9 deletions
diff --git a/tools/Langpack Suite/Form1.cs b/tools/Langpack Suite/Form1.cs
index 0c718179bf..dd2272aebd 100644
--- a/tools/Langpack Suite/Form1.cs
+++ b/tools/Langpack Suite/Form1.cs
@@ -575,9 +575,6 @@ namespace Langpack_Suite
{
LocaleText = rm.GetString("DupesNotFound", culture);
InfMessageLangBox.Text = InfMessageLangBox.Text + LocaleText + "\r\n";
- LocaleText = rm.GetString("GenStop", culture);
- InfMessageLangBox.Text = InfMessageLangBox.Text + LocaleText;
- return;
}
DirectoryInfo PluginsDir = new DirectoryInfo(FolderName + "\\Plugins");
@@ -595,15 +592,23 @@ namespace Langpack_Suite
ReadFile.Close();
DirectoryInfo WeatherDir = new DirectoryInfo(FolderName + "\\Weather");
- foreach (FileInfo wi in WeatherDir.GetFiles())
+ if (Directory.Exists(WeatherDir.ToString()))
{
- LangPack.WriteLine("");
- ReadFile = new StreamReader(wi.FullName);
- while ((s = ReadFile.ReadLine()) != null)
+ foreach (FileInfo wi in WeatherDir.GetFiles())
{
- LangPack.WriteLine(s);
+ LangPack.WriteLine("");
+ ReadFile = new StreamReader(wi.FullName);
+ while ((s = ReadFile.ReadLine()) != null)
+ {
+ LangPack.WriteLine(s);
+ }
+ ReadFile.Close();
}
- ReadFile.Close();
+ }
+ else
+ {
+ LocaleText = rm.GetString("WeatherLinkNotFound", culture);
+ InfMessageLangBox.Text = InfMessageLangBox.Text + LocaleText + "\r\n";
}
continue;
}