Changeset 153
- Timestamp:
- Jan 14, 2025, 12:18:07 PM (7 days ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMain.pas
r145 r153 62 62 {$IFDEF UNIX} 63 63 const 64 UnixLanguagesDir = '/usr/share/TransLines/languages'; 65 {$ENDIF} 66 begin 64 UnixLanguagesDir = '../share/TransLines'; 65 LanguagesDirName = 'Languages'; 66 var 67 NewDir: string; 68 BaseDir: string; 69 {$ENDIF} 70 begin 71 BaseDir := ExcludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))); 72 Core.Core.Translator1.POFilesFolder := BaseDir + DirectorySeparator + LanguagesDirName; 73 67 74 {$IFDEF UNIX} 68 75 // 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; 71 80 {$ENDIF} 72 81 -
trunk/Install/deb/debian/rules
r125 r153 14 14 15 15 override_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 25 21 26 22 %: -
trunk/Menu.pas
r143 r153 224 224 225 225 X := (CanvasSize.X - TotalWidth) div 2; 226 if X < 5 then X := 5; 226 227 Y := (CanvasSize.Y - TotalHeight) div 2; 228 if Y < 5 then Y := 5; 227 229 228 230 // Menu items
Note:
See TracChangeset
for help on using the changeset viewer.