Changeset 84 for trunk/UCore.pas


Ignore:
Timestamp:
Aug 4, 2021, 5:27:54 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Use clear background color under score text instead of solid.
  • Fixed: Missing snap package x11 plug.
  • Fixed: Snap package was not able to use language files.
  • Modified: Build snap using lxd instead of multipass.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r80 r84  
    7373
    7474procedure TCore.DataModuleCreate(Sender: TObject);
     75const
     76  LinuxLanguagesDir = '/usr/share/Game2048/languages';
    7577begin
    7678  {$IFDEF Linux}
    7779  // If installed in Linux system then use installation directory for po files
    78   if Application.ExeName = '/usr/bin/Game2048' then
    79     Translator1.POFilesFolder := '/usr/share/Game2048/languages';
     80  if not DirectoryExists(Translator1.POFilesFolder) and DirectoryExists(LinuxLanguagesDir) then
     81    Translator1.POFilesFolder := LinuxLanguagesDir;
    8082  {$ENDIF}
    8183
Note: See TracChangeset for help on using the changeset viewer.