Skip to content

Commit

Permalink
updater, fix translations
Browse files Browse the repository at this point in the history
use fixed appname
  • Loading branch information
riderkick committed Jun 12, 2015
1 parent 8b9adc2 commit bf367bb
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions updater/uMain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ interface
cthreads,
cmem,
{$endif}
Classes, SysUtils, zipper, FileUtil, UTF8Process, Forms, Dialogs,
ComCtrls, StdCtrls, Clipbrd, ExtCtrls, DefaultTranslator, RegExpr, IniFiles,
process, USimpleException, uMisc, httpsend, blcksock, ssl_openssl;
Classes, SysUtils, zipper, FileUtil, UTF8Process, Forms, Dialogs, ComCtrls,
StdCtrls, Clipbrd, ExtCtrls, DefaultTranslator, RegExpr, IniFiles, process,
USimpleException, uMisc, uTranslation, httpsend, blcksock, ssl_openssl;

type

Expand Down Expand Up @@ -616,6 +616,9 @@ procedure TfrmMain.FormCreate(Sender :TObject);
begin
Randomize;
InitSimpleExceptionHandler(ChangeFileExt(Application.ExeName, '.log'));
uTranslation.LangDir := GetCurrentDirUTF8 + PathDelim + 'languages';
uTranslation.LangAppName := 'updater';
uTranslation.CollectLanguagesFiles;
InitCriticalSection(CS_ReadCount);
//load proxy config from fmd
config := TIniFile.Create('config/config.ini');
Expand Down Expand Up @@ -679,7 +682,9 @@ procedure TfrmMain.FormShow(Sender :TObject);
else if s = '-r' then
_MaxRetry := StrToIntDef(ParamStrUTF8(i + 1), 1)
else if s = '-l' then
_LaunchApp := ParamStrUTF8(i + 1);
_LaunchApp := ParamStrUTF8(i + 1)
else if (LowerCase(s) = '--lang') then
uTranslation.SetLang(ParamStrUTF8(i + 1));
end;
end;
end;
Expand Down

0 comments on commit bf367bb

Please sign in to comment.