diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-11 12:29:23 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-11 12:29:23 +0000 |
commit | 1b9b1f3b4eece09a4d6679ef862bde9a31d26fe5 (patch) | |
tree | ecc18537e632cd0f5a5a049a2df98395f5734d1a /tools/Langpack Suite/Form1.cs | |
parent | b3a66de957b57ab9f7ab8edc8d8b02bb4261e491 (diff) |
fix for including dbchecker in langpack
git-svn-id: http://svn.miranda-ng.org/main/trunk@2287 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/Langpack Suite/Form1.cs')
-rw-r--r-- | tools/Langpack Suite/Form1.cs | 62 |
1 files changed, 58 insertions, 4 deletions
diff --git a/tools/Langpack Suite/Form1.cs b/tools/Langpack Suite/Form1.cs index 99c9979c42..2a71eacc6c 100644 --- a/tools/Langpack Suite/Form1.cs +++ b/tools/Langpack Suite/Form1.cs @@ -233,10 +233,30 @@ namespace Langpack_Suite s = ReadFile.ReadLine().Trim();
while (s != "")
{
- if (s.StartsWith("¤") || s.StartsWith(" ") || s.Contains(".dll"))
+ if (s.StartsWith(" ") || s.Contains(".dll"))
{
int l = s.IndexOf(".");
- if (s.StartsWith("¤") || s.StartsWith(" "))
+ if (s.StartsWith(" "))
+ s = s.Substring(2, l - 2);
+ else
+ s = s.Substring(0, l);
+ if (InclPlug == "Plugins-included: ")
+ InclPlug = InclPlug + s;
+ else
+ InclPlug = InclPlug + ", " + s;
+ }
+ s = ReadFile.ReadLine().Trim();
+ }
+ }
+ if (s.StartsWith("Unloadable Plugins"))
+ {
+ s = ReadFile.ReadLine().Trim();
+ while (s != "")
+ {
+ if (s.StartsWith(" ") || s.Contains("DbChecker.dll"))
+ {
+ int l = s.IndexOf(".");
+ if (s.StartsWith(" "))
s = s.Substring(2, l - 2);
else
s = s.Substring(0, l);
@@ -328,11 +348,11 @@ namespace Langpack_Suite while (s != "")
{
StreamReader plug_in;
- if (s.StartsWith("¤") || s.StartsWith(" ") || s.Contains(".dll"))
+ if (s.StartsWith(" ") || s.Contains(".dll"))
{
string back_s = s;
int l = s.IndexOf(".");
- if (s.StartsWith("¤") || s.StartsWith(" "))
+ if (s.StartsWith(" "))
s = s.Substring(2, l - 2);
else
s = s.Substring(0, l);
@@ -411,6 +431,40 @@ namespace Langpack_Suite }
s = ReadFile.ReadLine().Trim();
}
+ }
+ if (s.StartsWith("Unloadable Plugins"))
+ {
+ s = ReadFile.ReadLine().Trim();
+ while (s != "")
+ {
+ StreamReader plug_in;
+ if (s.StartsWith(" ") || s.Contains(".dll"))
+ {
+ string back_s = s;
+ int l = s.IndexOf(".");
+ if (s.StartsWith(" "))
+ s = s.Substring(2, l - 2);
+ else
+ s = s.Substring(0, l);
+ LangPack.WriteLine("");
+ if (File.Exists(FolderName + "\\plugins\\" + s + ".txt"))
+ {
+ plug_in = new StreamReader(FolderName + "\\plugins\\" + s + ".txt");
+ while ((st = plug_in.ReadLine()) != null)
+ {
+ LangPack.WriteLine(st);
+ }
+ plug_in.Close();
+ }
+ else
+ {
+ LocaleText = rm.GetString("FileText", culture);
+ string LocaleText2 = rm.GetString("File2NotFound", culture);
+ InfMessageLangBox.Text = InfMessageLangBox.Text + LocaleText + s + LocaleText2 + "\r\n";
+ }
+ }
+ s = ReadFile.ReadLine().Trim();
+ }
break;
}
}
|