From 745e6c5db9fde935ee77fc476b15da33a0ffe782 Mon Sep 17 00:00:00 2001 From: Maxim Ganetsky Date: Tue, 16 May 2023 01:36:39 +0300 Subject: [PATCH] Delphi plugin: enabled i18n, unified some captions, added Russian translation --- .../compilers/delphi/fradelphioptions.pas | 2 +- .../delphi/fraprojectdelphioptions.pas | 2 +- .../delphi/languages/strdelphitool.pot | 39 +++++++++++++++ .../delphi/languages/strdelphitool.ru.po | 49 +++++++++++++++++++ components/compilers/delphi/lazdelphi.lpk | 4 ++ components/compilers/delphi/strdelphitool.pas | 1 - 6 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 components/compilers/delphi/languages/strdelphitool.pot create mode 100644 components/compilers/delphi/languages/strdelphitool.ru.po diff --git a/components/compilers/delphi/fradelphioptions.pas b/components/compilers/delphi/fradelphioptions.pas index eadbd4e2fc..fa19036420 100644 --- a/components/compilers/delphi/fradelphioptions.pas +++ b/components/compilers/delphi/fradelphioptions.pas @@ -66,7 +66,7 @@ end; function TDelphiOptionsFrame.GetTitle: String; begin - Result:=SDelphiToolOptionsTitle; + Result:=SDelphiLocalizedParserName; end; procedure TDelphiOptionsFrame.Setup(ADialog: TAbstractOptionsEditorDialog); diff --git a/components/compilers/delphi/fraprojectdelphioptions.pas b/components/compilers/delphi/fraprojectdelphioptions.pas index 55da02577d..c9c903d24a 100644 --- a/components/compilers/delphi/fraprojectdelphioptions.pas +++ b/components/compilers/delphi/fraprojectdelphioptions.pas @@ -37,7 +37,7 @@ implementation function TProjectDelphiOptionsFrame.GetTitle: string; begin - Result:=SDelphiToolOptionsTitle + Result:=SDelphiLocalizedParserName; end; procedure TProjectDelphiOptionsFrame.Setup(ADialog: TAbstractOptionsEditorDialog); diff --git a/components/compilers/delphi/languages/strdelphitool.pot b/components/compilers/delphi/languages/strdelphitool.pot new file mode 100644 index 0000000000..8ccad2e84c --- /dev/null +++ b/components/compilers/delphi/languages/strdelphitool.pot @@ -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 "" + diff --git a/components/compilers/delphi/languages/strdelphitool.ru.po b/components/compilers/delphi/languages/strdelphitool.ru.po new file mode 100644 index 0000000000..749209b2fe --- /dev/null +++ b/components/compilers/delphi/languages/strdelphitool.ru.po @@ -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 \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" + diff --git a/components/compilers/delphi/lazdelphi.lpk b/components/compilers/delphi/lazdelphi.lpk index 852736f0b1..26f5709640 100644 --- a/components/compilers/delphi/lazdelphi.lpk +++ b/components/compilers/delphi/lazdelphi.lpk @@ -36,6 +36,10 @@ + + + + diff --git a/components/compilers/delphi/strdelphitool.pas b/components/compilers/delphi/strdelphitool.pas index c54618f83b..00bae531c8 100644 --- a/components/compilers/delphi/strdelphitool.pas +++ b/components/compilers/delphi/strdelphitool.pas @@ -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';