mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 11:30:28 +02:00
PoChecker:
- Add capability to open file in external editor (stand-alone version). - Regenerate language files. git-svn-id: trunk@46386 -
This commit is contained in:
parent
948659f90d
commit
325ae8915a
@ -6,7 +6,11 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Types, FileUtil, Forms, Controls, Graphics, Dialogs,
|
Classes, SysUtils, Types, FileUtil, Forms, Controls, Graphics, Dialogs,
|
||||||
{$ifndef POCHECKERSTANDALONE} LazIDEIntf, {$endif}
|
{$ifndef POCHECKERSTANDALONE}
|
||||||
|
LazIDEIntf,
|
||||||
|
{$else}
|
||||||
|
Process, Utf8Process,
|
||||||
|
{$endif}
|
||||||
ExtCtrls, PoFamilies, PoCheckerConsts, LCLProc, StdCtrls, ComCtrls,
|
ExtCtrls, PoFamilies, PoCheckerConsts, LCLProc, StdCtrls, ComCtrls,
|
||||||
PoCheckerSettings;
|
PoCheckerSettings;
|
||||||
|
|
||||||
@ -117,14 +121,16 @@ end;
|
|||||||
|
|
||||||
procedure TGraphStatForm.ListViewMouseUp(Sender: TObject; Button: TMouseButton;
|
procedure TGraphStatForm.ListViewMouseUp(Sender: TObject; Button: TMouseButton;
|
||||||
Shift: TShiftState; X, Y: Integer);
|
Shift: TShiftState; X, Y: Integer);
|
||||||
{$ifndef POCHECKERSTANDALONE}
|
|
||||||
var
|
var
|
||||||
anItem: TListItem;
|
anItem: TListItem;
|
||||||
anIndex: Integer;
|
anIndex: Integer;
|
||||||
AStat: TStat;
|
AStat: TStat;
|
||||||
|
mr: TModalResult;
|
||||||
|
{$ifndef POCHECKERSTANDALONE}
|
||||||
PageIndex,WindowIndex: Integer;
|
PageIndex,WindowIndex: Integer;
|
||||||
OpenFlags: TOpenFlags;
|
OpenFlags: TOpenFlags;
|
||||||
mr: TModalResult;
|
{$else}
|
||||||
|
Proc: TProcessUtf8;
|
||||||
{$endif}
|
{$endif}
|
||||||
begin
|
begin
|
||||||
{$ifndef POCHECKERSTANDALONE}
|
{$ifndef POCHECKERSTANDALONE}
|
||||||
@ -144,6 +150,37 @@ begin
|
|||||||
end
|
end
|
||||||
else ShowMessage(Format(SOpenFail,[AStat.PoName]));
|
else ShowMessage(Format(SOpenFail,[AStat.PoName]));
|
||||||
end;
|
end;
|
||||||
|
{$else}
|
||||||
|
anItem := Listview.GetItemAt(X, Y);
|
||||||
|
if Assigned(anItem) and (Settings.ExternalEditorName <> '') then
|
||||||
|
begin
|
||||||
|
anIndex := anItem.Index;
|
||||||
|
AStat := FPoFamilyStats.Items[anIndex];
|
||||||
|
if MessageDlg('PoChecker',Format(sOpenFileExternal,[AStat.PoName,Settings.ExternalEditorName]),
|
||||||
|
mtConfirmation,mbOKCancel,0) = mrOk then
|
||||||
|
begin
|
||||||
|
Proc := TProcessUtf8.Create(nil);
|
||||||
|
try
|
||||||
|
Proc.Options := [];
|
||||||
|
Proc.Executable := Settings.ExternalEditorName;
|
||||||
|
Proc.Parameters.Add(AStat.PoName);
|
||||||
|
try
|
||||||
|
Proc.Execute;
|
||||||
|
except
|
||||||
|
on E: EProcess do
|
||||||
|
begin
|
||||||
|
debugln('TGraphStatForm.ListViewMouseUp:');
|
||||||
|
debugln(' Exception occurred of type ',E.ClassName);
|
||||||
|
debugln(' Message: ',E.Message);
|
||||||
|
ShowMessage(Format(SOpenFailExternal,[AStat.PoName,Settings.ExternalEditorName]));
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
finally
|
||||||
|
Proc.Free;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end;
|
||||||
{$endif}
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -57,6 +57,10 @@ msgstr "Spočítat procentuální zastoupení (ne)přeložených a nepřesných
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Kopírovat do schránky"
|
msgstr "Kopírovat do schránky"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[Řádek %d] %s"
|
msgstr "[Řádek %d] %s"
|
||||||
@ -171,13 +175,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr "&Otevřít PO soubor"
|
msgstr "&Otevřít PO soubor"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "Originál"
|
msgstr "Originál"
|
||||||
|
@ -54,6 +54,10 @@ msgstr "Zeige Prozente (nicht) übersetzter und ungeklärter Zeichenketten"
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "In Zwischenablage kopieren"
|
msgstr "In Zwischenablage kopieren"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[Zeile %d] %s"
|
msgstr "[Zeile %d] %s"
|
||||||
@ -168,13 +172,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr "p&o-Datei öffnen"
|
msgstr "p&o-Datei öffnen"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "Original"
|
msgstr "Original"
|
||||||
@ -250,6 +272,10 @@ msgstr "Zeige Statistik-Graphik"
|
|||||||
#| "%3d UnTranslated (%3.1f%%)\n"
|
#| "%3d UnTranslated (%3.1f%%)\n"
|
||||||
#| "%3d Fuzzy (%3.1f%%)\n"
|
#| "%3d Fuzzy (%3.1f%%)\n"
|
||||||
#| "%d Error(s) in Selected Tests\n"
|
#| "%d Error(s) in Selected Tests\n"
|
||||||
|
#| "%3d Translated (%3.1f%%)\n"
|
||||||
|
#| "%3d UnTranslated (%3.1f%%)\n"
|
||||||
|
#| "%3d Fuzzy (%3.1f%%)\n"
|
||||||
|
#| "%d Error(s) in Selected Tests\n"
|
||||||
msgid ""
|
msgid ""
|
||||||
"%3d Translated (%3.1f%%)\n"
|
"%3d Translated (%3.1f%%)\n"
|
||||||
"%3d UnTranslated (%3.1f%%)\n"
|
"%3d UnTranslated (%3.1f%%)\n"
|
||||||
|
@ -53,6 +53,10 @@ msgstr ""
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Copiar en el portapapeles"
|
msgstr "Copiar en el portapapeles"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[Línea %d] %s"
|
msgstr "[Línea %d] %s"
|
||||||
@ -168,13 +172,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr "Abrir un fichero p&o"
|
msgstr "Abrir un fichero p&o"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "Original"
|
msgstr "Original"
|
||||||
|
@ -55,6 +55,10 @@ msgstr "A lefordított és lefordítatlan szövegek százalékának ellenőrzés
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Másolás vágólapra"
|
msgstr "Másolás vágólapra"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[Sor: %d] %s"
|
msgstr "[Sor: %d] %s"
|
||||||
@ -168,13 +172,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr "PO fájl megnyitása"
|
msgstr "PO fájl megnyitása"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "Eredeti"
|
msgstr "Eredeti"
|
||||||
|
@ -53,6 +53,10 @@ msgstr "Verifica le percentuali di stringhe tradotte o incerte"
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Copia negli appunti"
|
msgstr "Copia negli appunti"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[Riga %d] %s"
|
msgstr "[Riga %d] %s"
|
||||||
@ -166,13 +170,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr "&Aprire un file po"
|
msgstr "&Aprire un file po"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "Originale"
|
msgstr "Originale"
|
||||||
|
@ -55,6 +55,10 @@ msgstr "翻訳/未翻訳、未確定文字列の割合を検査"
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "クリップボードへコピー"
|
msgstr "クリップボードへコピー"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[行 %d] %s"
|
msgstr "[行 %d] %s"
|
||||||
@ -168,13 +172,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr "po ファイルを開く(&O)"
|
msgstr "po ファイルを開く(&O)"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "原文"
|
msgstr "原文"
|
||||||
|
@ -55,6 +55,10 @@ msgstr ""
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Kopijuoti į iškarpinę"
|
msgstr "Kopijuoti į iškarpinę"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[Eilutė %d] %s"
|
msgstr "[Eilutė %d] %s"
|
||||||
@ -170,13 +174,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr "At&verti PO failą"
|
msgstr "At&verti PO failą"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "Originalas"
|
msgstr "Originalas"
|
||||||
|
@ -41,6 +41,10 @@ msgstr ""
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -146,13 +150,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -54,6 +54,10 @@ msgstr ""
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Copiar para área de transferência"
|
msgstr "Copiar para área de transferência"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[Linha %d] %s"
|
msgstr "[Linha %d] %s"
|
||||||
@ -168,13 +172,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr "&Abrir um arquivo PO"
|
msgstr "&Abrir um arquivo PO"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "Original"
|
msgstr "Original"
|
||||||
|
@ -53,6 +53,10 @@ msgstr "Вывод статистики по (не)переведённым и
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Копировать в буфер обмена"
|
msgstr "Копировать в буфер обмена"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[Строка %d] %s"
|
msgstr "[Строка %d] %s"
|
||||||
@ -167,13 +171,33 @@ msgid "&Open a po-file"
|
|||||||
msgstr "&Открыть файл PO"
|
msgstr "&Открыть файл PO"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
#, fuzzy
|
||||||
|
#| msgid "Unable to open file %s"
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr "Невозможно открыть файл %s"
|
msgstr "Невозможно открыть файл %s"
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr "Открыть файл %s в редакторе IDE?"
|
msgstr "Открыть файл %s в редакторе IDE?"
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "Исходная строка"
|
msgstr "Исходная строка"
|
||||||
@ -232,6 +256,7 @@ msgid "Show statistics graph"
|
|||||||
msgstr "Показать графическую сводку"
|
msgstr "Показать графическую сводку"
|
||||||
|
|
||||||
#: pocheckerconsts.sstathint
|
#: pocheckerconsts.sstathint
|
||||||
|
#, fuzzy
|
||||||
#| msgid ""
|
#| msgid ""
|
||||||
#| "%3.1f %% Translated\n"
|
#| "%3.1f %% Translated\n"
|
||||||
#| "%3.1f %% UnTranslated\n"
|
#| "%3.1f %% UnTranslated\n"
|
||||||
@ -252,6 +277,10 @@ msgstr "Показать графическую сводку"
|
|||||||
#| "%3d UnTranslated (%3.1f%%)\n"
|
#| "%3d UnTranslated (%3.1f%%)\n"
|
||||||
#| "%3d Fuzzy (%3.1f%%)\n"
|
#| "%3d Fuzzy (%3.1f%%)\n"
|
||||||
#| "%d Error(s) in Selected Tests\n"
|
#| "%d Error(s) in Selected Tests\n"
|
||||||
|
#| "%3d Translated (%3.1f%%)\n"
|
||||||
|
#| "%3d UnTranslated (%3.1f%%)\n"
|
||||||
|
#| "%3d Fuzzy (%3.1f%%)\n"
|
||||||
|
#| "%d Error(s) in Selected Tests\n"
|
||||||
msgid ""
|
msgid ""
|
||||||
"%3d Translated (%3.1f%%)\n"
|
"%3d Translated (%3.1f%%)\n"
|
||||||
"%3d UnTranslated (%3.1f%%)\n"
|
"%3d UnTranslated (%3.1f%%)\n"
|
||||||
|
@ -52,6 +52,10 @@ msgstr ""
|
|||||||
msgid "Copy to clipboard"
|
msgid "Copy to clipboard"
|
||||||
msgstr "Копіювати в буфер"
|
msgstr "Копіювати в буфер"
|
||||||
|
|
||||||
|
#: pocheckerconsts.scurrenttest
|
||||||
|
msgid "Test: %s on %s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sduplicatelinenrwithvalue
|
#: pocheckerconsts.sduplicatelinenrwithvalue
|
||||||
msgid "[Line %d] %s"
|
msgid "[Line %d] %s"
|
||||||
msgstr "[Рядок %d] %s"
|
msgstr "[Рядок %d] %s"
|
||||||
@ -167,13 +171,31 @@ msgid "&Open a po-file"
|
|||||||
msgstr "&Відкрити po-файл"
|
msgstr "&Відкрити po-файл"
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfail
|
#: pocheckerconsts.sopenfail
|
||||||
msgid "Unable to open file %s"
|
msgid ""
|
||||||
|
"Unable to open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfailexternal
|
||||||
|
msgid ""
|
||||||
|
"Unable to open file\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor\n"
|
||||||
|
"\"%s\"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.sopenfile
|
#: pocheckerconsts.sopenfile
|
||||||
msgid "Open file %s in Ide Editor?"
|
msgid "Open file %s in Ide Editor?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: pocheckerconsts.sopenfileexternal
|
||||||
|
msgid ""
|
||||||
|
"Open file:\n"
|
||||||
|
"\"%s\"\n"
|
||||||
|
"in external editor:\n"
|
||||||
|
"\"%s\"?\n"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pocheckerconsts.soriginal
|
#: pocheckerconsts.soriginal
|
||||||
msgid "Original"
|
msgid "Original"
|
||||||
msgstr "Оригінал"
|
msgstr "Оригінал"
|
||||||
|
@ -24,6 +24,7 @@ resourcestring
|
|||||||
sTotalErrors = 'Total errors found: %d';
|
sTotalErrors = 'Total errors found: %d';
|
||||||
sTotalWarnings = 'Total warnings found: %d';
|
sTotalWarnings = 'Total warnings found: %d';
|
||||||
sNoErrorsFound = 'No errors found';
|
sNoErrorsFound = 'No errors found';
|
||||||
|
sCurrentTest = 'Test: %s on %s';
|
||||||
sNoTestSelected = 'There are no tests selected.';
|
sNoTestSelected = 'There are no tests selected.';
|
||||||
|
|
||||||
//Result form
|
//Result form
|
||||||
@ -43,7 +44,12 @@ resourcestring
|
|||||||
'%3d Fuzzy (%3.1f%%)' + LineEnding +
|
'%3d Fuzzy (%3.1f%%)' + LineEnding +
|
||||||
'%d Error(s) in Selected Tests';
|
'%d Error(s) in Selected Tests';
|
||||||
sOpenFile = 'Open file %s in Ide Editor?';
|
sOpenFile = 'Open file %s in Ide Editor?';
|
||||||
SOpenFail = 'Unable to open file %s';
|
sOpenFileExternal = 'Open file:' + LineEnding + '"%s"' +
|
||||||
|
LineEnding + 'in external editor:' +
|
||||||
|
LineEnding + '"%s"?';
|
||||||
|
SOpenFail = 'Unable to open file:' + LineEnding + '"%s"';
|
||||||
|
SOpenFailExternal = 'Unable to open file' + LineEnding +
|
||||||
|
'"%s"' + LineEnding + 'in external editor' + LineEnding + '"%s"';
|
||||||
|
|
||||||
//PoFamiles
|
//PoFamiles
|
||||||
sOriginal = 'Original';
|
sOriginal = 'Original';
|
||||||
|
@ -202,7 +202,7 @@ procedure TPoCheckerForm.OnTestStart(const ATestName, APoFileName: string);
|
|||||||
begin
|
begin
|
||||||
//debugln('OnTestStart: ATestName = "',AtestName,'" APoFileName = "',APoFileName);
|
//debugln('OnTestStart: ATestName = "',AtestName,'" APoFileName = "',APoFileName);
|
||||||
StatusBar.SimplePanel := True;
|
StatusBar.SimplePanel := True;
|
||||||
StatusBar.SimpleText := Format('Test: %s on %s',[ATestName,APoFileName]);
|
StatusBar.SimpleText := Format(sCurrentTest,[ATestName,APoFileName]);
|
||||||
Application.ProcessMessages;
|
Application.ProcessMessages;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ type
|
|||||||
TPoCheckerSettings = class
|
TPoCheckerSettings = class
|
||||||
private
|
private
|
||||||
FConfig: TConfigStorage;
|
FConfig: TConfigStorage;
|
||||||
|
FExternalEditorName: String;
|
||||||
FFilename: String;
|
FFilename: String;
|
||||||
FTestTypes: TPoTestTypes;
|
FTestTypes: TPoTestTypes;
|
||||||
FTestOptions: TPoTestOptions;
|
FTestOptions: TPoTestOptions;
|
||||||
@ -35,12 +36,14 @@ type
|
|||||||
function LoadTestTypes: TPoTestTypes;
|
function LoadTestTypes: TPoTestTypes;
|
||||||
function LoadTestOptions: TPoTestOptions;
|
function LoadTestOptions: TPoTestOptions;
|
||||||
procedure LoadWindowsGeometry;
|
procedure LoadWindowsGeometry;
|
||||||
|
function LoadExternalEditorName: String;
|
||||||
procedure LoadMasterPoList(List: TStrings);
|
procedure LoadMasterPoList(List: TStrings);
|
||||||
procedure LoadChildrenPoList(List: TStrings);
|
procedure LoadChildrenPoList(List: TStrings);
|
||||||
procedure SaveLastSelectedFile;
|
procedure SaveLastSelectedFile;
|
||||||
procedure SaveTestTypes;
|
procedure SaveTestTypes;
|
||||||
procedure SaveTestOptions;
|
procedure SaveTestOptions;
|
||||||
procedure SaveWindowsGeometry;
|
procedure SaveWindowsGeometry;
|
||||||
|
procedure SaveExternalEditorName;
|
||||||
procedure SaveMasterPoList;
|
procedure SaveMasterPoList;
|
||||||
procedure SaveChildrenPoList;
|
procedure SaveChildrenPoList;
|
||||||
|
|
||||||
@ -55,6 +58,7 @@ type
|
|||||||
property SaveSettingsOnExit: Boolean read FSaveSettingsOnExit write FSaveSettingsOnExit;
|
property SaveSettingsOnExit: Boolean read FSaveSettingsOnExit write FSaveSettingsOnExit;
|
||||||
property TestTypes: TPoTestTypes read FTestTypes write FTestTypes;
|
property TestTypes: TPoTestTypes read FTestTypes write FTestTypes;
|
||||||
property TestOptions: TPoTestOptions read FTestOptions write FTestOptions;
|
property TestOptions: TPoTestOptions read FTestOptions write FTestOptions;
|
||||||
|
property ExternalEditorName: String read FExternalEditorName write FExternalEditorName;
|
||||||
property MasterPoList: TStrings read FMasterPoList write FMasterPoList;
|
property MasterPoList: TStrings read FMasterPoList write FMasterPoList;
|
||||||
property ChildrenPoList: TStrings read FChildrenPoList write FChildrenPoList;
|
property ChildrenPoList: TStrings read FChildrenPoList write FChildrenPoList;
|
||||||
property LastSelectedFile: String read FLastSelectedFile write FLastSelectedFile;
|
property LastSelectedFile: String read FLastSelectedFile write FLastSelectedFile;
|
||||||
@ -135,6 +139,7 @@ const
|
|||||||
pTestTypes = 'TestTypes/';
|
pTestTypes = 'TestTypes/';
|
||||||
pTestOptions = 'TestOptions/';
|
pTestOptions = 'TestOptions/';
|
||||||
pWindowsGeometry = 'General/WindowsGeometry/';
|
pWindowsGeometry = 'General/WindowsGeometry/';
|
||||||
|
pExternalEditor = 'ExternalEditor/';
|
||||||
pMasterPoFiles = 'MasterPoFiles/';
|
pMasterPoFiles = 'MasterPoFiles/';
|
||||||
pChildrenPoFiles = 'ChildrenPoFiles/';
|
pChildrenPoFiles = 'ChildrenPoFiles/';
|
||||||
|
|
||||||
@ -250,6 +255,20 @@ begin
|
|||||||
FConfig.GetValue(pWindowsGeometry+'GraphForm/Value',FGraphFormGeometry,DefaultRect);
|
FConfig.GetValue(pWindowsGeometry+'GraphForm/Value',FGraphFormGeometry,DefaultRect);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TPoCheckerSettings.LoadExternalEditorName: String;
|
||||||
|
begin
|
||||||
|
{$IFDEF POCHECKERSTANDALONE}
|
||||||
|
//allow override on commandline
|
||||||
|
if Application.HasOption('editor') then
|
||||||
|
Result := Application.GetOptionValue('editor')
|
||||||
|
else
|
||||||
|
Result := FConfig.GetValue(pExternalEditor+'Value','');
|
||||||
|
{$ELSE}
|
||||||
|
Result := '';
|
||||||
|
{$eNDIF}
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure TPoCheckerSettings.LoadMasterPoList(List: TStrings);
|
procedure TPoCheckerSettings.LoadMasterPoList(List: TStrings);
|
||||||
begin
|
begin
|
||||||
if not Assigned(List) then Exit;
|
if not Assigned(List) then Exit;
|
||||||
@ -298,6 +317,13 @@ begin
|
|||||||
FConfig.SetDeleteValue(pWindowsGeometry+'GraphForm/Value',FGraphFormGeometry,DefaultRect);
|
FConfig.SetDeleteValue(pWindowsGeometry+'GraphForm/Value',FGraphFormGeometry,DefaultRect);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TPoCheckerSettings.SaveExternalEditorName;
|
||||||
|
begin
|
||||||
|
{$IFDEF POCHECKERSTANDALONE}
|
||||||
|
FConfig.SetDeleteValue(pExternalEditor+'Value',FExternalEditorName,'');
|
||||||
|
{$ENDIF}
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TPoCheckerSettings.SaveMasterPoList;
|
procedure TPoCheckerSettings.SaveMasterPoList;
|
||||||
begin
|
begin
|
||||||
FConfig.DeletePath(pMasterPoFiles);
|
FConfig.DeletePath(pMasterPoFiles);
|
||||||
@ -351,6 +377,7 @@ begin
|
|||||||
FTestTypes := LoadTestTypes;
|
FTestTypes := LoadTestTypes;
|
||||||
FTestOptions := LoadTestOptions;
|
FTestOptions := LoadTestOptions;
|
||||||
FLastSelectedFile := LoadLastSelectedFile;
|
FLastSelectedFile := LoadLastSelectedFile;
|
||||||
|
FExternalEditorName := LoadExternalEditorName;
|
||||||
LoadWindowsGeometry;
|
LoadWindowsGeometry;
|
||||||
LoadMasterPoList(FMasterPoList);
|
LoadMasterPoList(FMasterPoList);
|
||||||
LoadChildrenPoList(FChildrenPoList);
|
LoadChildrenPoList(FChildrenPoList);
|
||||||
@ -372,6 +399,7 @@ begin
|
|||||||
SaveLastSelectedFile;
|
SaveLastSelectedFile;
|
||||||
SaveTestTypes;
|
SaveTestTypes;
|
||||||
SaveTestOptions;
|
SaveTestOptions;
|
||||||
|
SaveExternalEditorName;
|
||||||
SaveWindowsGeometry;
|
SaveWindowsGeometry;
|
||||||
SaveMasterPoList;
|
SaveMasterPoList;
|
||||||
SaveChildrenPoList;
|
SaveChildrenPoList;
|
||||||
|
Loading…
Reference in New Issue
Block a user