diff options
author | Timo Eskola <timo@tolleri.net> | 2015-09-08 13:43:03 +0300 |
---|---|---|
committer | Timo Eskola <timo@tolleri.net> | 2015-09-08 13:43:03 +0300 |
commit | 9d91a147e9be5fa93af2d5e8753464546566174e (patch) | |
tree | 51a9b0d47c673afbe6036cbbf7dffba942ada53f | |
parent | 3b7c791cb471347b5fefb2c303c954c777d849ae (diff) | |
download | vdr-plugin-useractivity-9d91a147e9be5fa93af2d5e8753464546566174e.tar.gz vdr-plugin-useractivity-9d91a147e9be5fa93af2d5e8753464546566174e.tar.bz2 |
Version 0.0.2:
- Updated for VDR 1.5.8.
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | Makefile | 35 | ||||
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | i18n-template.c | 17 | ||||
-rw-r--r-- | i18n.h | 6 | ||||
-rw-r--r-- | po/ca_ES.po | 30 | ||||
-rw-r--r-- | po/cs_CZ.po | 28 | ||||
-rw-r--r-- | po/da_DK.po | 28 | ||||
-rw-r--r-- | po/de_DE.po | 28 | ||||
-rw-r--r-- | po/el_GR.po | 28 | ||||
-rw-r--r-- | po/es_ES.po | 28 | ||||
-rw-r--r-- | po/et_EE.po | 28 | ||||
-rw-r--r-- | po/fi_FI.po | 31 | ||||
-rw-r--r-- | po/fr_FR.po | 31 | ||||
-rw-r--r-- | po/hr_HR.po | 29 | ||||
-rw-r--r-- | po/hu_HU.po | 29 | ||||
-rw-r--r-- | po/it_IT.po | 30 | ||||
-rw-r--r-- | po/nl_NL.po | 30 | ||||
-rw-r--r-- | po/nn_NO.po | 29 | ||||
-rw-r--r-- | po/pl_PL.po | 28 | ||||
-rw-r--r-- | po/pt_PT.po | 28 | ||||
-rw-r--r-- | po/ro_RO.po | 29 | ||||
-rw-r--r-- | po/ru_RU.po | 28 | ||||
-rw-r--r-- | po/sl_SI.po | 29 | ||||
-rw-r--r-- | po/sv_SE.po | 29 | ||||
-rw-r--r-- | po/tr_TR.po | 28 | ||||
-rwxr-xr-x | po2i18n.pl | 139 | ||||
-rw-r--r-- | useractivity.c | 12 |
28 files changed, 819 insertions, 10 deletions
@@ -1,6 +1,10 @@ VDR Plugin 'useractivity' Revision History ------------------------------------------ +2007-08-19: Version 0.0.2 + +- Updated for VDR 1.5.8. + 2007-07-03: Version 0.0.1 - Initial revision. @@ -76,18 +76,46 @@ LIBS = -lX11 -lXss %.o: %.c $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< +i18n.c: i18n-template.c po2i18n.pl + ./po2i18n.pl < i18n-template.c > i18n.c + # Dependencies: MAKEDEP = $(CXX) -MM -MG DEPFILE = .dependencies -$(DEPFILE): Makefile +$(DEPFILE): Makefile i18n.c @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ -include $(DEPFILE) +### Internationalization (I18N): + +PODIR = po +LOCALEDIR = $(VDRDIR)/locale +I18Npo = $(wildcard $(PODIR)/*.po) +I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) +I18Ndirs = $(notdir $(foreach file, $(I18Npo), $(basename $(file)))) +I18Npot = $(PODIR)/$(PLUGIN).pot + +%.mo: %.po + msgfmt -c -o $@ $< + +$(I18Npot): $(wildcard *.c) + xgettext -C -cTRANSLATORS --no-wrap -F -k -ktr -ktrNOOP --msgid-bugs-address='<timo@tolleri.net>' -o $@ $(wildcard *.c) + +$(I18Npo): $(I18Npot) + msgmerge -U --no-wrap -F --backup=none -q $@ $< + +i18n: $(I18Nmo) + @mkdir -p $(LOCALEDIR) + for i in $(I18Ndirs); do\ + mkdir -p $(LOCALEDIR)/$$i/LC_MESSAGES;\ + cp $(PODIR)/$$i.mo $(LOCALEDIR)/$$i/LC_MESSAGES/vdr-$(PLUGIN).mo;\ + done + ### Targets: -all: libvdr-$(PLUGIN).so +all: libvdr-$(PLUGIN).so i18n libvdr-$(PLUGIN).so: $(OBJS) $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@ @@ -102,4 +130,5 @@ dist: clean @echo Distribution package created as $(PACKAGE).tgz clean: - @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ + @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot + @-rm -f $(OBJS) $(DEPFILE) i18n.c *.so *.tgz core* *~ @@ -12,17 +12,16 @@ Description: Plugin prevents shutdown if there are active X or terminal users. -Plugin also implements the followin SVDRP commands. +Plugin also implements the following SVDRP commands. GETI Display minimum user inactivity in minutes. LSTU Display a list of users. SETI <minutes> - Sets minimum user inactivity in minutes. + Set minimum user inactivity in minutes. Requirements: - - utmp - X11 Screen Saver extension (optional) @@ -30,3 +29,8 @@ Xauthority: Depending on the way you start VDR, you might need to setup Xauthority in order to get idle the time from X window. + +Converter for po files (po2i18n): +- Written by Udo Richter <udo_richter@gmx.de> +- Project's homepage http://www.udo-richter.de/vdr/scripts.html#po2i18n + http://www.udo-richter.de/vdr/scripts.en.html#po2i18n diff --git a/i18n-template.c b/i18n-template.c new file mode 100644 index 0000000..a2d69c0 --- /dev/null +++ b/i18n-template.c @@ -0,0 +1,17 @@ +/* + * i18n.c: Internationalization + * + * See the README file for copyright information and how to reach the author. + * + * $Id:$ + */ + +#include "i18n.h" + +#if VDRVERSNUM < 10507 +const tI18nPhrase Phrases[] = { +// START I18N +// END I18N + { NULL } + }; +#endif @@ -11,6 +11,12 @@ #include <vdr/i18n.h> +#ifndef trNOOP +#define trNOOP(s) (s) +#endif + +#if VDRVERSNUM < 10507 extern const tI18nPhrase Phrases[]; +#endif #endif //_I18N__H diff --git a/po/ca_ES.po b/po/ca_ES.po new file mode 100644 index 0000000..92afc76 --- /dev/null +++ b/po/ca_ES.po @@ -0,0 +1,30 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Marc Rovira Vall <tm05462@salleURL.edu>, 2003 +# Ramon Roca <ramon.roca@xcombo.com>, 2003 +# Jordi Vilà <jvila@tinet.org>, 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Jordi Vilà <jvila@tinet.org>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/cs_CZ.po b/po/cs_CZ.po new file mode 100644 index 0000000..c5620b6 --- /dev/null +++ b/po/cs_CZ.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Vladimír Bárta <vladimir.barta@k2atmitec.cz>, 2006 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Vladimír Bárta <vladimir.barta@k2atmitec.cz>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/da_DK.po b/po/da_DK.po new file mode 100644 index 0000000..f3c2014 --- /dev/null +++ b/po/da_DK.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Mogens Elneff <mogens@elneff.dk>, 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Mogens Elneff <mogens@elneff.dk>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/de_DE.po b/po/de_DE.po new file mode 100644 index 0000000..9c46bd1 --- /dev/null +++ b/po/de_DE.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Klaus Schmidinger <kls@cadsoft.de>, 2000 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Klaus Schmidinger <kls@cadsoft.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/el_GR.po b/po/el_GR.po new file mode 100644 index 0000000..60762bd --- /dev/null +++ b/po/el_GR.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Dimitrios Dimitrakos <mail@dimitrios.de>, 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Dimitrios Dimitrakos <mail@dimitrios.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-7\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/es_ES.po b/po/es_ES.po new file mode 100644 index 0000000..e7fdf84 --- /dev/null +++ b/po/es_ES.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Ruben Nunez Francisco <ruben.nunez@tang-it.com>, 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Ruben Nunez Francisco <ruben.nunez@tang-it.com>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/et_EE.po b/po/et_EE.po new file mode 100644 index 0000000..6a7fdc0 --- /dev/null +++ b/po/et_EE.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Arthur Konovalov <kasjas@hot.ee>, 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Arthur Konovalov <kasjas@hot.ee>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-13\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/fi_FI.po b/po/fi_FI.po new file mode 100644 index 0000000..ae3bcee --- /dev/null +++ b/po/fi_FI.po @@ -0,0 +1,31 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Hannu Savolainen <hannu@opensound.com>, 2002 +# Jaakko Hyvätti <jaakko@hyvatti.iki.fi>, 2002 +# Niko Tarnanen <niko.tarnanen@hut.fi>, 2003 +# Rolf Ahrenberg <rahrenbe@cc.hut.fi>, 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Rolf Ahrenberg <rahrenbe@cc.hut.fi>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "Estää sammutuksen, jos järjestelmässä on aktiivisia käyttäjiä" + +#: useractivity.c:16 +msgid "Active users" +msgstr "Aktiiviset käyttäjät" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "Järjestelmässä on aktiivisia käyttäjiä" diff --git a/po/fr_FR.po b/po/fr_FR.po new file mode 100644 index 0000000..c028a50 --- /dev/null +++ b/po/fr_FR.po @@ -0,0 +1,31 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Jean-Claude Repetto <jc@repetto.org>, 2001 +# Olivier Jacques <jacquesolivier@hotmail.com>, 2003 +# Gregoire Favre <greg@magma.unil.ch>, 2003 +# Nicolas Huillard <nhuillard@e-dition.fr>, 2005 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Nicolas Huillard <nhuillard@e-dition.fr>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/hr_HR.po b/po/hr_HR.po new file mode 100644 index 0000000..2e1baa1 --- /dev/null +++ b/po/hr_HR.po @@ -0,0 +1,29 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Drazen Dupor <drazen.dupor@dupor.com>, 2004 +# Dino Ravnic <dino.ravnic@fer.hr>, 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Drazen Dupor <drazen.dupor@dupor.com>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/hu_HU.po b/po/hu_HU.po new file mode 100644 index 0000000..b738818 --- /dev/null +++ b/po/hu_HU.po @@ -0,0 +1,29 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Istvan Koenigsberger <istvnko@hotmail.com>, 2002 +# Guido Josten <guido.josten@t-online.de>, 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Istvan Koenigsberger <istvnko@hotmail.com>, Guido Josten <guido.josten@t-online.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/it_IT.po b/po/it_IT.po new file mode 100644 index 0000000..a3654e7 --- /dev/null +++ b/po/it_IT.po @@ -0,0 +1,30 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Alberto Carraro <bertocar@tin.it>, 2001 +# Antonio Ospite <ospite@studenti.unina.it>, 2003 +# Sean Carlos <seanc@libero.it>, 2005 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Sean Carlos <seanc@libero.it>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/nl_NL.po b/po/nl_NL.po new file mode 100644 index 0000000..589f0f4 --- /dev/null +++ b/po/nl_NL.po @@ -0,0 +1,30 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Arnold Niessen <niessen@iae.nl> <arnold.niessen@philips.com>, 2001 +# Hans Dingemans <hans.dingemans@tacticalops.nl>, 2003 +# Maarten Wisse <Maarten.Wisse@urz.uni-hd.de>, 2005 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Maarten Wisse <Maarten.Wisse@urz.uni-hd.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/nn_NO.po b/po/nn_NO.po new file mode 100644 index 0000000..d84ffe5 --- /dev/null +++ b/po/nn_NO.po @@ -0,0 +1,29 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Jørgen Tvedt <pjtvedt@online.no>, 2001 +# Truls Slevigen <truls@slevigen.no>, 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Truls Slevigen <truls@slevigen.no>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/pl_PL.po b/po/pl_PL.po new file mode 100644 index 0000000..afa243b --- /dev/null +++ b/po/pl_PL.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Michael Rakowski <mrak@gmx.de>, 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Michael Rakowski <mrak@gmx.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/pt_PT.po b/po/pt_PT.po new file mode 100644 index 0000000..d6c4324 --- /dev/null +++ b/po/pt_PT.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Paulo Lopes <pmml@netvita.pt>, 2001 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Paulo Lopes <pmml@netvita.pt>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/ro_RO.po b/po/ro_RO.po new file mode 100644 index 0000000..08515ef --- /dev/null +++ b/po/ro_RO.po @@ -0,0 +1,29 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Paul Lacatus <paul@campina.iiruc.ro>, 2002 +# Lucian Muresan <lucianm@users.sourceforge.net>, 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Lucian Muresan <lucianm@users.sourceforge.net>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/ru_RU.po b/po/ru_RU.po new file mode 100644 index 0000000..3353176 --- /dev/null +++ b/po/ru_RU.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Vyacheslav Dikonov <sdiconov@mail.ru>, 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Vyacheslav Dikonov <sdiconov@mail.ru>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-5\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/sl_SI.po b/po/sl_SI.po new file mode 100644 index 0000000..94871df --- /dev/null +++ b/po/sl_SI.po @@ -0,0 +1,29 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Miha Setina <mihasetina@softhome.net>, 2000 +# Matjaz Thaler <matjaz.thaler@guest.arnes.si>, 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Matjaz Thaler <matjaz.thaler@guest.arnes.si>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/sv_SE.po b/po/sv_SE.po new file mode 100644 index 0000000..dd527db --- /dev/null +++ b/po/sv_SE.po @@ -0,0 +1,29 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Tomas Prybil <tomas@prybil.se>, 2002 +# Jan Ekholm <chakie@infa.abo.fi>, 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Tomas Prybil <tomas@prybil.se>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po/tr_TR.po b/po/tr_TR.po new file mode 100644 index 0000000..8bd3795 --- /dev/null +++ b/po/tr_TR.po @@ -0,0 +1,28 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de> +# This file is distributed under the same license as the VDR package. +# Oktay Yolgeçen <oktay_73@yahoo.de>, 2007 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <timo@tolleri.net>\n" +"POT-Creation-Date: 2007-08-19 22:20+0300\n" +"PO-Revision-Date: 2007-08-19 22:15+0300\n" +"Last-Translator: Oktay Yolgeçen <oktay_73@yahoo.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-9\n" +"Content-Transfer-Encoding: 8bit\n" + +#: useractivity.c:14 +msgid "Prevents shutdown if there are active users" +msgstr "" + +#: useractivity.c:16 +msgid "Active users" +msgstr "" + +#: useractivity.c:103 +msgid "There are active users in the system" +msgstr "" diff --git a/po2i18n.pl b/po2i18n.pl new file mode 100755 index 0000000..7ea3119 --- /dev/null +++ b/po2i18n.pl @@ -0,0 +1,139 @@ +#!/usr/bin/perl +# +# po2i18n - Convert plugin po files in into i18n.c-format +# +# See the README file for copyright information and how to reach the author. +# + +use strict; +use warnings; + +my @LANGS = ( + "en_US", + "de_DE", + "sl_SI", + "it_IT", + "nl_NL", + "pt_PT", + "fr_FR", + "nn_NO", + "fi_FI", + "pl_PL", + "es_ES", + "el_GR", + "sv_SE", + "ro_RO", + "hu_HU", + "ca_ES", + "ru_RU", + "hr_HR", + "et_EE", + "da_DK", + "cs_CZ", + "tr_TR" + ); + +my %VERS = ( + "en_US" => 10200, + "de_DE" => 10200, + "sl_SI" => 10200, + "it_IT" => 10200, + "nl_NL" => 10200, + "pt_PT" => 10200, + "fr_FR" => 10200, + "nn_NO" => 10200, + "fi_FI" => 10200, + "pl_PL" => 10200, + "es_ES" => 10200, + "el_GR" => 10200, + "sv_SE" => 10200, + "ro_RO" => 10200, + "hu_HU" => 10200, + "ca_ES" => 10200, + "ru_RU" => 10302, + "hr_HR" => 10307, + "et_EE" => 10313, + "da_DK" => 10316, + "cs_CZ" => 10342, + "tr_TR" => 10502 + ); + + +my %strings; + +foreach my $lang (@LANGS) { $strings{$lang} = { }; } + + +sub LoadLanguage(*) { + my ($lang) = @_; + + if (!open FILE, "<", "po/$lang.po") { + return 0; + } + + my $msgid = ""; + while (<FILE>) { + chomp; + my $line = $_; + + if ($line =~ /^msgid "(.*)"$/) { + $msgid = $1; + } elsif ($line =~ /^msgstr "(.*)"$/) { + my $msgstr = $1; + $strings{$lang}->{$msgid} = $msgstr; + $strings{"en_US"}->{$msgid} = $msgid; + } + } + + close FILE; +} + + + +foreach my $lang (@LANGS) { + LoadLanguage($lang); +} + +my @msgids = sort keys %{$strings{"en_US"}}; + + +my $silent = 0; + +while (<>) { + my $line = $_; + + if ($line =~ /^\/\/ START I18N/) { + print "// START I18N - automatically generated by po2i18n.pl\n"; + for my $msgid (@msgids) { + next if $msgid eq ""; + + my $head = " { "; + my $endif = ""; + my $versnum = 10200; + + for my $lang (@LANGS) { + if ($VERS{$lang} ne $versnum) { + $versnum = $VERS{$lang}; + print $endif; + print "#if VDRVERSNUM >= $versnum\n"; + $endif = "#endif\n"; + } + my $msgstr = $strings{$lang}->{$msgid}; + $msgstr = "" if !defined $msgstr; + + print "$head\"$msgstr\",\n"; + $head = " "; + } + print $endif; + print " },\n"; + } + $silent = 1; + } + + if (!$silent) { print $line; } + + if ($line =~ /^\/\/ END I18N/) { + print "// END I18N - automatically generated by po2i18n.pl\n"; + $silent = 0; + } +} diff --git a/useractivity.c b/useractivity.c index 2a38120..6f510e5 100644 --- a/useractivity.c +++ b/useractivity.c @@ -10,9 +10,11 @@ #include "i18n.h" #include "activity.h" -static const char *VERSION = "0.0.1"; -static const char *DESCRIPTION = "Prevents shutdown if there are active users"; -//static const char *MAINMENUENTRY = "Active users"; +static const char *VERSION = "0.0.2"; +static const char *DESCRIPTION = trNOOP("Prevents shutdown if there are active users"); +#if 0 +static const char *MAINMENUENTRY = trNOOP("Active users"); +#endif class cPluginUseractivity : public cPlugin { private: @@ -30,7 +32,7 @@ public: virtual void Housekeeping(void); virtual void MainThreadHook(void); virtual cString Active(void); - virtual const char *MainMenuEntry(void) { return NULL; /* tr(MAINMENUENTRY) */ } + virtual const char *MainMenuEntry(void) { return NULL; } virtual cOsdObject *MainMenuAction(void); virtual cMenuSetupPage *SetupMenu(void); virtual bool SetupParse(const char *Name, const char *Value); @@ -72,7 +74,9 @@ bool cPluginUseractivity::Initialize(void) bool cPluginUseractivity::Start(void) { // Start any background activities the plugin shall perform. +#if VDRVERSNUM < 10507 RegisterI18n(Phrases); +#endif return true; } |