Changeset 309 for trunk/UCore.pas
- Timestamp:
- Aug 18, 2021, 12:37:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r308 r309 130 130 131 131 uses 132 UFormMain, UFormNew, UFormSettings, U FormAbout, UClientAI, UFormKeyShortcuts,132 UFormMain, UFormNew, UFormSettings, UClientAI, UFormKeyShortcuts, 133 133 UFormHelp, UFormCharts, UFormUnitMoves, UFormPlayersStats, UClientGUI; 134 134 … … 475 475 476 476 procedure TCore.DataModuleCreate(Sender: TObject); 477 begin 478 GameSystems := TGameSystems.Create; 477 const 478 LinuxLanguagesDir = '/usr/share/xtactics/languages'; 479 begin 480 {$IFDEF Linux} 481 // If installed in Linux system then use installation directory for po files 482 if not DirectoryExists(CoolTranslator1.POFilesFolder) and DirectoryExists(LinuxLanguagesDir) then 483 CoolTranslator1.POFilesFolder := LinuxLanguagesDir; 484 {$ENDIF} 485 486 GameSystems := TGameSystems.Create; 479 487 Server := TServer.Create; 480 488 LocalClients := TClients.Create; … … 493 501 FormClients := TFPGObjectList<TFormClient>.Create; 494 502 ServerList := TServerList.Create; 495 496 {$IFDEF Linux}497 // If installed in Linux system then use installation directory for po files498 if Application.ExeName = '/usr/bin/xtactics' then499 CoolTranslator1.POFilesFolder := '/usr/share/xtactics/languages';500 {$ENDIF}501 503 end; 502 504
Note:
See TracChangeset
for help on using the changeset viewer.