Changeset 114
- Timestamp:
- Jan 14, 2025, 8:56:52 AM (8 days ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Engine.pas
r103 r114 1647 1647 {$IFDEF UNIX} 1648 1648 const 1649 UnixDataDir = '/usr/share/Tunneler'; 1650 UnixAudioDir = UnixDataDir + '/Audio'; 1649 AudioDirName = 'Audio'; 1650 UnixDataDir = '../share/Tunneler'; 1651 var 1652 NewDir: string; 1653 BaseDir: string; 1651 1654 {$ENDIF} 1652 1655 begin 1653 Result := GetCurrentDir + DirectorySeparator + 'Audio'; 1656 BaseDir := ExcludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))); 1657 Result := BaseDir + DirectorySeparator + AudioDirName; 1654 1658 {$IFDEF UNIX} 1655 if not DirectoryExists(Result) and DirectoryExists(UnixAudioDir) then begin 1656 Result := UnixAudioDir; 1657 Exit; 1659 NewDir := ExpandFileName(BaseDir + DirectorySeparator + UnixDataDir + 1660 DirectorySeparator + AudioDirName); 1661 if not DirectoryExists(Result) and DirectoryExists(NewDir) then begin 1662 Result := NewDir; 1658 1663 end; 1659 1664 {$ENDIF} -
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 -
trunk/Install/flatpak/net.zdechov.app.Tunneler.yml
r111 r114 29 29 - type: svn 30 30 url: https://svn.zdechov.net/Tunneler/trunk 31 revision: r11 131 revision: r114 32 32 buildsystem: simple 33 33 build-commands: -
trunk/Languages/Tunneler.cs.po
r109 r114 219 219 #, object-pascal-format 220 220 msgid "The play command %s does not work on your system" 221 msgstr " "221 msgstr "Play pÅÃkaz %s na vaÅ¡em systému nefunguje" 222 222 223 223 #: sound.sunabletoplay … … 374 374 msgid "Controls" 375 375 msgstr "OvládánÃ" 376
Note:
See TracChangeset
for help on using the changeset viewer.