pochecker: fixed compilation

git-svn-id: trunk@50936 -
This commit is contained in:
mattias 2015-12-19 14:57:09 +00:00
parent 1b0314f516
commit fe4f0721f2
3 changed files with 8 additions and 4 deletions

View File

@ -96,7 +96,6 @@
<Unit3>
<Filename Value="..\pocheckerconsts.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="pocheckerconsts"/>
</Unit3>
<Unit4>
<Filename Value="..\pocheckermain.pp"/>
@ -104,7 +103,6 @@
<ComponentName Value="PoCheckerForm"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="pocheckermain"/>
</Unit4>
<Unit5>
<Filename Value="..\graphstat.pp"/>

View File

@ -819,7 +819,10 @@ end;
{$IFDEF POCHECKERSTANDALONE}
function TPoCheckerForm.GetTranslationsSearchPath: String;
var
EnvVar, CfgLocal, CfgGlobal, AppPath: String;
EnvVar, CfgLocal, CfgGlobal: String;
{$if defined(windows) and not defined(wince)}
AppPath: String;
{$ENDIF}
begin
Result := FPoCheckerSettings.LangPath;
EnvVar := GetEnvironmentVariableUtf8('pochecker-langpath');
@ -890,7 +893,7 @@ begin
Lang := GetEnvironmentVariableUTF8('LANG');
T := '';
if Lang = '' then
LCLGetLanguageIDs(Lang, T);
LazGetLanguageIDs(Lang, T);
if Lang <> '' then
begin
//debugln('TPoCheckerForm.GetTranslations: Lang = ',Lang);

View File

@ -166,6 +166,9 @@ const
pWindowsGeometry = 'General/WindowsGeometry/';
pMasterPoFiles = 'MasterPoFiles/';
pMasterPoSelection = 'MasterPoSelection/';
{$IFDEF POCHECKERSTANDALONE}
pExternalEditor = 'ExternalEditor/';
{$ENDIF}
var
DefaultRect: TRect;