Pas2JS: moved resource strings for VS Code extensions to the correct location, improved wording, i18n, regenerated translations and updated Russian translation

git-svn-id: trunk@64296 -
This commit is contained in:
maxim 2020-12-28 21:49:56 +00:00
parent a32ac8e665
commit fe9ac84b09
13 changed files with 114 additions and 29 deletions

1
.gitattributes vendored
View File

@ -4020,7 +4020,6 @@ components/pas2js/frmpas2jsvscodeextensionsettings.lfm svneol=native#text/plain
components/pas2js/frmpas2jsvscodeextensionsettings.pas svneol=native#text/plain components/pas2js/frmpas2jsvscodeextensionsettings.pas svneol=native#text/plain
components/pas2js/frmpas2jswebservers.lfm svneol=native#text/plain components/pas2js/frmpas2jswebservers.lfm svneol=native#text/plain
components/pas2js/frmpas2jswebservers.pp svneol=native#text/plain components/pas2js/frmpas2jswebservers.pp svneol=native#text/plain
components/pas2js/languages/regpas2jsvscode.pot svneol=native#text/plain
components/pas2js/languages/strpas2jsdesign.fr.po svneol=native#text/plain components/pas2js/languages/strpas2jsdesign.fr.po svneol=native#text/plain
components/pas2js/languages/strpas2jsdesign.hu.po svneol=native#text/plain components/pas2js/languages/strpas2jsdesign.hu.po svneol=native#text/plain
components/pas2js/languages/strpas2jsdesign.pot svneol=native#text/plain components/pas2js/languages/strpas2jsdesign.pot svneol=native#text/plain

View File

@ -1,11 +0,0 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: regpas2jsvscode.snewvscodeextension
msgid "Pas2js VS Code extension"
msgstr ""
#: regpas2jsvscode.snewvscodeextensiondescr
msgid "Create a new pas2js VS Code extension"
msgstr ""

View File

@ -71,6 +71,14 @@ msgstr ""
msgid "A pas2js program running as Atom package." msgid "A pas2js program running as Atom package."
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextension
msgid "Visual Studio Code extension"
msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextensiondescr
msgid "A pas2js program running as Visual Studio Code extension."
msgstr ""
#: strpas2jsdesign.pjsdnodejsappdescription #: strpas2jsdesign.pjsdnodejsappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in node.js" #| msgid "A pas2js program running in node.js"
@ -174,7 +182,7 @@ msgid "Select pas2js executable"
msgstr "Sélectionner l'exécutable de pas2js" msgstr "Sélectionner l'exécutable de pas2js"
#: strpas2jsdesign.pjsdselectvscodetemplatedir #: strpas2jsdesign.pjsdselectvscodetemplatedir
msgid "Select VS Code extension template directory" msgid "Select Visual Studio Code extension template directory"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectxexecutable #: strpas2jsdesign.pjsdselectxexecutable
@ -211,6 +219,10 @@ msgstr "Utiliser ce navigateur lors de l'ouverture de l'URL ou du fichier HTML d
msgid "Use this URL to start application" msgid "Use this URL to start application"
msgstr "Utiliser cette URL pour démarrer l'application" msgstr "Utiliser cette URL pour démarrer l'application"
#: strpas2jsdesign.pjsdvisualstudiocodeextensiontemplatedirectory
msgid "Visual Studio Code extension template directory"
msgstr ""
#: strpas2jsdesign.pjsdwebappdescription #: strpas2jsdesign.pjsdwebappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in the browser" #| msgid "A pas2js program running in the browser"

View File

