mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:19:47 +02:00
LazReport, improve error message on missing classes, was about FRF format while in reality is about LRF format
git-svn-id: trunk@43046 -
This commit is contained in:
parent
652a96891a
commit
76fbc9e44c
@ -1266,7 +1266,7 @@ msgstr "Seznam proměnných ..."
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Nepodporovaný FRF formát"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2200,6 +2200,10 @@ msgstr "Datum vytvoření reportu"
|
||||
msgid "Report last modify date"
|
||||
msgstr "Poslední úprava reportu"
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Příprava reportu"
|
||||
|
@ -1258,7 +1258,7 @@ msgstr "Variablen-&Liste..."
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Nicht unterstütztes FRF-Format"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2196,6 +2196,10 @@ msgstr "Erstelldatum"
|
||||
msgid "Report last modify date"
|
||||
msgstr "Datum der letzten Änderung"
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Report-Vorbereitung"
|
||||
|
@ -226,7 +226,7 @@ msgstr "0"
|
||||
|
||||
#: lr_const.sclassobjectnotfound
|
||||
msgid "Class Object \"%s\" not found"
|
||||
msgstr "Objeto de clase \"%s\" not found"
|
||||
msgstr "No se encontró la clase de objeto \"%s\""
|
||||
|
||||
#: lr_const.sconfirm
|
||||
msgid "Confirm"
|
||||
@ -1258,7 +1258,7 @@ msgstr "&Lista de variables ..."
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Formato FRF no soportado"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2196,6 +2196,10 @@ msgstr "Fecha de creación del informe"
|
||||
msgid "Report last modify date"
|
||||
msgstr "Fecha última modificación del informe"
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr "Error al cargar el reporte"
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Preparación del reporte"
|
||||
|
@ -1269,7 +1269,7 @@ msgstr "&Liste de variables..."
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Format FRF non supporté."
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2211,6 +2211,10 @@ msgstr ""
|
||||
msgid "Report last modify date"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Préparation du rapport"
|
||||
|
@ -1260,7 +1260,7 @@ msgstr "Da&ftar variabel..."
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Format FRF tidak didukung"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2202,6 +2202,10 @@ msgstr ""
|
||||
msgid "Report last modify date"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Menyiapkan laporan"
|
||||
|
@ -1261,7 +1261,7 @@ msgstr "&Lista variabili"
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Formato FRF non supportato"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2203,6 +2203,10 @@ msgstr ""
|
||||
msgid "Report last modify date"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Preparazione del report"
|
||||
|
@ -1250,7 +1250,7 @@ msgstr "Kintamųjų &sąrašas…"
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Nepalaikomas FRF formatas"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2188,6 +2188,10 @@ msgstr "Pranešimo sukūrimo data"
|
||||
msgid "Report last modify date"
|
||||
msgstr "Pranešimo paskutiniojo keitimo data"
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Pranešimas ruošiamas"
|
||||
|
@ -1263,7 +1263,7 @@ msgstr "List zmi&ennych..."
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Nieobsługiwany format pliku FRF"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2205,6 +2205,10 @@ msgstr ""
|
||||
msgid "Report last modify date"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Przygotowanie raportu"
|
||||
|
@ -2165,6 +2165,10 @@ msgstr ""
|
||||
msgid "Report last modify date"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr ""
|
||||
|
@ -1249,7 +1249,7 @@ msgstr "&Lista variáveis ..."
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Formato FRF não suportado"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2187,6 +2187,10 @@ msgstr "Data de criação do relatório"
|
||||
msgid "Report last modify date"
|
||||
msgstr "Data da última alteração do relatório"
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Preparando relatório"
|
||||
|
@ -1248,7 +1248,7 @@ msgstr "Сп&исок переменных ..."
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Неподдерживаемый формат FRF"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2186,6 +2186,10 @@ msgstr "Дата создания отчёта"
|
||||
msgid "Report last modify date"
|
||||
msgstr "Дата последнего изменения отчёта"
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Подготовка отчёта"
|
||||
|
@ -1251,7 +1251,7 @@ msgstr "Список &змінних ..."
|
||||
|
||||
#: lr_const.sfrferror
|
||||
msgid "Unsupported FRF format"
|
||||
msgstr "Непідтримуваний формат FRF"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sfrom
|
||||
msgid "from"
|
||||
@ -2189,6 +2189,10 @@ msgstr ""
|
||||
msgid "Report last modify date"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportloadingerror
|
||||
msgid "Error while loading report"
|
||||
msgstr ""
|
||||
|
||||
#: lr_const.sreportpreparing
|
||||
msgid "Report preparing"
|
||||
msgstr "Підготовка звіту"
|
||||
|
@ -9121,20 +9121,24 @@ begin
|
||||
|
||||
if frVersion < 21 then
|
||||
frVersion := 21;
|
||||
|
||||
if frVersion <= frCurrentVersion then
|
||||
try
|
||||
{$IFDEF FREEREP2217READ}
|
||||
if FRE_COMPATIBLE_READ and (frVersion >= 23) then
|
||||
frVersion := 22;
|
||||
{$ENDIF}
|
||||
pages.LoadFromXML(XML, Path+'Pages/');
|
||||
except
|
||||
Pages.Clear;
|
||||
Pages.Add;
|
||||
MessageDlg(sFRFError,mtError,[mbOk],0)
|
||||
end
|
||||
try
|
||||
{$IFDEF FREEREP2217READ}
|
||||
if FRE_COMPATIBLE_READ and (frVersion >= 23) then
|
||||
frVersion := 22;
|
||||
{$ENDIF}
|
||||
pages.LoadFromXML(XML, Path+'Pages/');
|
||||
except
|
||||
on E:Exception do
|
||||
begin
|
||||
Pages.Clear;
|
||||
Pages.Add;
|
||||
MessageDlg(sReportLoadingError+^M+E.Message,mtError,[mbOk],0)
|
||||
end;
|
||||
end
|
||||
else
|
||||
MessageDlg(sFRFError,mtError,[mbOk],0);
|
||||
MessageDlg(sReportLoadingError,mtError,[mbOk],0);
|
||||
end;
|
||||
|
||||
procedure TfrReport.SaveToStream(Stream: TStream);
|
||||
|
@ -262,6 +262,7 @@ resourcestring
|
||||
sErrorOccured = 'An error occured during calculating';
|
||||
sSpecVal = 'Other';
|
||||
sFRFError = 'Unsupported FRF format';
|
||||
sReportLoadingError = 'Error while loading report';
|
||||
sClassObjectNotFound = 'Class Object "%s" not found';
|
||||
sDuplicatedObjectName = 'An object named "%s" already exists';
|
||||
sObjectNotFound = 'Object "%s" not found';
|
||||
|
Loading…
Reference in New Issue
Block a user