summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-28 13:25:21 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-28 13:25:21 +0100
commit8c44b81b9f943ff0e87034ab16527f60c1830524 (patch)
tree9741c469a097a542a6551990b0b44dc07a7b3950 /tests
parent2f731f9019b443cf90f24223f1ac3fa8068343b6 (diff)
downloadwolfbones-8c44b81b9f943ff0e87034ab16527f60c1830524.tar.gz
wolfbones-8c44b81b9f943ff0e87034ab16527f60c1830524.tar.bz2
added localization in test/service
Diffstat (limited to 'tests')
-rw-r--r--tests/GNUmakefile2
-rw-r--r--tests/service/GNUmakefile19
-rw-r--r--tests/service/po/de.po37
-rw-r--r--tests/service/testservice.c2
4 files changed, 58 insertions, 2 deletions
diff --git a/tests/GNUmakefile b/tests/GNUmakefile
index 71019e7..6b3b47a 100644
--- a/tests/GNUmakefile
+++ b/tests/GNUmakefile
@@ -1,6 +1,6 @@
TOPDIR = ..
-SUBDIRS = port log gettext daemon
+SUBDIRS = port log gettext daemon service
-include $(TOPDIR)/makefiles/gmake/sub.mk
diff --git a/tests/service/GNUmakefile b/tests/service/GNUmakefile
new file mode 100644
index 0000000..dd624a2
--- /dev/null
+++ b/tests/service/GNUmakefile
@@ -0,0 +1,19 @@
+TOPDIR = ../..
+
+CATALOG_NAME = testservice
+
+GETTEXT_LANGUAGES = de
+
+GETTEXT_FILES = testservice.c
+
+GETTEXT_TRIGGERS = _ gettext_noop gettext
+
+-include $(TOPDIR)/makefiles/gmake/sub.mk
+
+local_test:
+
+local_all:
+
+local_clean:
+
+local_distclean:
diff --git a/tests/service/po/de.po b/tests/service/po/de.po
new file mode 100644
index 0000000..71df12d
--- /dev/null
+++ b/tests/service/po/de.po
@@ -0,0 +1,37 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: testservice 0.0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-03-28 13:24+0100\n"
+"PO-Revision-Date: 2009-03-28 13:20+0100\n"
+"Last-Translator: Andreas Baumann <abaumann@yahoo.com>\n"
+"Language-Team: German\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: testservice.c:32
+#, c-format
+msgid "Started %s service"
+msgstr "%s Dienst gestartet"
+
+#: testservice.c:44
+#, c-format
+msgid "Suspending on a service event resulted in an error %d!"
+msgstr "Fehler beim Warten auf ein Ereignis im Dienst, Code %d"
+
+#: testservice.c:51
+#
+msgid "Got termination event, shutting down the service"
+msgstr "Beendingungssignal empfangen, beende den Dienst"
+
+#: testservice.c:58
+#, c-format
+msgid "Stopped %s service"
+msgstr "%s Dienst gestoppt"
diff --git a/tests/service/testservice.c b/tests/service/testservice.c
index 0001fd6..59d02e6 100644
--- a/tests/service/testservice.c
+++ b/tests/service/testservice.c
@@ -48,7 +48,7 @@ static void WINAPI service_main( DWORD argc, LPTSTR *argv ) {
case WOLF_SERVICE_EVENT_TERMINATE:
wolf_log( WOLF_LOG_NOTICE, WOLF_CATEGORY_TESTSERVICE, WOLF_MSG_TESTSERVICE_GOT_TERMINATION_EVENT,
- _( "Got termination event, shutting down the daemon" ) );
+ _( "Got termination event, shutting down the service" ) );
break;
}