@ -71,6 +71,14 @@ msgstr ""
msgid "A pas2js program running as Atom package." msgid "A pas2js program running as Atom package."
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextension
msgid "Visual Studio Code extension"
msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextensiondescr
msgid "A pas2js program running as Visual Studio Code extension."
msgstr ""
#: strpas2jsdesign.pjsdnodejsappdescription #: strpas2jsdesign.pjsdnodejsappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in node.js" #| msgid "A pas2js program running in node.js"
@ -174,7 +182,7 @@ msgid "Select pas2js executable"
msgstr "A pas2js alkalmazás kiválasztása" msgstr "A pas2js alkalmazás kiválasztása"
#: strpas2jsdesign.pjsdselectvscodetemplatedir #: strpas2jsdesign.pjsdselectvscodetemplatedir
msgid "Select VS Code extension template directory" msgid "Select Visual Studio Code extension template directory"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectxexecutable #: strpas2jsdesign.pjsdselectxexecutable
@ -211,6 +219,10 @@ msgstr "Ez a böngésző legyen használva amikor egy böngészős projekt URL-j
msgid "Use this URL to start application" msgid "Use this URL to start application"
msgstr "Az alkalmazás indításához ezt az URL-t használja" msgstr "Az alkalmazás indításához ezt az URL-t használja"
#: strpas2jsdesign.pjsdvisualstudiocodeextensiontemplatedirectory
msgid "Visual Studio Code extension template directory"
msgstr ""
#: strpas2jsdesign.pjsdwebappdescription #: strpas2jsdesign.pjsdwebappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in the browser" #| msgid "A pas2js program running in the browser"

View File

@ -61,6 +61,14 @@ msgstr ""
msgid "A pas2js program running as Atom package." msgid "A pas2js program running as Atom package."
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextension
msgid "Visual Studio Code extension"
msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextensiondescr
msgid "A pas2js program running as Visual Studio Code extension."
msgstr ""
#: strpas2jsdesign.pjsdnodejsappdescription #: strpas2jsdesign.pjsdnodejsappdescription
msgid "A pas2js program running in node.js." msgid "A pas2js program running in node.js."
msgstr "" msgstr ""
@ -162,7 +170,7 @@ msgid "Select pas2js executable"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectvscodetemplatedir #: strpas2jsdesign.pjsdselectvscodetemplatedir
msgid "Select VS Code extension template directory" msgid "Select Visual Studio Code extension template directory"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectxexecutable #: strpas2jsdesign.pjsdselectxexecutable
@ -199,6 +207,10 @@ msgstr ""
msgid "Use this URL to start application" msgid "Use this URL to start application"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdvisualstudiocodeextensiontemplatedirectory
msgid "Visual Studio Code extension template directory"
msgstr ""
#: strpas2jsdesign.pjsdwebappdescription #: strpas2jsdesign.pjsdwebappdescription
msgid "A pas2js program running in the browser." msgid "A pas2js program running in the browser."
msgstr "" msgstr ""

View File

@ -71,6 +71,14 @@ msgstr ""
msgid "A pas2js program running as Atom package." msgid "A pas2js program running as Atom package."
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextension
msgid "Visual Studio Code extension"
msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextensiondescr
msgid "A pas2js program running as Visual Studio Code extension."
msgstr ""
#: strpas2jsdesign.pjsdnodejsappdescription #: strpas2jsdesign.pjsdnodejsappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in node.js" #| msgid "A pas2js program running in node.js"
@ -176,7 +184,7 @@ msgid "Select pas2js executable"
msgstr "Selecionar executável pas2js" msgstr "Selecionar executável pas2js"
#: strpas2jsdesign.pjsdselectvscodetemplatedir #: strpas2jsdesign.pjsdselectvscodetemplatedir
msgid "Select VS Code extension template directory" msgid "Select Visual Studio Code extension template directory"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectxexecutable #: strpas2jsdesign.pjsdselectxexecutable
@ -212,6 +220,10 @@ msgstr "Usar este navegador ao abrir a URL ou arquivo HTML de um projeto de nave
msgid "Use this URL to start application" msgid "Use this URL to start application"
msgstr "Usar esta URL para iniciar a aplicação" msgstr "Usar esta URL para iniciar a aplicação"
#: strpas2jsdesign.pjsdvisualstudiocodeextensiontemplatedirectory
msgid "Visual Studio Code extension template directory"
msgstr ""
#: strpas2jsdesign.pjsdwebappdescription #: strpas2jsdesign.pjsdwebappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in the browser" #| msgid "A pas2js program running in the browser"

View File

