Changeset 153


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.
Location:
trunk
Files:
3 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
  • trunk/Install/deb/debian/rules

    r125 r153  
    1414
    1515override_dh_auto_install:
    16         install -d -m 755 $(ROOT)/usr/bin
    17         install -s -m 755 TransLines $(ROOT)/usr/bin
    18         install -d -m 755 $(ROOT)/usr/share/applications
    19         install -m 755 Install/deb/TransLines.desktop $(ROOT)/usr/share/applications
    20         install -d -m 755 $(ROOT)/usr/share/pixmaps
    21         install -m 644 Images/64x64/TransLines.png $(ROOT)/usr/share/pixmaps
    22         install -d -m 755 $(ROOT)/usr/share/TransLines/languages
    23         install -m 755 Languages/*.pot $(ROOT)/usr/share/TransLines/languages
    24         install -m 755 Languages/*.po $(ROOT)/usr/share/TransLines/languages
     16        install -Dm755 TransLines -t $(ROOT)/usr/bin
     17        install -Dm644 Install/deb/TransLines.desktop -t $(ROOT)/usr/share/applications
     18        install -Dm644 Images/64x64/TransLines.png -t $(ROOT)/usr/share/pixmaps
     19        install -Dm644 Languages/*.po -t $(ROOT)/usr/share/TransLines/Languages
     20        install -Dm644 Packages/Common/Languages/*.po -t $(ROOT)/usr/share/TransLines/Languages
    2521
    2622%:
  • trunk/Menu.pas

    r143 r153  
    224224
    225225    X := (CanvasSize.X - TotalWidth) div 2;
     226    if X < 5 then X := 5;
    226227    Y := (CanvasSize.Y - TotalHeight) div 2;
     228    if Y < 5 then Y := 5;
    227229
    228230    // Menu items
Note: See TracChangeset for help on using the changeset viewer.