From 600781b4dc366cb280e3af183ff40c1c635baf1a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 13 Jan 2013 18:07:13 +0000 Subject: 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 --- tools/Langpack Suite/Form1.cs | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'tools') 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; } -- cgit v1.2.3