@ -71,6 +71,14 @@ msgstr "Пакет Atom"
msgid "A pas2js program running as Atom package." msgid "A pas2js program running as Atom package."
msgstr "Программа pas2js, запускаемая в качестве пакета Atom." msgstr "Программа pas2js, запускаемая в качестве пакета Atom."
#: strpas2jsdesign.pjsdnewvscodeextension
msgid "Visual Studio Code extension"
msgstr "Расширение Visual Studio Code"
#: strpas2jsdesign.pjsdnewvscodeextensiondescr
msgid "A pas2js program running as Visual Studio Code extension."
msgstr "Программа pas2js, запускаемая в качестве расширения Visual Studio Code."
#: strpas2jsdesign.pjsdnodejsappdescription #: strpas2jsdesign.pjsdnodejsappdescription
msgid "A pas2js program running in node.js." msgid "A pas2js program running in node.js."
msgstr "Программа pas2js, запускаемая в node.js." msgstr "Программа pas2js, запускаемая в node.js."
@ -172,8 +180,8 @@ msgid "Select pas2js executable"
msgstr "Выберите исполнимый файл pas2js" msgstr "Выберите исполнимый файл pas2js"
#: strpas2jsdesign.pjsdselectvscodetemplatedir #: strpas2jsdesign.pjsdselectvscodetemplatedir
msgid "Select VS Code extension template directory" msgid "Select Visual Studio Code extension template directory"
msgstr "" msgstr "Выберите каталог шаблона расширения Visual Studio Code"
#: strpas2jsdesign.pjsdselectxexecutable #: strpas2jsdesign.pjsdselectxexecutable
#, object-pascal-format #, object-pascal-format
@ -209,6 +217,10 @@ msgstr "Браузер для открытия предназначенного
msgid "Use this URL to start application" msgid "Use this URL to start application"
msgstr "Использовать следующий адрес для запуска приложения" msgstr "Использовать следующий адрес для запуска приложения"
#: strpas2jsdesign.pjsdvisualstudiocodeextensiontemplatedirectory
msgid "Visual Studio Code extension template directory"
msgstr "Каталог шаблона расширения Visual Studio Code"
#: strpas2jsdesign.pjsdwebappdescription #: strpas2jsdesign.pjsdwebappdescription
msgid "A pas2js program running in the browser." msgid "A pas2js program running in the browser."
msgstr "Программа pas2js, запускаемая в браузере." msgstr "Программа pas2js, запускаемая в браузере."

View File

@ -71,6 +71,14 @@ msgstr ""
msgid "A pas2js program running as Atom package." msgid "A pas2js program running as Atom package."
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextension
msgid "Visual Studio Code extension"
msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextensiondescr
msgid "A pas2js program running as Visual Studio Code extension."
msgstr ""
#: strpas2jsdesign.pjsdnodejsappdescription #: strpas2jsdesign.pjsdnodejsappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in node.js" #| msgid "A pas2js program running in node.js"
@ -174,7 +182,7 @@ msgid "Select pas2js executable"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectvscodetemplatedir #: strpas2jsdesign.pjsdselectvscodetemplatedir
msgid "Select VS Code extension template directory" msgid "Select Visual Studio Code extension template directory"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectxexecutable #: strpas2jsdesign.pjsdselectxexecutable
@ -211,6 +219,10 @@ msgstr ""
msgid "Use this URL to start application" msgid "Use this URL to start application"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdvisualstudiocodeextensiontemplatedirectory
msgid "Visual Studio Code extension template directory"
msgstr ""
#: strpas2jsdesign.pjsdwebappdescription #: strpas2jsdesign.pjsdwebappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in the browser" #| msgid "A pas2js program running in the browser"

View File

