Ignore:
Timestamp:
Jan 14, 2025, 12:18:07 PM (7 days ago)
Author:
chronos
Message:
  • Fixed: Detection of languages directory on Linux.
  • Fixed: Top left menu alignment.
  • Modified: Improved debian control script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.pas

    r145 r153  
    6262{$IFDEF UNIX}
    6363const
    64   UnixLanguagesDir = '/usr/share/TransLines/languages';
    65   {$ENDIF}
    66 begin
     64  UnixLanguagesDir = '../share/TransLines';
     65  LanguagesDirName = 'Languages';
     66var
     67  NewDir: string;
     68  BaseDir: string;
     69{$ENDIF}
     70begin
     71  BaseDir := ExcludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0)));
     72  Core.Core.Translator1.POFilesFolder := BaseDir + DirectorySeparator + LanguagesDirName;
     73
    6774  {$IFDEF UNIX}
    6875  // If installed in UNIX system then use installation directory for po files
    69   if not DirectoryExists(Core.Core.Translator1.POFilesFolder) and DirectoryExists(UnixLanguagesDir) then
    70     Core.Core.Translator1.POFilesFolder := UnixLanguagesDir;
     76  NewDir := BaseDir + DirectorySeparator + UnixLanguagesDir + DirectorySeparator +
     77    LanguagesDirName;
     78  if not DirectoryExists(Core.Core.Translator1.POFilesFolder) and DirectoryExists(NewDir) then
     79    Core.Core.Translator1.POFilesFolder := NewDir;
    7180  {$ENDIF}
    7281
Note: See TracChangeset for help on using the changeset viewer.