You've already forked lazarus-ccr
tvplanit: Display birthdate in contact edit dialog. Fix localization file not being found if its name contains the wrong path delimiter.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4865 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -37,7 +37,7 @@ uses
|
||||
Windows, // Needed for LCIDs
|
||||
{$ENDIF}
|
||||
{$IFDEF LCL}
|
||||
LCLProc, LCLType, LCLIntf,
|
||||
LCLProc, LCLType, LCLIntf, LazFileUtils,
|
||||
{$ENDIF}
|
||||
Classes, Dialogs,SysUtils, Graphics, StdCtrls, Forms,
|
||||
VpBase, VpMisc, VpData, VpXParsr, VpPrtFmt; { For TVpAttributes }
|
||||
@ -591,12 +591,16 @@ begin
|
||||
|
||||
FLoadingIndex := -1;
|
||||
FElementIndex := -1;
|
||||
Parser := TVpParser.Create (nil);
|
||||
Parser := TVpParser.Create(nil);
|
||||
Parser.OnAttribute := xmlLocalizeAttribute;
|
||||
Parser.OnStartElement := xmlLocalizeStartElement;
|
||||
Parser.OnEndElement := xmlLocalizeEndElement;
|
||||
try
|
||||
Parser.ParseDataSource (FileName);
|
||||
{$IFDEF DELPHI}
|
||||
Parser.ParseDataSource(FileName);
|
||||
{$ELSE}
|
||||
Parser.ParseDataSource(GetForcedPathDelims(FileName));
|
||||
{$ENDIF}
|
||||
finally
|
||||
Parser.Free;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user