Changeset 114 for trunk/Forms/FormMain.pas
- Timestamp:
- Jan 14, 2025, 8:56:52 AM (8 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMain.pas
r112 r114 165 165 {$IFDEF UNIX} 166 166 const 167 UnixLanguagesDir = '../Tunneler/Languages'; 167 LanguagesDirName = 'Languages'; 168 UnixLanguagesDir = '../share/Tunneler/' + LanguagesDirName; 169 var 170 BaseDir: string; 171 NewDir: string; 168 172 {$ENDIF} 169 173 begin 174 BaseDir := ExcludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))); 175 Core.Core.Translator1.POFilesFolder := BaseDir + DirectorySeparator + LanguagesDirName; 176 170 177 {$IFDEF UNIX} 171 178 // If installed in UNIX system then use installation directory for po files 172 if not DirectoryExists(Core.Core.Translator1.POFilesFolder) and DirectoryExists(UnixLanguagesDir) then 173 Core.Core.Translator1.POFilesFolder := UnixLanguagesDir; 179 NewDir := ExpandFileName(BaseDir + DirectorySeparator + UnixLanguagesDir); 180 if not DirectoryExists(Core.Core.Translator1.POFilesFolder) and DirectoryExists(NewDir) then 181 Core.Core.Translator1.POFilesFolder := NewDir; 174 182 {$ENDIF} 175 183
Note:
See TracChangeset
for help on using the changeset viewer.