Changeset 199


Ignore:
Timestamp:
May 8, 2020, 12:35:56 AM (5 years ago)
Author:
chronos
Message:
  • Fixed: LocalizedFilePath function can accept file names and also directory names. Check also existence of localized directory. Directories were not correctly verified under Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/Directories.pas

    r192 r199  
    5858  if LocaleCode <> 'en' then begin
    5959    Result := HomeDir + 'Localization' + DirectorySeparator + LocaleCodeDir + DirectorySeparator + Path;
    60     if not FileExists(Result) then
     60    if not DirectoryExists(Result) and not FileExists(Result) then
    6161      Result := HomeDir + Path;
    6262  end else Result := HomeDir + Path;
Note: See TracChangeset for help on using the changeset viewer.