Changeset 249 for trunk/UCore.pas


Ignore:
Timestamp:
Sep 22, 2018, 9:37:16 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Use different interface language if installed as deb Linux package.
  • Fixed: Propagate status bar, toolbar visibilit, and toolbar icons size to client form.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r243 r249  
    228228  I: Integer;
    229229begin
    230   {$ifdef DEBUG}
     230  //{$ifdef DEBUG}
    231231  with Core.ScaleDPI1 do begin
    232232    //DesignDPI := Point(144, 144);
     
    243243    end;
    244244  end;
    245   {$endif}
     245  //{$endif}
    246246end;
    247247
     
    433433  FormClients := TFPGObjectList<TFormClient>.Create;
    434434  ServerList := TServerList.Create;
     435
     436  {$IFDEF Linux}
     437  // If installed in Linux system then use installation directory for po files
     438  if Application.ExeName = '/usr/bin/xtactics' then
     439    CoolTranslator1.POFilesFolder := '/usr/share/xtactics/languages';
     440  {$ENDIF}
    435441end;
    436442
     
    637643begin
    638644  if not Core.Initialized then begin
    639     {$IFDEF Linux}
    640     // If installed in Linux system then use installation directory for po files
    641     if Application.ExeName = '/usr/bin/xtactics' then
    642       CoolTranslator1.POFilesFolder := '/usr/share/xtactics/languages';
    643     {$ENDIF}
    644645    FInitialized := True;
    645646
Note: See TracChangeset for help on using the changeset viewer.