Changeset 208 for trunk/UCore.pas


Ignore:
Timestamp:
Sep 20, 2021, 11:36:06 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Show items without active filter text active by default to show supported acronyms immediatelly after application start.
  • Added: Snap package definition file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r207 r208  
    88  Classes, SysUtils, FileUtil, UAcronym, UTranslator, UPersistentForm,
    99  UJobProgressView, UScaleDPI, Forms, Controls, ExtCtrls, Menus, LazFileUtils,
    10   URegistry, UApplicationInfo, Registry, UTheme, UAboutDialog;
     10  URegistry, UApplicationInfo, Registry, UTheme;
    1111
    1212type
     
    8282
    8383procedure TCore.DataModuleCreate(Sender: TObject);
    84 begin
     84const
     85  LinuxLanguagesDir = '/usr/share/AcronymDecoder/Languages';
     86begin
     87  {$IFDEF Linux}
     88  // If installed in Linux system then use installation directory for po files
     89  if not DirectoryExists(Translator.POFilesFolder) and DirectoryExists(LinuxLanguagesDir) then
     90    Translator.POFilesFolder := LinuxLanguagesDir;
     91  {$ENDIF}
     92
    8593  AcronymDb := nil;
    8694  InitializeStarted := False;
Note: See TracChangeset for help on using the changeset viewer.