Delphi plugin: enabled i18n, unified some captions, added Russian translation

This commit is contained in:
Maxim Ganetsky 2023-05-16 01:36:39 +03:00
parent c839f41e37
commit 745e6c5db9
6 changed files with 94 additions and 3 deletions

View File

@ -66,7 +66,7 @@ end;
function TDelphiOptionsFrame.GetTitle: String;
begin
Result:=SDelphiToolOptionsTitle;
Result:=SDelphiLocalizedParserName;
end;
procedure TDelphiOptionsFrame.Setup(ADialog: TAbstractOptionsEditorDialog);

View File

@ -37,7 +37,7 @@ implementation
function TProjectDelphiOptionsFrame.GetTitle: string;
begin
Result:=SDelphiToolOptionsTitle
Result:=SDelphiLocalizedParserName;
end;
procedure TProjectDelphiOptionsFrame.Setup(ADialog: TAbstractOptionsEditorDialog);

View File

@ -0,0 +1,39 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: strdelphitool.sconfigfileextensioncaption
msgid "Configuration file extension"
msgstr ""
#: strdelphitool.sconvertdostounixcaption
msgid "Map filenames from Windows to Unix notation"
msgstr ""
#: strdelphitool.sdelphicompilecommand
msgid "Delphi compile command"
msgstr ""
#: strdelphitool.sdelphicompilerargs
msgid "Additional compiler options"
msgstr ""
#: strdelphitool.sdelphicompilerconfigfilename
msgid "Delphi compiler configuration filename for project"
msgstr ""
#: strdelphitool.sdelphicompilerfilenamecaption
msgid "Delphi compiler executable"
msgstr ""
#: strdelphitool.sdelphilocalizedparsername
msgid "Delphi Compiler"
msgstr ""
#: strdelphitool.sgenerateconfigfilecaption
msgid "Generate Delphi config file based on FPC compiler options"
msgstr ""
#: strdelphitool.sselectdelphiexecutable
msgid "Select Delphi compiler executable"
msgstr ""

View File

@ -0,0 +1,49 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: Maxim Ganetsky <maxkill@mail.ru>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ru\n"
"X-Generator: Poedit 2.4.3\n"
#: strdelphitool.sconfigfileextensioncaption
msgid "Configuration file extension"
msgstr "Расширение файла настройки"
#: strdelphitool.sconvertdostounixcaption
msgid "Map filenames from Windows to Unix notation"
msgstr "Преобразовывать имена файлов из представления Windows в Unix"
#: strdelphitool.sdelphicompilecommand
msgid "Delphi compile command"
msgstr "Команда компиляции Delphi"
#: strdelphitool.sdelphicompilerargs
msgid "Additional compiler options"
msgstr "Дополнительные параметры компилятора"
#: strdelphitool.sdelphicompilerconfigfilename
msgid "Delphi compiler configuration filename for project"
msgstr "Имя файла настройки компилятора Delphi для проекта"
#: strdelphitool.sdelphicompilerfilenamecaption
msgid "Delphi compiler executable"
msgstr "Исполнимый файл компилятора Delphi"
#: strdelphitool.sdelphilocalizedparsername
msgid "Delphi Compiler"
msgstr "Компилятор Delphi"
#: strdelphitool.sgenerateconfigfilecaption
msgid "Generate Delphi config file based on FPC compiler options"
msgstr "Создать файл настройки Delphi на основе параметров компилятора FPC"
#: strdelphitool.sselectdelphiexecutable
msgid "Select Delphi compiler executable"
msgstr "Выберите исполнимый файл компилятора Delphi"

View File

@ -36,6 +36,10 @@
<UnitName Value="fraprojectdelphioptions"/>
</Item>
</Files>
<i18n>
<EnableI18N Value="True"/>
<OutDir Value="languages"/>
</i18n>
<RequiredPkgs>
<Item>
<PackageName Value="IDEIntf"/>

View File

@ -29,7 +29,6 @@ const
resourcestring
SDelphiLocalizedParserName = 'Delphi Compiler';
SDelphiToolOptionsTitle = 'Delphi compiler plugin options';
SDelphiCompilerFileNameCaption = 'Delphi compiler executable';
SConfigFileExtensionCaption = 'Configuration file extension';
SGenerateConfigFileCaption = 'Generate Delphi config file based on FPC compiler options';