Components, Daemon:

1. Fixed creating new projects when using FPC resources (patch from alexs).
  2. Enabled i18n (patch from alexs).
  3. Fixed string typo and added Russian translation.

git-svn-id: trunk@27149 -
This commit is contained in:
maxim 2010-08-19 21:46:55 +00:00
parent 63f09fd4cd
commit fb7cc5ffff
5 changed files with 94 additions and 2 deletions

2
.gitattributes vendored
View File

@ -616,6 +616,8 @@ components/customform/demo/dbappform.pas svneol=native#text/plain
components/customform/demo/regappforms.pp svneol=native#text/plain
components/customform/lazcustforms.lpk svneol=native#text/plain
components/customform/lazcustforms.pas svneol=native#text/plain
components/daemon/languages/reglazdaemon.po svneol=native#text/plain
components/daemon/languages/reglazdaemon.ru.po svneol=native#text/plain
components/daemon/lazdaemon.lpk svneol=native#text/plain
components/daemon/lazdaemon.pas svneol=native#text/plain
components/daemon/lazdaemonapp.pp svneol=native#text/plain

View File

@ -0,0 +1,33 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: reglazdaemon.sdaemonappdescr
msgid "Daemon (service) application is a non-gui application that runs in the background."
msgstr ""
#: reglazdaemon.sdaemonappname
msgid "Daemon (service) application"
msgstr ""
#: reglazdaemon.sdaemonapps
msgid "Daemon (service) applications"
msgstr ""
#: reglazdaemon.sdaemondescr
msgid "Daemon Module for inclusion in a daemon application"
msgstr ""
#: reglazdaemon.sdaemonmapperdescr
msgid ""
"Daemon mapper for inclusion in a daemon application.\n"
"Only one daemon mapper may exist in a daemon application.\n"
msgstr ""
#: reglazdaemon.sdaemonmappername
msgid "Daemon mapper"
msgstr ""
#: reglazdaemon.sdaemonname
msgid "Daemon Module"
msgstr ""

View File

@ -0,0 +1,44 @@
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"
#: reglazdaemon.sdaemonappdescr
#| msgid "Daemon (service) application are non-gui applications that run in the background."
msgid "Daemon (service) application is a non-gui application that runs in the background."
msgstr "Приложение-демон (служба) является приложением без графического интерфейса пользователя, работающим в фоновом режиме."
#: reglazdaemon.sdaemonappname
msgid "Daemon (service) application"
msgstr "Приложение-демон (служба)"
#: reglazdaemon.sdaemonapps
msgid "Daemon (service) applications"
msgstr "Приложения-демоны (службы)"
#: reglazdaemon.sdaemondescr
msgid "Daemon Module for inclusion in a daemon application"
msgstr "Модуль демона для включения в приложение-демон"
#: reglazdaemon.sdaemonmapperdescr
msgid ""
"Daemon mapper for inclusion in a daemon application.\n"
"Only one daemon mapper may exist in a daemon application.\n"
msgstr ""
"Средство привязки демонов для включения в приложение-демон.\n"
"В приложении-демоне может иметься только один экземпляр средства привязки демонов.\n"
#: reglazdaemon.sdaemonmappername
msgid "Daemon mapper"
msgstr "Средство привязки демонов"
#: reglazdaemon.sdaemonname
msgid "Daemon Module"
msgstr "Модуль демона"

View File

@ -5,12 +5,17 @@
<AddToProjectUsesSection Value="False"/>
<Author Value="Michael Van Canneyt"/>
<CompilerOptions>
<Version Value="8"/>
<Version Value="9"/>
<SearchPaths>
<IncludeFiles Value="unix/"/>
<OtherUnitFiles Value="unix/"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)/$(LCLWidgetType)"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>
@ -34,6 +39,10 @@
<UnitName Value="lazdaemonapp"/>
</Item3>
</Files>
<i18n>
<EnableI18N Value="True"/>
<OutDir Value="languages"/>
</i18n>
<Type Value="DesignTime"/>
<RequiredPkgs Count="3">
<Item1>

View File

@ -69,7 +69,7 @@ uses daemonapp;
Resourcestring
SDaemonApps = 'Daemon (service) applications';
SDaemonAppName = 'Daemon (service) application';
SDaemonAppDescr = 'Daemon (service) application are non-gui applications that run in the background.';
SDaemonAppDescr = 'Daemon (service) application is a non-gui application that runs in the background.';
SDaemonName = 'Daemon Module';
SDaemonDescr = 'Daemon Module for inclusion in a daemon application';
SDaemonMapperName = 'Daemon mapper';
@ -129,6 +129,8 @@ begin
Add('end;');
Add('');
Add(Result);
if GetResourceType = rtRes then
Add('initialization');
Add(' RegisterDaemon;');
Result:=Text;
end;
@ -259,6 +261,8 @@ begin
Add('end;');
Add('');
Add(Result);
if GetResourceType = rtRes then
Add('initialization');
Add(' RegisterMapper;');
Result:=Text;
end;