Changeset 153 for trunk/Forms/FormMain.pas
- Timestamp:
- Jan 14, 2025, 12:18:07 PM (7 days ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.