IDE: create directory for po-files, if it doesn't exist yet

git-svn-id: trunk@10805 -
This commit is contained in:
vincents 2007-03-26 11:30:41 +00:00
parent d69e8e388f
commit 94437574a3

View File

@ -432,8 +432,10 @@ begin
end else begin
ContentChanged:=true;
end;
if ContentChanged then
if ContentChanged then begin
ForceDirectories(ExtractFileDir(OutFileName));
NewContent.SaveToFile(OutFilename);
end;
Result:=true;
finally
NewContent.Free;
@ -441,8 +443,8 @@ begin
end;
except
on E: Exception do begin
DumpExceptionBackTrace;
DebugLn(['ConvertToGettextPO ',E.Message]);
DumpExceptionBackTrace;
end;
end;
end;