@ -73,6 +73,14 @@ msgstr "Пакунок Atom"
msgid "A pas2js program running as Atom package." msgid "A pas2js program running as Atom package."
msgstr "Програма pas2js запущена, як пакунок Atom" msgstr "Програма pas2js запущена, як пакунок Atom"
#: strpas2jsdesign.pjsdnewvscodeextension
msgid "Visual Studio Code extension"
msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextensiondescr
msgid "A pas2js program running as Visual Studio Code extension."
msgstr ""
#: strpas2jsdesign.pjsdnodejsappdescription #: strpas2jsdesign.pjsdnodejsappdescription
msgid "A pas2js program running in node.js." msgid "A pas2js program running in node.js."
msgstr "Програма pas2js, що запускається в node.js." msgstr "Програма pas2js, що запускається в node.js."
@ -174,7 +182,7 @@ msgid "Select pas2js executable"
msgstr "Вибрати виконуваний файл pas2js" msgstr "Вибрати виконуваний файл pas2js"
#: strpas2jsdesign.pjsdselectvscodetemplatedir #: strpas2jsdesign.pjsdselectvscodetemplatedir
msgid "Select VS Code extension template directory" msgid "Select Visual Studio Code extension template directory"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectxexecutable #: strpas2jsdesign.pjsdselectxexecutable
@ -211,6 +219,10 @@ msgstr "Для відкривання URL або HTML-файлів проєкт
msgid "Use this URL to start application" msgid "Use this URL to start application"
msgstr "Для запуску застосунку використати цей URL" msgstr "Для запуску застосунку використати цей URL"
#: strpas2jsdesign.pjsdvisualstudiocodeextensiontemplatedirectory
msgid "Visual Studio Code extension template directory"
msgstr ""
#: strpas2jsdesign.pjsdwebappdescription #: strpas2jsdesign.pjsdwebappdescription
msgid "A pas2js program running in the browser." msgid "A pas2js program running in the browser."
msgstr "Програма pas2js, що запускається в оглядачі." msgstr "Програма pas2js, що запускається в оглядачі."

View File

@ -72,6 +72,14 @@ msgstr ""
msgid "A pas2js program running as Atom package." msgid "A pas2js program running as Atom package."
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextension
msgid "Visual Studio Code extension"
msgstr ""
#: strpas2jsdesign.pjsdnewvscodeextensiondescr
msgid "A pas2js program running as Visual Studio Code extension."
msgstr ""
#: strpas2jsdesign.pjsdnodejsappdescription #: strpas2jsdesign.pjsdnodejsappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in node.js" #| msgid "A pas2js program running in node.js"
@ -175,7 +183,7 @@ msgid "Select pas2js executable"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectvscodetemplatedir #: strpas2jsdesign.pjsdselectvscodetemplatedir
msgid "Select VS Code extension template directory" msgid "Select Visual Studio Code extension template directory"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdselectxexecutable #: strpas2jsdesign.pjsdselectxexecutable
@ -212,6 +220,10 @@ msgstr ""
msgid "Use this URL to start application" msgid "Use this URL to start application"
msgstr "" msgstr ""
#: strpas2jsdesign.pjsdvisualstudiocodeextensiontemplatedirectory
msgid "Visual Studio Code extension template directory"
msgstr ""
#: strpas2jsdesign.pjsdwebappdescription #: strpas2jsdesign.pjsdwebappdescription
#, fuzzy #, fuzzy
#| msgid "A pas2js program running in the browser" #| msgid "A pas2js program running in the browser"

View File

@ -246,6 +246,7 @@ begin
HTTPServerOptsLabel.Hint:=pjsdHTTPServerOptsLabelHint; HTTPServerOptsLabel.Hint:=pjsdHTTPServerOptsLabelHint;
lblAtomTemplateDir.Caption := pjsdAtomPackageTemplateDirectory; lblAtomTemplateDir.Caption := pjsdAtomPackageTemplateDirectory;
lblVSCodeTemplateDir.Caption := pjsdVisualStudioCodeExtensionTemplateDirectory;
end; end;
procedure TPas2jsOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions); procedure TPas2jsOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions);

View File

