diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-07-17 13:09:58 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-07-17 13:09:58 +0000 |
commit | bcfe53b305e7348e126e7756b94c61fff16f6f67 (patch) | |
tree | c5651f21c09928c1d98a204526e80dd005fff0a5 /tools/langpackmgr/Unit1.pas | |
parent | 76c0c4aa6a34e6d9299ba6a7cf6b9db428fde619 (diff) |
- langpacks/belarusian: updated (by Jebifor)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5397 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/langpackmgr/Unit1.pas')
-rw-r--r-- | tools/langpackmgr/Unit1.pas | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tools/langpackmgr/Unit1.pas b/tools/langpackmgr/Unit1.pas index 0d077710b6..eea9890b32 100644 --- a/tools/langpackmgr/Unit1.pas +++ b/tools/langpackmgr/Unit1.pas @@ -84,6 +84,7 @@ end; procedure TForm1.Button2Click(Sender: TObject);
begin
refresh;
+memo2.Lines.Clear;
assignfile(translate,opendialog.filename,CP_UTF8);
rewrite(translate);
writeLn(translate, bom);
@@ -138,7 +139,7 @@ end; procedure TForm1.GClick(Sender: TObject);
var str:string;
begin
- str:='http://translate.google.com/?hl=&ie=&langpair=auto&text=';
+ str:='http://translate.google.com/?hl=&ie=&langpair=en&text=';
for I := 0 to memo1.Lines.Count-1 do
begin
str:=str+memo1.Lines[i];
@@ -253,15 +254,18 @@ begin closefile(translate);
if extractfilename(opendialog.filename)='=CORE=.txt' then
-begin
assignfile(translate,ExtractFilePath(Application.ExeName)+
-'\..\english\'+extractfilename(opendialog.filename),CP_UTF8);
-end
+'\..\english\'+extractfilename(opendialog.filename),CP_UTF8)
else
-begin
+ if fileexists(ExtractFilePath(Application.ExeName)+
+'\..\english\plugins\'+extractfilename(opendialog.filename)) then
assignfile(translate,ExtractFilePath(Application.ExeName)+
-'\..\english\plugins\'+extractfilename(opendialog.filename),CP_UTF8);
-end;
+'\..\english\plugins\'+extractfilename(opendialog.filename),CP_UTF8)
+else
+ if fileexists(ExtractFilePath(Application.ExeName)+
+'\..\english\weather\'+extractfilename(opendialog.filename)) then
+assignfile(translate,ExtractFilePath(Application.ExeName)+
+'\..\english\weather\'+extractfilename(opendialog.filename),CP_UTF8);
reset(translate);
ReadLn(translate, bom);
ie:=0;
|