IDE: improved PO file update error message

This commit is contained in:
Maxim Ganetsky 2025-08-19 02:51:35 +03:00
parent b64df8c3a6
commit 8c8d28e0da
2 changed files with 3 additions and 3 deletions

View File

@ -4673,9 +4673,8 @@ begin
Result := mrOk;
except
on E:EPOFileError do begin
IDEMessageDialog(lisCCOErrorCaption, Format(lisErrorLoadingFrom,
[ 'Update PO file '+E.POFileName, LineEnding, E.ResFileName,
LineEnding+LineEnding, E.Message]), mtError, [mbOk]);
IDEMessageDialog(lisCCOErrorCaption, Format(lisErrorUpdatingFrom,
[E.POFileName, E.ResFileName, E.Message]), mtError, [mbOk]);
end;
end;

View File

@ -67,6 +67,7 @@ resourcestring
lisCodeToolsDefsWriteError = 'Write error';
lisCCOErrorCaption = 'Error';
lisErrorLoadingFrom = 'Error loading %s from%s%s%s%s';
lisErrorUpdatingFrom = 'Error updating'+LineEnding+'%s'+LineEnding+'from'+LineEnding+'%s.'+LineEnding+LineEnding+'Error message:'+LineEnding+'%s';
lisErrorSavingTo = 'Error saving %s to%s%s%s%s';
lisXMLError = 'XML Error';
lisXMLParserErrorInFileError = 'XML parser error in file %s%sError: %s';