mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-18 03:08:19 +02:00
POChecker: added total translated/untranslated/fuzzy strings statistics to result report and Graphical Statistics form.
Regenerated translations and updated Russian translation. git-svn-id: trunk@52401 -
This commit is contained in:
parent
2f3f70779c
commit
b2605a63b4
@ -199,9 +199,6 @@ end;
|
|||||||
procedure TGraphStatForm.FormCreate(Sender: TObject);
|
procedure TGraphStatForm.FormCreate(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
Caption := sGrapStatFormCaption;
|
Caption := sGrapStatFormCaption;
|
||||||
TranslatedLabel.Caption := sTranslated;
|
|
||||||
UntranslatedLabel.Caption := sUnTranslated;
|
|
||||||
FuzzyLabel.Caption := sFuzzy;
|
|
||||||
POEditorMenuItem.Caption := sOpenFileInSystemPOEditor;
|
POEditorMenuItem.Caption := sOpenFileInSystemPOEditor;
|
||||||
ExtEditorMenuItem.Caption := sOpenFileInExternalEditor;
|
ExtEditorMenuItem.Caption := sOpenFileInExternalEditor;
|
||||||
IDEEditorMenuItem.Caption := sOpenFileInIDEEditor;
|
IDEEditorMenuItem.Caption := sOpenFileInIDEEditor;
|
||||||
@ -336,7 +333,7 @@ begin
|
|||||||
Bmp := CreateBitmap(AStat);
|
Bmp := CreateBitmap(AStat);
|
||||||
AddToListView(AStat, Bmp);
|
AddToListView(AStat, Bmp);
|
||||||
|
|
||||||
//if there are many icns to draw, occasionally update the ListView as visual feedback
|
//if there are many icons to draw, occasionally update the ListView as visual feedback
|
||||||
if (((Index + 1) mod 25) = 0) then
|
if (((Index + 1) mod 25) = 0) then
|
||||||
begin
|
begin
|
||||||
ListView.EndUpdate;
|
ListView.EndUpdate;
|
||||||
|
@ -213,8 +213,8 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
@ -409,12 +409,24 @@ msgstr ""
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Nalezeno celkem %d chyb / varování."
|
msgstr "Nalezeno celkem %d chyb / varování."
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Celkem nalezeno varování: %d"
|
msgstr "Celkem nalezeno varování: %d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
@ -439,7 +451,7 @@ msgstr ""
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -213,9 +213,9 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr "Störende Dateien finden"
|
msgstr "Störende Dateien finden"
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr "Ungeklärt"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
msgid "Graphical summary"
|
msgid "Graphical summary"
|
||||||
@ -409,13 +409,25 @@ msgstr "Folgende %s verwaiste .po-Datei(en) gefunden:"
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Insgesamt %d Fehler gefunden"
|
msgstr "Insgesamt %d Fehler gefunden"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Insgesamt %d Warnungen gefunden"
|
msgstr "Insgesamt %d Warnungen gefunden"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr "Übersetzt"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
msgid "Translation"
|
msgid "Translation"
|
||||||
@ -437,7 +449,7 @@ msgstr "Alle abwählen"
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr "Alle Dateien abwählen"
|
msgstr "Alle Dateien abwählen"
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr "Nicht übersetzt"
|
msgstr ""
|
||||||
|
|
||||||
|
@ -211,9 +211,9 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr "Confuso"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
msgid "Graphical summary"
|
msgid "Graphical summary"
|
||||||
@ -407,13 +407,25 @@ msgstr ""
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Total de errores encontrados: %d"
|
msgstr "Total de errores encontrados: %d"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Total de avisos encontrados: %d"
|
msgstr "Total de avisos encontrados: %d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr "Traducido"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
msgid "Translation"
|
msgid "Translation"
|
||||||
@ -435,7 +447,7 @@ msgstr "&Deseleccionar Todo"
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr "Deseleccionar todos los ficheros"
|
msgstr "Deseleccionar todos los ficheros"
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr "Sin traducción"
|
msgstr ""
|
||||||
|
|
||||||
|
@ -213,9 +213,9 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr "Trouver des fichiers gênants"
|
msgstr "Trouver des fichiers gênants"
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr "Flou"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
msgid "Graphical summary"
|
msgid "Graphical summary"
|
||||||
@ -409,13 +409,25 @@ msgstr "Le(s) %s fichier(s) .po orphelin(s) détecté(s) :"
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Total des erreurs : %d"
|
msgstr "Total des erreurs : %d"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Total des avertissements : %d"
|
msgstr "Total des avertissements : %d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr "Traduit"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
msgid "Translation"
|
msgid "Translation"
|
||||||
@ -437,7 +449,7 @@ msgstr "Tout &désélectionner"
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr "Désélectionner tous les fichiers"
|
msgstr "Désélectionner tous les fichiers"
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr "Non traduit"
|
msgstr ""
|
||||||
|
|
||||||
|
@ -213,9 +213,9 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr "Aggasztó fájlok keresése"
|
msgstr "Aggasztó fájlok keresése"
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr "Bizonytalan"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
msgid "Graphical summary"
|
msgid "Graphical summary"
|
||||||
@ -409,13 +409,25 @@ msgstr "A következő %s elárvult .po fájl található:"
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Összes megtalált hiba: %d"
|
msgstr "Összes megtalált hiba: %d"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Összes figyelmeztetés: %d"
|
msgstr "Összes figyelmeztetés: %d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr "Lefordítva"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
msgid "Translation"
|
msgid "Translation"
|
||||||
@ -437,7 +449,7 @@ msgstr "Kijelölések törlése"
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr "Kijelölés megszüntetése"
|
msgstr "Kijelölés megszüntetése"
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr "Nincs lefordítva"
|
msgstr ""
|
||||||
|
|
||||||
|
@ -215,9 +215,9 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr "Incerto"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
msgid "Graphical summary"
|
msgid "Graphical summary"
|
||||||
@ -411,13 +411,25 @@ msgstr ""
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Totale errori trovati: %d"
|
msgstr "Totale errori trovati: %d"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Totale avvertimenti: %d"
|
msgstr "Totale avvertimenti: %d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr "Tradotte"
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
msgid "Translation"
|
msgid "Translation"
|
||||||
@ -439,7 +451,7 @@ msgstr "&Deseleziona tutto"
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr "Deseleziona"
|
msgstr "Deseleziona"
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr "Non tradotte"
|
msgstr ""
|
||||||
|
|
||||||
|
@ -211,8 +211,8 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
@ -407,12 +407,24 @@ msgstr ""
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "エラー/警告の総数:%d"
|
msgstr "エラー/警告の総数:%d"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "警告の総数:%d"
|
msgstr "警告の総数:%d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
@ -437,7 +449,7 @@ msgstr ""
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -211,8 +211,8 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
@ -401,12 +401,24 @@ msgstr ""
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Viso rasta klaidų/perspėjimų: %d"
|
msgstr "Viso rasta klaidų/perspėjimų: %d"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Viso rasta perspėjimų: %d"
|
msgstr "Viso rasta perspėjimų: %d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
@ -429,7 +441,7 @@ msgstr ""
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -192,8 +192,8 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
@ -376,12 +376,24 @@ msgstr ""
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
@ -404,7 +416,7 @@ msgstr ""
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -210,8 +210,8 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
@ -400,12 +400,24 @@ msgstr ""
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Total de erros / avisos encontrados: %d"
|
msgstr "Total de erros / avisos encontrados: %d"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Total de avisos encontrados: %d"
|
msgstr "Total de avisos encontrados: %d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
@ -428,7 +440,7 @@ msgstr ""
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -213,9 +213,9 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr "Найти проблемные файлы"
|
msgstr "Найти проблемные файлы"
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr "Неточные переводы"
|
msgstr "Неточные переводы (всего: %s)"
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
msgid "Graphical summary"
|
msgid "Graphical summary"
|
||||||
@ -409,13 +409,25 @@ msgstr "Найдены файлы переводов PO (%s шт.) без соо
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Всего найдено ошибок: %d"
|
msgstr "Всего найдено ошибок: %d"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr "Всего неточных переводов: %s"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr "Всего переведённых строк: %s"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr "Всего непереведённых строк: %s"
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Всего найдено предупреждений: %d"
|
msgstr "Всего найдено предупреждений: %d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr "Переведённые строки"
|
msgstr "Переведённые строки (всего: %s)"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
msgid "Translation"
|
msgid "Translation"
|
||||||
@ -437,7 +449,7 @@ msgstr "&Снять выбор"
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr "Снять выбор файлов"
|
msgstr "Снять выбор файлов"
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr "Непереведённые строки"
|
msgstr "Непереведённые строки (всего: %s)"
|
||||||
|
|
||||||
|
@ -208,8 +208,8 @@ msgstr ""
|
|||||||
msgid "Find troublesome files"
|
msgid "Find troublesome files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sfuzzy
|
#: pocheckerconsts.sfuzzystringstotal
|
||||||
msgid "Fuzzy"
|
msgid "Fuzzy strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sgrapstatformcaption
|
#: pocheckerconsts.sgrapstatformcaption
|
||||||
@ -398,12 +398,24 @@ msgstr ""
|
|||||||
msgid "Total errors found: %d"
|
msgid "Total errors found: %d"
|
||||||
msgstr "Знайдено всього помилок / попереджень: %d"
|
msgstr "Знайдено всього помилок / попереджень: %d"
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotalfuzzystrings
|
||||||
|
msgid "Total fuzzy strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaltranslatedstrings
|
||||||
|
msgid "Total translated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.stotaluntranslatedstrings
|
||||||
|
msgid "Total untranslated strings: %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stotalwarnings
|
#: pocheckerconsts.stotalwarnings
|
||||||
msgid "Total warnings found: %d"
|
msgid "Total warnings found: %d"
|
||||||
msgstr "Знайдено всього попереджень: %d"
|
msgstr "Знайдено всього попереджень: %d"
|
||||||
|
|
||||||
#: pocheckerconsts.stranslated
|
#: pocheckerconsts.stranslatedstringstotal
|
||||||
msgid "Translated"
|
msgid "Translated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.stranslation
|
#: pocheckerconsts.stranslation
|
||||||
@ -426,7 +438,7 @@ msgstr ""
|
|||||||
msgid "Unselect all files"
|
msgid "Unselect all files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.suntranslated
|
#: pocheckerconsts.suntranslatedstringstotal
|
||||||
msgid "Untranslated"
|
msgid "Untranslated strings (total: %s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -30,6 +30,9 @@ resourcestring
|
|||||||
|
|
||||||
sTotalErrors = 'Total errors found: %d';
|
sTotalErrors = 'Total errors found: %d';
|
||||||
sTotalWarnings = 'Total warnings found: %d';
|
sTotalWarnings = 'Total warnings found: %d';
|
||||||
|
sTotalUntranslatedStrings = 'Total untranslated strings: %s';
|
||||||
|
sTotalFuzzyStrings = 'Total fuzzy strings: %s';
|
||||||
|
sTotalTranslatedStrings = 'Total translated strings: %s';
|
||||||
sNoErrorsFound = 'No errors found';
|
sNoErrorsFound = 'No errors found';
|
||||||
sCurrentTest = 'Test: %s on %s';
|
sCurrentTest = 'Test: %s on %s';
|
||||||
sNoTestSelected = 'There are no tests selected.';
|
sNoTestSelected = 'There are no tests selected.';
|
||||||
@ -44,9 +47,9 @@ resourcestring
|
|||||||
|
|
||||||
//Graphical summary form
|
//Graphical summary form
|
||||||
sGrapStatFormCaption = 'Graphical summary';
|
sGrapStatFormCaption = 'Graphical summary';
|
||||||
sTranslated = 'Translated';
|
sTranslatedStringsTotal = 'Translated strings (total: %s)';
|
||||||
sUntranslated = 'Untranslated';
|
sUntranslatedStringsTotal = 'Untranslated strings (total: %s)';
|
||||||
sFuzzy = 'Fuzzy';
|
sFuzzyStringsTotal = 'Fuzzy strings (total: %s)';
|
||||||
sStatHint = '%3d Translated (%3.1f%%)' + LineEnding +
|
sStatHint = '%3d Translated (%3.1f%%)' + LineEnding +
|
||||||
'%3d UnTranslated (%3.1f%%)' + LineEnding +
|
'%3d UnTranslated (%3.1f%%)' + LineEnding +
|
||||||
'%3d Fuzzy (%3.1f%%)' + LineEnding +
|
'%3d Fuzzy (%3.1f%%)' + LineEnding +
|
||||||
|
@ -583,6 +583,7 @@ var
|
|||||||
TestTypes: TPoTestTypes;
|
TestTypes: TPoTestTypes;
|
||||||
TestOptions: TPoTestOptions;
|
TestOptions: TPoTestOptions;
|
||||||
ErrorCount, WarningCount: integer;
|
ErrorCount, WarningCount: integer;
|
||||||
|
TotalTranslatedCount, TotalUntranslatedCount, TotalFuzzyCount: Integer;
|
||||||
SL: TStrings;
|
SL: TStrings;
|
||||||
ResultDlg: TResultDlgForm;
|
ResultDlg: TResultDlgForm;
|
||||||
mr: TModalResult;
|
mr: TModalResult;
|
||||||
@ -601,7 +602,7 @@ begin
|
|||||||
try
|
try
|
||||||
PoFamilyList.TestTypes := TestTypes;
|
PoFamilyList.TestTypes := TestTypes;
|
||||||
PoFamilyList.TestOptions := TestOptions;
|
PoFamilyList.TestOptions := TestOptions;
|
||||||
PoFamilyList.RunTests(ErrorCount, WarningCount, SL);
|
PoFamilyList.RunTests(ErrorCount, WarningCount, TotalTranslatedCount, TotalUntranslatedCount, TotalFuzzyCount, SL);
|
||||||
//debugln('RunSelectedTests: ', Format(sTotalErrors, [ErrorCount]));
|
//debugln('RunSelectedTests: ', Format(sTotalErrors, [ErrorCount]));
|
||||||
//debugln(' ', Format(sTotalWarnings, [WarningCount]));
|
//debugln(' ', Format(sTotalWarnings, [WarningCount]));
|
||||||
if (ErrorCount > 0) or (WarningCount > 0) or
|
if (ErrorCount > 0) or (WarningCount > 0) or
|
||||||
@ -609,8 +610,15 @@ begin
|
|||||||
begin
|
begin
|
||||||
SL.Add(Format(sTotalErrors, [ErrorCount]));
|
SL.Add(Format(sTotalErrors, [ErrorCount]));
|
||||||
SL.Add(Format(sTotalWarnings, [WarningCount]));
|
SL.Add(Format(sTotalWarnings, [WarningCount]));
|
||||||
|
SL.Add(Format(sTotalUntranslatedStrings, [IntToStr(TotalUntranslatedCount)]));
|
||||||
|
SL.Add(Format(sTotalFuzzyStrings, [IntToStr(TotalFuzzyCount)]));
|
||||||
|
SL.Add('');
|
||||||
|
SL.Add(Format(sTotalTranslatedStrings, [IntToStr(TotalTranslatedCount)]));
|
||||||
ResultDlg := TResultDlgForm.Create(nil);
|
ResultDlg := TResultDlgForm.Create(nil);
|
||||||
try
|
try
|
||||||
|
ResultDlg.FTotalTranslated := TotalTranslatedCount;
|
||||||
|
ResultDlg.FTotalUntranslated := TotalUntranslatedCount;
|
||||||
|
ResultDlg.FTotalFuzzy := TotalFuzzyCount;
|
||||||
ResultDlg.Log.Assign(SL);
|
ResultDlg.Log.Assign(SL);
|
||||||
FreeAndNil(SL); //No need to keep 2 copies of this data
|
FreeAndNil(SL); //No need to keep 2 copies of this data
|
||||||
if (pttCheckStatistics in TestTypes) then
|
if (pttCheckStatistics in TestTypes) then
|
||||||
|
@ -72,7 +72,7 @@ Type
|
|||||||
procedure CheckStatistics(ErrorCnt: Integer);
|
procedure CheckStatistics(ErrorCnt: Integer);
|
||||||
|
|
||||||
public
|
public
|
||||||
procedure RunTests(out ErrorCount, WarningCount: Integer; ErrorLog: TStrings);
|
procedure RunTests(out ErrorCount, WarningCount, TranslatedCount, UntranslatedCount, FuzzyCount: Integer; ErrorLog: TStrings);
|
||||||
|
|
||||||
property Master: TPOFile read FMaster;
|
property Master: TPOFile read FMaster;
|
||||||
property Child: TPOFile read FChild;
|
property Child: TPOFile read FChild;
|
||||||
@ -792,7 +792,7 @@ Pre conditions:
|
|||||||
* Master and a matching Child must be assigned at start ot testing
|
* Master and a matching Child must be assigned at start ot testing
|
||||||
* If a Child is assigned it must be child of Master
|
* If a Child is assigned it must be child of Master
|
||||||
}
|
}
|
||||||
procedure TPoFamily.RunTests(out ErrorCount, WarningCount: Integer; ErrorLog: TStrings);
|
procedure TPoFamily.RunTests(out ErrorCount, WarningCount, TranslatedCount, UntranslatedCount, FuzzyCount: Integer; ErrorLog: TStrings);
|
||||||
var
|
var
|
||||||
SL: TStringList;
|
SL: TStringList;
|
||||||
CurrErrCnt, CurrWarnCnt, ThisErrCnt: Integer;
|
CurrErrCnt, CurrWarnCnt, ThisErrCnt: Integer;
|
||||||
@ -804,6 +804,9 @@ begin
|
|||||||
FPoFamilyStats.Clear;
|
FPoFamilyStats.Clear;
|
||||||
ErrorCount := NoError;
|
ErrorCount := NoError;
|
||||||
WarningCount := NoError;
|
WarningCount := NoError;
|
||||||
|
TranslatedCount := 0;
|
||||||
|
UntranslatedCount := 0;
|
||||||
|
FuzzyCount := 0;
|
||||||
if (not Assigned(FMaster)) and (not Assigned(FChild)) then
|
if (not Assigned(FMaster)) and (not Assigned(FChild)) then
|
||||||
begin
|
begin
|
||||||
{$ifdef DebugSimplePoFiles}
|
{$ifdef DebugSimplePoFiles}
|
||||||
@ -919,8 +922,10 @@ begin
|
|||||||
ThisErrCnt := ThisErrCnt + CurrErrCnt;
|
ThisErrCnt := ThisErrCnt + CurrErrCnt;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
//Always run this as the last test please
|
//Always run this as the last test please
|
||||||
|
TranslatedCount := FChild.NrTranslated;
|
||||||
|
UntranslatedCount := FChild.NrUntranslated;
|
||||||
|
FuzzyCount := FChild.NrFuzzy;
|
||||||
if (pttCheckStatistics in FTestTypes) then
|
if (pttCheckStatistics in FTestTypes) then
|
||||||
begin
|
begin
|
||||||
CheckStatistics(ThisErrCnt);
|
CheckStatistics(ThisErrCnt);
|
||||||
|
@ -36,7 +36,7 @@ type
|
|||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
procedure Add(PoFamily: TPofamily);
|
procedure Add(PoFamily: TPofamily);
|
||||||
function Count: Integer;
|
function Count: Integer;
|
||||||
procedure RunTests(out ErrorCount, WarningCount: Integer; ErrorLog: TStrings);
|
procedure RunTests(out ErrorCount, WarningCount, TotalTranslatedCount, TotalUntranslatedCount, TotalFuzzyCount: Integer; ErrorLog: TStrings);
|
||||||
property Items[Index: Integer]: TPoFamily read GetItem; // write SetItem;
|
property Items[Index: Integer]: TPoFamily read GetItem; // write SetItem;
|
||||||
property PoFamilyStats: TPoFamilyStats read FPoFamilyStats;
|
property PoFamilyStats: TPoFamilyStats read FPoFamilyStats;
|
||||||
property TestTypes: TPoTestTypes read FTestTypes write FTestTypes;
|
property TestTypes: TPoTestTypes read FTestTypes write FTestTypes;
|
||||||
@ -116,10 +116,11 @@ begin
|
|||||||
Result := FList.Count;
|
Result := FList.Count;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TPoFamilyList.RunTests(out ErrorCount, WarningCount: Integer;
|
procedure TPoFamilyList.RunTests(out ErrorCount, WarningCount, TotalTranslatedCount, TotalUntranslatedCount, TotalFuzzyCount: Integer;
|
||||||
ErrorLog: TStrings);
|
ErrorLog: TStrings);
|
||||||
var
|
var
|
||||||
Index, ThisErrorCount, ThisWarningCount: Integer;
|
Index, ThisErrorCount, ThisWarningCount: Integer;
|
||||||
|
ThisTranslatedCount, ThisUntranslatedCount, ThisFuzzyCount: Integer;
|
||||||
PoFamily: TPoFamily;
|
PoFamily: TPoFamily;
|
||||||
//ThisLog: TStringList;
|
//ThisLog: TStringList;
|
||||||
begin
|
begin
|
||||||
@ -131,6 +132,9 @@ begin
|
|||||||
//ThisLog := TStringList.Create;
|
//ThisLog := TStringList.Create;
|
||||||
ErrorCount := NoError;
|
ErrorCount := NoError;
|
||||||
WarningCount := NoError;
|
WarningCount := NoError;
|
||||||
|
TotalTranslatedCount := 0;
|
||||||
|
TotalUntranslatedCount := 0;
|
||||||
|
TotalFuzzyCount := 0;
|
||||||
FPoFamilyStats.Clear;
|
FPoFamilyStats.Clear;
|
||||||
try
|
try
|
||||||
for Index := 0 to FList.Count - 1 do
|
for Index := 0 to FList.Count - 1 do
|
||||||
@ -140,10 +144,13 @@ begin
|
|||||||
PoFamily.OnTestEnd := FOnTestEnd;
|
PoFamily.OnTestEnd := FOnTestEnd;
|
||||||
PoFamily.TestTypes := FTesttypes;
|
PoFamily.TestTypes := FTesttypes;
|
||||||
PoFamily.TestOptions := FTestOptions;
|
PoFamily.TestOptions := FTestOptions;
|
||||||
PoFamily.RunTests(ThisErrorCount, ThisWarningCount, ErrorLog);
|
PoFamily.RunTests(ThisErrorCount, ThisWarningCount, ThisTranslatedCount, ThisUntranslatedCount, ThisFuzzyCount, ErrorLog);
|
||||||
PoFamily.PoFamilyStats.AddItemsTo(FPoFamilyStats);
|
PoFamily.PoFamilyStats.AddItemsTo(FPoFamilyStats);
|
||||||
ErrorCount := ErrorCount + ThisErrorCount;
|
ErrorCount := ErrorCount + ThisErrorCount;
|
||||||
WarningCount := WarningCount + ThisWarningCount;
|
WarningCount := WarningCount + ThisWarningCount;
|
||||||
|
TotalTranslatedCount := TotalTranslatedCount + ThisTranslatedCount;
|
||||||
|
TotalUntranslatedCount := TotalUntranslatedCount + ThisUntranslatedCount;
|
||||||
|
TotalFuzzyCount := TotalFuzzyCount + ThisFuzzyCount;
|
||||||
//ThisLog.AddStrings(ErrorLog)
|
//ThisLog.AddStrings(ErrorLog)
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
@ -38,6 +38,11 @@ type
|
|||||||
procedure LoadConfig;
|
procedure LoadConfig;
|
||||||
procedure SaveConfig;
|
procedure SaveConfig;
|
||||||
public
|
public
|
||||||
|
// The following fields keep translation statistics calculated during tests performing.
|
||||||
|
// They will allow to not calculate these values again in GraphStat form.
|
||||||
|
FTotalTranslated: Integer;
|
||||||
|
FTotalUntranslated: Integer;
|
||||||
|
FTotalFuzzy: Integer;
|
||||||
property Log: TStringList read FLog write FLog;
|
property Log: TStringList read FLog write FLog;
|
||||||
property PoFamilyStats: TPoFamilyStats read FPoFamilyStats write FPoFamilyStats;
|
property PoFamilyStats: TPoFamilyStats read FPoFamilyStats write FPoFamilyStats;
|
||||||
property Settings: TPoCheckerSettings read FSettings write FSettings;
|
property Settings: TPoCheckerSettings read FSettings write FSettings;
|
||||||
@ -60,6 +65,9 @@ begin
|
|||||||
SaveBtn.Caption := sSaveCaption;
|
SaveBtn.Caption := sSaveCaption;
|
||||||
CopyBtn.Caption := sCopyCaption;
|
CopyBtn.Caption := sCopyCaption;
|
||||||
GraphStatBtn.Caption := sShowStatGraph;
|
GraphStatBtn.Caption := sShowStatGraph;
|
||||||
|
FTotalTranslated := 0;
|
||||||
|
FTotalUntranslated := 0;
|
||||||
|
FTotalFuzzy := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TResultDlgForm.FormClose(Sender: TObject;
|
procedure TResultDlgForm.FormClose(Sender: TObject;
|
||||||
@ -107,6 +115,14 @@ begin
|
|||||||
try
|
try
|
||||||
GraphStatForm.PoFamilyStats := Self.PoFamilyStats;
|
GraphStatForm.PoFamilyStats := Self.PoFamilyStats;
|
||||||
GraphStatForm.Settings := Self.Settings;
|
GraphStatForm.Settings := Self.Settings;
|
||||||
|
|
||||||
|
GraphStatForm.TranslatedLabel.Caption := Format(sTranslatedStringsTotal, [
|
||||||
|
IntToStr(FTotalTranslated)]);
|
||||||
|
GraphStatForm.UnTranslatedLabel.Caption := Format(sUntranslatedStringsTotal
|
||||||
|
, [IntToStr(FTotalUntranslated)]);
|
||||||
|
GraphStatForm.FuzzyLabel.Caption := Format(sFuzzyStringsTotal, [IntToStr(
|
||||||
|
FTotalFuzzy)]);
|
||||||
|
|
||||||
mr := GraphStatForm.ShowModal;
|
mr := GraphStatForm.ShowModal;
|
||||||
if mr = mrOpenEditorFile then ModalResult := mr; // To inform pocheckermain
|
if mr = mrOpenEditorFile then ModalResult := mr; // To inform pocheckermain
|
||||||
finally
|
finally
|
||||||
@ -121,7 +137,7 @@ begin
|
|||||||
try
|
try
|
||||||
LogMemo.Lines.SaveToFile(SaveDialog.FileName);
|
LogMemo.Lines.SaveToFile(SaveDialog.FileName);
|
||||||
except
|
except
|
||||||
on E: EStreamError do MessageDlg('Po-checker',Format(sSaveError,[SaveDialog.FileName]),mtError, [mbOk],0);
|
on E: EStreamError do MessageDlg('POChecker',Format(sSaveError,[SaveDialog.FileName]),mtError, [mbOk],0);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -133,7 +149,7 @@ begin
|
|||||||
try
|
try
|
||||||
LogMemo.Lines.SaveToFile(SaveDialog.FileName);
|
LogMemo.Lines.SaveToFile(SaveDialog.FileName);
|
||||||
except
|
except
|
||||||
MessageDlg('Po-checker',Format(sSaveError,[SaveDialog.FileName]), mtError, [mbOk], 0);
|
MessageDlg('POChecker',Format(sSaveError,[SaveDialog.FileName]), mtError, [mbOk], 0);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user