@ -56,11 +56,7 @@ implementation
uses uses
fpjson,frmpas2jsvscodeextensionsettings, CompOptsIntf, fpjson,frmpas2jsvscodeextensionsettings, CompOptsIntf,
NewItemIntf, MenuIntf, pjsprojectoptions, pjsdsgnoptions; NewItemIntf, MenuIntf, pjsprojectoptions, pjsdsgnoptions, strpas2jsdesign;
Resourcestring
SNewVSCodeExtension = 'Pas2js VS Code extension';
SNewVSCodeExtensionDescr = 'Create a new pas2js VS Code extension';
Var Var
VSCodeProjDesc:TVSCodeExtensionProjectDescriptor; VSCodeProjDesc:TVSCodeExtensionProjectDescriptor;
@ -131,12 +127,12 @@ end;
function TVSCodeExtensionProjectDescriptor.GetLocalizedName: string; function TVSCodeExtensionProjectDescriptor.GetLocalizedName: string;
begin begin
Result:=SNewVSCodeExtension; Result:=pjsdNewVSCodeExtension;
end; end;
function TVSCodeExtensionProjectDescriptor.GetLocalizedDescription: string; function TVSCodeExtensionProjectDescriptor.GetLocalizedDescription: string;
begin begin
Result:=SNewVSCodeExtensionDescr; Result:=pjsdNewVSCodeExtensionDescr;
end; end;
Procedure TVSCodeExtensionProjectDescriptor.InitVars; Procedure TVSCodeExtensionProjectDescriptor.InitVars;

View File

@ -14,6 +14,8 @@ Resourcestring
pjsdNodeJSAppDescription = 'A pas2js program running in node.js.'; pjsdNodeJSAppDescription = 'A pas2js program running in node.js.';
pjsdNewAtomPackage = 'Atom package'; pjsdNewAtomPackage = 'Atom package';
pjsdNewAtomPackageDescr = 'A pas2js program running as Atom package.'; pjsdNewAtomPackageDescr = 'A pas2js program running as Atom package.';
pjsdNewVSCodeExtension = 'Visual Studio Code extension';
pjsdNewVSCodeExtensionDescr = 'A pas2js program running as Visual Studio Code extension.';
// menu item // menu item
SPasJSWebserverCaption = 'Pas2JS WebServers'; SPasJSWebserverCaption = 'Pas2JS WebServers';
@ -38,7 +40,7 @@ Resourcestring
pjsdSelectNodeJSExecutable = 'Select Node.js executable'; pjsdSelectNodeJSExecutable = 'Select Node.js executable';
pjsdSelectBrowserExecutable = 'Select browser executable'; pjsdSelectBrowserExecutable = 'Select browser executable';
pjsdSelectAtomTemplateDir = 'Select Atom package template directory'; pjsdSelectAtomTemplateDir = 'Select Atom package template directory';
pjsdSelectVSCodeTemplateDir = 'Select VS Code extension template directory'; pjsdSelectVSCodeTemplateDir = 'Select Visual Studio Code extension template directory';
pjsdYouCanUseIDEMacrosLikeMakeExeWithoutAFullPathIsSea = 'You can use IDE ' pjsdYouCanUseIDEMacrosLikeMakeExeWithoutAFullPathIsSea = 'You can use IDE '
+'macros like $MakeExe(). Without a full path, %s is searched in PATH.'; +'macros like $MakeExe(). Without a full path, %s is searched in PATH.';
pjsdPathOfXMacroPas2js = 'Path of %s, macro $(pas2js)'; pjsdPathOfXMacroPas2js = 'Path of %s, macro $(pas2js)';
@ -56,6 +58,8 @@ Resourcestring
pjsdHTTPServerOptsLabelCaption = 'HTTP Server extra command-line options (one per line)'; pjsdHTTPServerOptsLabelCaption = 'HTTP Server extra command-line options (one per line)';
pjsdHTTPServerOptsLabelHint = 'Add extra command-line options for the command which starts the webserver.'; pjsdHTTPServerOptsLabelHint = 'Add extra command-line options for the command which starts the webserver.';
pjsdAtomPackageTemplateDirectory = 'Atom package template directory'; pjsdAtomPackageTemplateDirectory = 'Atom package template directory';
pjsdVisualStudioCodeExtensionTemplateDirectory = 'Visual Studio Code '
+'extension template directory';
// Project options frame // Project options frame
pjsdWebProjectPas2js = 'Web Project (pas2js)'; pjsdWebProjectPas2js = 'Web Project (pas2js)';