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:
jesus 2013-09-30 18:09:07 +00:00
parent 652a96891a
commit 76fbc9e44c
14 changed files with 77 additions and 24 deletions

View File

@ -1266,7 +1266,7 @@ msgstr "Seznam proměnných ..."
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Nepodporovaný FRF formát" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2200,6 +2200,10 @@ msgstr "Datum vytvoření reportu"
msgid "Report last modify date" msgid "Report last modify date"
msgstr "Poslední úprava reportu" msgstr "Poslední úprava reportu"
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Příprava reportu" msgstr "Příprava reportu"

View File

@ -1258,7 +1258,7 @@ msgstr "Variablen-&Liste..."
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Nicht unterstütztes FRF-Format" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2196,6 +2196,10 @@ msgstr "Erstelldatum"
msgid "Report last modify date" msgid "Report last modify date"
msgstr "Datum der letzten Änderung" msgstr "Datum der letzten Änderung"
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Report-Vorbereitung" msgstr "Report-Vorbereitung"

View File

@ -226,7 +226,7 @@ msgstr "0"
#: lr_const.sclassobjectnotfound #: lr_const.sclassobjectnotfound
msgid "Class Object \"%s\" not found" 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 #: lr_const.sconfirm
msgid "Confirm" msgid "Confirm"
@ -1258,7 +1258,7 @@ msgstr "&Lista de variables ..."
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Formato FRF no soportado" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2196,6 +2196,10 @@ msgstr "Fecha de creación del informe"
msgid "Report last modify date" msgid "Report last modify date"
msgstr "Fecha última modificación del informe" msgstr "Fecha última modificación del informe"
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr "Error al cargar el reporte"
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Preparación del reporte" msgstr "Preparación del reporte"

View File

@ -1269,7 +1269,7 @@ msgstr "&Liste de variables..."
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Format FRF non supporté." msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2211,6 +2211,10 @@ msgstr ""
msgid "Report last modify date" msgid "Report last modify date"
msgstr "" msgstr ""
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Préparation du rapport" msgstr "Préparation du rapport"

View File

@ -1260,7 +1260,7 @@ msgstr "Da&ftar variabel..."
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Format FRF tidak didukung" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2202,6 +2202,10 @@ msgstr ""
msgid "Report last modify date" msgid "Report last modify date"
msgstr "" msgstr ""
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Menyiapkan laporan" msgstr "Menyiapkan laporan"

View File

@ -1261,7 +1261,7 @@ msgstr "&Lista variabili"
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Formato FRF non supportato" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2203,6 +2203,10 @@ msgstr ""
msgid "Report last modify date" msgid "Report last modify date"
msgstr "" msgstr ""
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Preparazione del report" msgstr "Preparazione del report"

View File

@ -1250,7 +1250,7 @@ msgstr "Kintamųjų &sąrašas…"
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Nepalaikomas FRF formatas" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2188,6 +2188,10 @@ msgstr "Pranešimo sukūrimo data"
msgid "Report last modify date" msgid "Report last modify date"
msgstr "Pranešimo paskutiniojo keitimo data" msgstr "Pranešimo paskutiniojo keitimo data"
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Pranešimas ruošiamas" msgstr "Pranešimas ruošiamas"

View File

@ -1263,7 +1263,7 @@ msgstr "List zmi&ennych..."
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Nieobsługiwany format pliku FRF" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2205,6 +2205,10 @@ msgstr ""
msgid "Report last modify date" msgid "Report last modify date"
msgstr "" msgstr ""
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Przygotowanie raportu" msgstr "Przygotowanie raportu"

View File

@ -2165,6 +2165,10 @@ msgstr ""
msgid "Report last modify date" msgid "Report last modify date"
msgstr "" msgstr ""
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "" msgstr ""

View File

@ -1249,7 +1249,7 @@ msgstr "&Lista variáveis ..."
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Formato FRF não suportado" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2187,6 +2187,10 @@ msgstr "Data de criação do relatório"
msgid "Report last modify date" msgid "Report last modify date"
msgstr "Data da última alteração do relatório" msgstr "Data da última alteração do relatório"
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Preparando relatório" msgstr "Preparando relatório"

View File

@ -1248,7 +1248,7 @@ msgstr "Сп&исок переменных ..."
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Неподдерживаемый формат FRF" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2186,6 +2186,10 @@ msgstr "Дата создания отчёта"
msgid "Report last modify date" msgid "Report last modify date"
msgstr "Дата последнего изменения отчёта" msgstr "Дата последнего изменения отчёта"
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Подготовка отчёта" msgstr "Подготовка отчёта"

View File

@ -1251,7 +1251,7 @@ msgstr "Список &змінних ..."
#: lr_const.sfrferror #: lr_const.sfrferror
msgid "Unsupported FRF format" msgid "Unsupported FRF format"
msgstr "Непідтримуваний формат FRF" msgstr ""
#: lr_const.sfrom #: lr_const.sfrom
msgid "from" msgid "from"
@ -2189,6 +2189,10 @@ msgstr ""
msgid "Report last modify date" msgid "Report last modify date"
msgstr "" msgstr ""
#: lr_const.sreportloadingerror
msgid "Error while loading report"
msgstr ""
#: lr_const.sreportpreparing #: lr_const.sreportpreparing
msgid "Report preparing" msgid "Report preparing"
msgstr "Підготовка звіту" msgstr "Підготовка звіту"

View File

@ -9121,20 +9121,24 @@ begin
if frVersion < 21 then if frVersion < 21 then
frVersion := 21; frVersion := 21;
if frVersion <= frCurrentVersion then if frVersion <= frCurrentVersion then
try try
{$IFDEF FREEREP2217READ} {$IFDEF FREEREP2217READ}
if FRE_COMPATIBLE_READ and (frVersion >= 23) then if FRE_COMPATIBLE_READ and (frVersion >= 23) then
frVersion := 22; frVersion := 22;
{$ENDIF} {$ENDIF}
pages.LoadFromXML(XML, Path+'Pages/'); pages.LoadFromXML(XML, Path+'Pages/');
except except
Pages.Clear; on E:Exception do
Pages.Add; begin
MessageDlg(sFRFError,mtError,[mbOk],0) Pages.Clear;
end Pages.Add;
MessageDlg(sReportLoadingError+^M+E.Message,mtError,[mbOk],0)
end;
end
else else
MessageDlg(sFRFError,mtError,[mbOk],0); MessageDlg(sReportLoadingError,mtError,[mbOk],0);
end; end;
procedure TfrReport.SaveToStream(Stream: TStream); procedure TfrReport.SaveToStream(Stream: TStream);

View File

@ -262,6 +262,7 @@ resourcestring
sErrorOccured = 'An error occured during calculating'; sErrorOccured = 'An error occured during calculating';
sSpecVal = 'Other'; sSpecVal = 'Other';
sFRFError = 'Unsupported FRF format'; sFRFError = 'Unsupported FRF format';
sReportLoadingError = 'Error while loading report';
sClassObjectNotFound = 'Class Object "%s" not found'; sClassObjectNotFound = 'Class Object "%s" not found';
sDuplicatedObjectName = 'An object named "%s" already exists'; sDuplicatedObjectName = 'An object named "%s" already exists';
sObjectNotFound = 'Object "%s" not found'; sObjectNotFound = 'Object "%s" not found';