diff options
-rw-r--r-- | COPYING | bin | 61440 -> 18009 bytes | |||
-rw-r--r-- | HISTORY | 16 | ||||
-rw-r--r-- | Makefile | 30 | ||||
-rw-r--r-- | README | 63 | ||||
-rw-r--r-- | debian/README.source | 7 | ||||
-rw-r--r-- | debian/changelog | 295 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 14 | ||||
-rw-r--r-- | debian/copyright | 24 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rw-r--r-- | debian/install | 3 | ||||
-rw-r--r-- | debian/plugin.sleeptimer.conf | 1 | ||||
-rwxr-xr-x | debian/rules | 19 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 2 | ||||
-rw-r--r-- | i18n.c | 701 | ||||
-rw-r--r-- | po/ca_ES.po | 96 | ||||
-rw-r--r-- | po/cs_CZ.po | 94 | ||||
-rw-r--r-- | po/da_DK.po | 94 | ||||
-rw-r--r-- | po/de_DE.po | 94 | ||||
-rw-r--r-- | po/el_GR.po | 94 | ||||
-rw-r--r-- | po/es_ES.po | 94 | ||||
-rw-r--r-- | po/et_EE.po | 94 | ||||
-rw-r--r-- | po/fi_FI.po | 97 | ||||
-rw-r--r-- | po/fr_FR.po | 97 | ||||
-rw-r--r-- | po/hr_HR.po | 95 | ||||
-rw-r--r-- | po/hu_HU.po | 95 | ||||
-rw-r--r-- | po/it_IT.po | 96 | ||||
-rw-r--r-- | po/nl_NL.po | 96 | ||||
-rw-r--r-- | po/nn_NO.po | 95 | ||||
-rw-r--r-- | po/pl_PL.po | 94 | ||||
-rw-r--r-- | po/pt_PT.po | 94 | ||||
-rw-r--r-- | po/ro_RO.po | 95 | ||||
-rw-r--r-- | po/ru_RU.po | 94 | ||||
-rw-r--r-- | po/sl_SI.po | 95 | ||||
-rw-r--r-- | po/sv_SE.po | 95 | ||||
-rw-r--r-- | po/tr_TR.po | 94 | ||||
-rw-r--r-- | sleeptimer.c | 756 |
38 files changed, 3677 insertions, 249 deletions
Binary files differ @@ -1,5 +1,21 @@ VDR Plugin 'sleeptimer' Revision History ---------------------------------------- +2011-07-21: Version 0.8 + - Fixed crashing if a sleeptimer was disabled and within the next 10s + a new sleeptimer was activated. + - Updated translations, added use of gettext, correction to vdr's + historical language support capabilities + - The first option in the main menu is now 'Shutdown [min]' if there + is no sleeptimer running at present. With an active sleeptimer the + first option will be to 'Disable sleeptimer'. + - Added 'Default Timespan' option to the plugins setup which lets + the user predefine a default value for 'Shutdown [min]' in the + main menu. + - Added Autoswitch function which lets the user switch through a + predefined array of values. Especially convenient in combination + with the use of keymacros. The keys User1-User9 are accepted. + (Inspired by an idea / feature request by grindo) + 2006-01-22: Version 0.7 - Fixed language support in Sleep-Timer menu, earlier only German was supported (Thanks to Mika Karjunen) @@ -20,7 +20,7 @@ APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDI ### The C++ compiler and options: CXX ?= g++ -CXXFLAGS ?= -O2 -Wall -Woverloaded-virtual +CXXFLAGS ?= -fPIC -O2 -Wall -Woverloaded-virtual ### The directory environment: @@ -66,9 +66,34 @@ $(DEPFILE): Makefile -include $(DEPFILE) +### Internationalization (I18N): + +PODIR = po +LOCALEDIR = $(VDRDIR)/locale +I18Npo = $(wildcard $(PODIR)/*.po) +I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) +I18Npot = $(PODIR)/$(PLUGIN).pot + +%.mo: %.po + msgfmt -c -o $@ $< + +$(I18Npot): $(wildcard *.c) + xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='<vdrportal_midas <at> gmx <dot> de>' -o $@ $^ + +%.po: $(I18Npot) + msgmerge -U --no-wrap --no-location --backup=none -q $@ $< + @touch $@ + +$(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo + @mkdir -p $(dir $@) + cp $< $@ + +.PHONY: i18n +i18n: $(I18Nmsgs) + ### Targets: -all: libvdr-$(PLUGIN).so +all: libvdr-$(PLUGIN).so i18n libvdr-$(PLUGIN).so: $(OBJS) $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ @@ -83,4 +108,5 @@ dist: clean @echo Distribution package created as $(PACKAGE).tgz clean: + @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ @@ -1,13 +1,68 @@ This is a "plugin" for the Video Disk Recorder (VDR). -Written by: Thomas Koch <tom@linvdr.org> - -Project's homepage: http://www.linvdr.org/projects/sleeptimer/ +Originally written by: Thomas Koch <tom@linvdr.org> +Development since 0.8: Michael Schneider <vdrportal_midas <at> gmx <dot> de> +Old project's homepage: http://www.linvdr.org/projects/sleeptimer/ +New homepage: http://projects.vdr-developer.org/projects/plg-sleeptimer Latest version available at: Project's homepage See the file COPYING for license information. -Description: +******************************* +*** Command Line Parameters *** +******************************* use -e parameter to redefine the command for shutdown. By default /sbin/poweroff is called + + +******************** +*** Plugin Setup *** +******************** + +Default Timespan [min]: +-defines the default timespan till shutdown, which is shown in the plugins main menu entry + +Action: +-Shutdown represents the command to be executed on sleeptimer timeout (default: /sbin/poweroff) + overridden by command line parameter -e (see above) +-Mute does not execute any command, but mutes audio if not already muted + +Use Autoswitch with default: +-Integrates the default timespan in the predefined values and makes the Autoswitch function + start with this value. + +Confirm: +-makes the Autoswitch function offer the predefined timespans but does not activate + the sleeptimer unless the user explicitly confirms by pressing Ok. + + +***************** +*** Main Menu *** +***************** + +Not Active / Disable sleeptimer: +-Allows disabling of an active sleeptimer. If there is no active sleeptimer 'Not Active' is + displayed. + +Shutdown [min]: +-Denotes the timespan for a sleeptimer in minutes. Values < 2 minutes are not allowed. + Activation by Ok. + +Shutdown (time): +-Denotes the time for a sleeptimer. Values < 2 minutes are not allowd. Activation by Ok. + +Red / Autoswitch (inspired by an idea / feature request by grindo): +-Switches through a set of predefined values (min). Especially convenient in combination with + the use of keymacros. Just add for example + User7 @sleeptimer Red + in vdr's keymacros.conf file and make sure User7 is mapped in remote.conf. This makes the + user switch through the predefined values by just pressing one key and without hassling with + vdr's main menu. By default the predefined values are: + Disabling, 15, 30, 45, 60, 90, 120, 180 + In combination with 'Use default for Autoswitch' the 'Default Timespan' value will be + integrated in this sequence and calling the autoswitch function will start with this + value. + +Green / Disable: +-Disables an active sleeptimer. diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..54d6fec --- /dev/null +++ b/debian/README.source @@ -0,0 +1,7 @@ +This package uses the dpatch system to save and apply patches to the +upstream source code of the software that is packaged. For details +about how to use dpatch read + + /usr/share/doc/dpatch/README.source.gz + +from the dpatch package. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2a680f0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,295 @@ +vdr-plugin-sleeptimer (0.8-1) experimental; urgency=low + + * Non-maintainer upload. + * New upstream release + + -- Midas <vdrportal_midas at gmx dot de> Thu, 21 Jul 2011 07:29:16 +0200 + +vdr-plugin-sleeptimer (0.7-21) experimental; urgency=low + + * Removed non-standard shebang line from debian/rules + * Added README.source + * Standards-Version: 3.8.3 + + -- Tobias Grimm <etobi@debian.org> Mon, 09 Nov 2009 20:52:24 +0100 + +vdr-plugin-sleeptimer (0.7-20) experimental; urgency=low + + * Release for vdr 1.7.6 + * Added ${misc:Depends} + * Bumped standards version to 3.8.1 + * Changed section to "video" + + -- Thomas Günther <tom@toms-cafe.de> Wed, 29 Apr 2009 23:11:31 +0200 + +vdr-plugin-sleeptimer (0.7-19) experimental; urgency=low + + * Dropped patchlevel control field + * Build-Depend on vdr-dev (>=1.6.0-5) + * Bumped Standards-Version to 3.8.0 + * Switched Build-System to cdbs, Build-Depend on cdbs + * Using COMPAT=5 now + + -- Tobias Grimm <tg@e-tobi.net> Fri, 25 Jul 2008 15:54:28 +0200 + +vdr-plugin-sleeptimer (0.7-18) experimental; urgency=low + + * Increased package version to force rebuild for vdr 1.6.0-1ctvdr7 + + -- Tobias Grimm <tg@e-tobi.net> Mon, 12 May 2008 00:56:58 +0200 + +vdr-plugin-sleeptimer (0.7-17) experimental; urgency=low + + * Build-Depend on vdr-dev (>= 1.6.0) + + -- Tobias Grimm <tg@e-tobi.net> Mon, 24 Mar 2008 20:14:27 +0100 + +vdr-plugin-sleeptimer (0.7-16) experimental; urgency=low + + * Force rebuild for vdr 1.5.15 + + -- Tobias Grimm <tg@e-tobi.net> Mon, 18 Feb 2008 21:33:29 +0100 + +vdr-plugin-sleeptimer (0.7-15) unstable; urgency=low + + * Release for vdr 1.5.13 + + -- Thomas Günther <tom@toms-cafe.de> Wed, 16 Jan 2008 10:31:50 +0100 + +vdr-plugin-sleeptimer (0.7-14) unstable; urgency=low + + * Release for vdr 1.5.12 + + -- Thomas Günther <tom@toms-cafe.de> Tue, 20 Nov 2007 23:46:48 +0100 + +vdr-plugin-sleeptimer (0.7-13) unstable; urgency=low + + * Release for vdr 1.5.11 + + -- Thomas Günther <tom@toms-cafe.de> Tue, 6 Nov 2007 23:34:38 +0100 + +vdr-plugin-sleeptimer (0.7-12) unstable; urgency=low + + * Release for vdr 1.5.10 + + -- Thomas Günther <tom@toms-cafe.de> Tue, 16 Oct 2007 23:51:17 +0200 + +vdr-plugin-sleeptimer (0.7-11) unstable; urgency=low + + * Release for vdr 1.5.9 + + -- Thomas Günther <tom@toms-cafe.de> Tue, 28 Aug 2007 01:01:28 +0200 + +vdr-plugin-sleeptimer (0.7-10) unstable; urgency=low + + * Release for vdr 1.5.8 + + -- Thomas Günther <tom@toms-cafe.de> Thu, 23 Aug 2007 01:09:31 +0200 + +vdr-plugin-sleeptimer (0.7-9) unstable; urgency=low + + * Release for vdr 1.5.6 + + -- Thomas Günther <tom@toms-cafe.de> Tue, 14 Aug 2007 01:46:40 +0200 + +vdr-plugin-sleeptimer (0.7-8) unstable; urgency=low + + * Release for vdr 1.5.5 + + -- Thomas Günther <tom@toms-cafe.de> Wed, 27 Jun 2007 23:03:10 +0200 + +vdr-plugin-sleeptimer (0.7-7) unstable; urgency=low + + * Release for vdr 1.5.2 + + -- Thomas Günther <tom@toms-cafe.de> Sat, 28 Apr 2007 00:01:19 +0200 + +vdr-plugin-sleeptimer (0.7-6) unstable; urgency=low + + * Release for vdr 1.5.1 + + -- Thomas Günther <tom@toms-cafe.de> Tue, 27 Feb 2007 19:59:38 +0100 + +vdr-plugin-sleeptimer (0.7-5) unstable; urgency=low + + [ Thomas Günther ] + * Replaced VDRdevel adaptions in debian/rules with make-special-vdr + * Adapted call of dependencies.sh and patchlevel.sh to the new location + in /usr/share/vdr-dev/ + + [ Tobias Grimm ] + * Build-Depend on vdr-dev (>=1.4.5-1) + + -- Tobias Grimm <tg@e-tobi.net> Sun, 14 Jan 2007 19:17:49 +0100 + +vdr-plugin-sleeptimer (0.7-4) unstable; urgency=low + + * Build-Depend on vdr-dev (>=1.4.4-1) + + -- Tobias Grimm <tg@e-tobi.net> Sun, 5 Nov 2006 11:45:43 +0100 + +vdr-plugin-sleeptimer (0.7-3) unstable; urgency=low + + * Build-Depend on vdr-dev (>=1.4.3-1) + + -- Tobias Grimm <tg@e-tobi.net> Sat, 23 Sep 2006 20:33:00 +0200 + +vdr-plugin-sleeptimer (0.7-2) unstable; urgency=low + + * Build-Depend on vdr-dev (>=1.4.2-1) + * Bumped Standards-Version to 3.7.2 + + -- Tobias Grimm <tg@e-tobi.net> Sun, 27 Aug 2006 14:39:35 +0200 + +vdr-plugin-sleeptimer (0.7-1) unstable; urgency=low + + * Tobias Grimm <tg@e-tobi.net> + - New upstream release + - Removed 02_sleeptimer-1.3.32.dpatch + - Removed 90_APIVERSION.dpatch + + -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Sun, 18 Jun 2006 16:16:58 +0200 + +vdr-plugin-sleeptimer (0.6-15) unstable; urgency=low + + * Thomas Schmidt <tschmidt@debian.org> + - Build-Depend on vdr-dev (>=1.4.1-1) + + -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Fri, 16 Jun 2006 22:08:01 +0200 + +vdr-plugin-sleeptimer (0.6-14) unstable; urgency=low + + * Thomas Schmidt <tschmidt@debian.org> + - Build-Depend on vdr-dev (>=1.4.0-1) + + -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Wed, 3 May 2006 23:08:25 +0200 + +vdr-plugin-sleeptimer (0.6-13) unstable; urgency=low + + * Tobias Grimm <tg@e-tobi.net> + - Build-Depend on vdr (>=1.3.48-1) + - Added 90_APIVERSION.dpatch + + -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Mon, 24 Apr 2006 22:08:34 +0200 + +vdr-plugin-sleeptimer (0.6-12) unstable; urgency=low + + * Tobias Grimm <tg@e-tobi.net> + - Build-Depend on vdr (>=1.3.46-1) + + -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Wed, 12 Apr 2006 22:14:07 +0200 + +vdr-plugin-sleeptimer (0.6-11) unstable; urgency=low + + * Tobias Grimm <tg@e-tobi.net> + - Build-Depend on vdr (>=1.3.45-1) + + -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Mon, 27 Mar 2006 21:29:39 +0200 + +vdr-plugin-sleeptimer (0.6-10) unstable; urgency=low + + * Tobias Grimm <tg@e-tobi.net> + - Build-Depend on vdr (>=1.3.41-1) + + -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Tue, 31 Jan 2006 01:40:52 +0100 + +vdr-plugin-sleeptimer (0.6-9) unstable; urgency=low + + * Tobias Grimm <tg@e-tobi.net> + - Build-Depend on vdr (>=1.3.40-1) + + -- Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> Thu, 26 Jan 2006 14:22:39 +0100 + +vdr-plugin-sleeptimer (0.6-8) unstable; urgency=low + + * Build-Depend on vdr (>=1.3.37-1) + + -- Tobias Grimm <tg@e-tobi.net> Sat, 3 Dec 2005 20:56:28 +0100 + +vdr-plugin-sleeptimer (0.6-7) unstable; urgency=low + + * Build-Depend on vdr (>=1.3.33-1) + + -- Tobias Grimm <tg@e-tobi.net> Sun, 2 Oct 2005 10:48:38 +0200 + +vdr-plugin-sleeptimer (0.6-6) unstable; urgency=low + + * Tobias Grimm <tg@e-tobi.net> + - Build-Depend on vdr (>=1.3.32-1) + * Thomas Günther <tom@toms-cafe.de> + - Added 02_sleeptimer-1.3.32.dpatch + + -- Tobias Grimm <tg@e-tobi.net> Wed, 14 Sep 2005 19:18:01 +0200 + +vdr-plugin-sleeptimer (0.6-5) unstable; urgency=low + + * Depend/Build-Depend on vdr (>=1.3.31-1) + * Conflict with vdr (>=1.3.31.99) + * Use dependencies.sh from vdr-dev to set vdr dependencies and + conflicts + + -- Tobias Grimm <tg@e-tobi.net> Tue, 30 Aug 2005 23:08:00 +0200 + +vdr-plugin-sleeptimer (0.6-4) unstable; urgency=low + + * Depend/Build-Depend on vdr (>=1.3.30-1) + * Conflict with vdr (>=1.3.30.99) + + -- Tobias Grimm <tg@e-tobi.net> Mon, 22 Aug 2005 17:31:23 +0200 + +vdr-plugin-sleeptimer (0.6-3) unstable; urgency=low + + * Depend/Build-Depend on vdr (>=1.3.29-1) + * Conflict with vdr (>=1.3.30) + + -- Tobias Grimm <tg@e-tobi.net> Mon, 15 Aug 2005 21:16:13 +0200 + +vdr-plugin-sleeptimer (0.6-2) unstable; urgency=low + + * Depend/Build-Depend on vdr (>=1.3.28-1) + * Conflict with vdr (>=1.3.29) + + -- Tobias Grimm <tg@e-tobi.net> Mon, 8 Aug 2005 20:25:54 +0200 + +vdr-plugin-sleeptimer (0.6-1) unstable; urgency=low + + * New upstream release + * Removed makefile patch (integrated in upstream) + * Using debian/compat now + * Adapted patches for new dpatch >= 2.0.9 + * Bumped Standards-Version to 3.6.2 + * Depend/Build-Depend on vdr (>=1.3.27-1) + * Conflict with vdr (>=1.3.28) + + -- Tobias Grimm <tg@e-tobi.net> Mon, 25 Jul 2005 18:37:33 +0200 + +vdr-plugin-sleeptimer (0.4-2) unstable; urgency=low + + * Added Makefile-fPIC-fix patch to fix potential FTBFS + * Adapted control file to alioth packages + * Using patchlevel.sh and custom control field "vdr-patchlevel" + * Using dh_install now + * Removed debian/dirs + * Changed path to poweroffvdr for VDR 1.2.6-27 + + -- Tobias Grimm <tg@e-tobi.net> Wed, 29 Sep 2004 21:20:00 +0200 + +vdr-plugin-sleeptimer (0.4-1) unstable; urgency=low + + * new upstream release + * added debian/watch file for uscan + + -- Tobias Grimm <tg@e-tobi.net> Mon, 08 Mar 2004 23:52:00 +0200 + +vdr-plugin-sleeptimer (0.2-2) unstable; urgency=low + + * small bug fix to upstream source: after calling shutdown script, + no more "going down..." -message is shown + + -- Tobias Grimm <tg@e-tobi.net> Mon, 02 Mar 2004 23:50:00 +0200 + +vdr-plugin-sleeptimer (0.2-1) unstable; urgency=low + + * debianized + + -- Tobias Grimm <tg@e-tobi.net> Mon, 16 Feb 2004 22:11:00 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..14679df --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: vdr-plugin-sleeptimer +Section: video +Priority: extra +Maintainer: Tobias Grimm <tg@e-tobi.net> +Origin: ctvdr +Bugs: mailto:pkg-vdr-dvb-devel@lists.alioth.debian.org +Build-Depends: debhelper (>= 5), cdbs, dpatch, vdr-dev (>= 1.6.0-5) +Standards-Version: 3.8.3 + +Package: vdr-plugin-sleeptimer +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${vdr:Depends} +Description: Sleeptimer plugin for vdr + Allows to set a timer for powering off vdr once. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..734432e --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Tobias Grimm on Mon, 16 Feb 2004 22:11:00 +0200. + +It was downloaded from http://www.linvdr.org/download/vdr-sleeptimer + +Upstream Author: Thomas Koch <tom@linvdr.org> + +Copyright: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + see /usr/share/common-licenses/GPL + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..4eb5695 --- /dev/null +++ b/debian/install @@ -0,0 +1,3 @@ +libvdr-sleeptimer.so.* usr/lib/vdr/plugins/ +debian/plugin.sleeptimer.conf etc/vdr/plugins/ +debian/tmp/usr/share/locale diff --git a/debian/plugin.sleeptimer.conf b/debian/plugin.sleeptimer.conf new file mode 100644 index 0000000..07bfae3 --- /dev/null +++ b/debian/plugin.sleeptimer.conf @@ -0,0 +1 @@ +-e /usr/bin/poweroffvdr diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2e942e5 --- /dev/null +++ b/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +# include /usr/share/cdbs/1/rules/dpatch.mk + +DEB_INSTALL_CHANGELOGS_ALL = HISTORY + +MAKE_OPTIONS = DVBDIR=/usr VDRDIR=/usr/include/vdr LIBDIR=. \ + LOCALEDIR=debian/tmp/usr/share/locale + +common-build-arch:: + $(MAKE) all $(MAKE_OPTIONS) + +cleanbuilddir:: + $(MAKE) -o .dependencies clean $(MAKE_OPTIONS) + rm -f libvdr-*.so.* + +common-binary-predeb-arch:: + sh /usr/share/vdr-dev/dependencies.sh diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..c37dd57 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://linvdr.org/download/vdr-sleeptimer/sleeptimer-(.*)\.tar\.gz @@ -8,25 +8,42 @@ #include "i18n.h" +#if VDRVERSNUM < 10507 + const tI18nPhrase Phrases[] = { { "Not active",// English - "Nicht aktiv", //Deutch + "Nicht aktiv", //Deutsch "",// Slovenski "",// Italiano "",// Nederlands - "",// Português + "",// Português "",// Francais "",// Norsk "Ei aktiivinen",// Suomi "",// Polski - "",// Español + "",// Español "",// Greek "",// svenska "",// Romaneste "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif }, - { "Disable Sleep-Timer in %d minutes", - "Sleep-Timer in %d Minuten abbrechen", + { "Disable sleeptimer in %d minutes", + "Sleeptimer in %d Minuten abbrechen", "",// TODO "",// TODO "",// TODO @@ -34,63 +51,154 @@ const tI18nPhrase Phrases[] = { "",// TODO "",// TODO "Peruuta %d minuutin ajastin?",// Suomi - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif }, - { "Abort Sleep-Timer?", - "Sleep-Timer abbrechen?", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "Keskeytä ajastin",// Suomi + { "Disable sleeptimer?", + "Sleeptimer abbrechen?", "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO + "Keskeytä ajastin",// Suomi + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif }, - { "Activate Sleep-Timer at %i:%0.2i?", - "Sleep-Timer um %i:%0.2i aktivieren?", + { "Timespan shorter than 2 minutes", + "Zeitspanne kürzer 2 Minuten", "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO - "Aktivoi ajastin %i:%0.2i?",// Suomi + "",// suomi + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + { "Activate sleeptimer at %i:%.2i?", + "Sleeptimer um %i:%.2i aktivieren?", "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO + "Aktivoi ajastin %i:%.2i?",// Suomi + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif }, - { "Activate Sleep-Timer in %d minutes?", - "Sleep-Timer in %d Minuten aktivieren?", - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "Aktivoi %d minuutin ajastin?",// Suomi + { "Activate sleeptimer in %i minutes?", + "Sleeptimer in %i Minuten aktivieren?", "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO + "Aktivoi %i minuutin ajastin?",// Suomi + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif }, - { "Sleep-Timer", - "Sleep-Timer", + { "Sleeptimer", + "Sleeptimer", "",// TODO "",// TODO "",// TODO @@ -98,12 +206,27 @@ const tI18nPhrase Phrases[] = { "",// TODO "",// TODO "Ajastin",// Suomi - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif }, { "Action", "Aktion", @@ -114,15 +237,30 @@ const tI18nPhrase Phrases[] = { "",// TODO "",// TODO "Toiminto",// Suomi - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO - "",// TODO + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif }, { "Going to sleep in about one minute", - "Sleep-Timer in einer Minute", + "Sleeptimer in einer Minute", "",// TODO "",// TODO "",// TODO @@ -130,15 +268,61 @@ const tI18nPhrase Phrases[] = { "",// TODO "",// TODO "Ajastin aktivoituu noin minuutin kuluttua",// Suomi + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + { "Default Timespan [min]", + "Standard-Zeitspanne [min]", "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO "",// TODO + "",// suomi + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif }, - { "Shutdown-Time", - "Shutdown-Zeit", + { "Shutdown (time)", + "Shutdown (Uhrzeit)", "", "", "", @@ -146,29 +330,440 @@ const tI18nPhrase Phrases[] = { "", "", "Sammutusaika", // Suomi + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + { "Shutdown [min]", + "Shutdown [min]", "", "", "", "", "", "", + "Sammutus minuutteina", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif }, - { "Shutdown-Minutes", - "Shutdown-Minuten", + + + { "Sleeptimer disabled", + "Sleeptimer inaktiv", "", "", "", "", "", "", - "Sammutus minuutteina", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, { "Sleeptimer in %i minutes", + "Sleeptimer in %i Minuten", "", "", "", "", "", "", - }, + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + + { "Confirm", + "Bestätigen", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + { "Use default for autoswitch", + "Automatik mit Standardzeitspanne", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + { "Enable sleeptimer in %i minutes?", + "Sleeptimer in %i Minuten aktivieren?", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + { "Disable", + "Deaktivieren", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + { "Autoswitch", + "Automatisch", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + { "Sleeptimer in %i minutes", + "Sleeptimer in %i Minuten", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + + { "Shutdown", + "Herunterfahren", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + + { "Mute", + "Stumm schalten", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + + { "Yes", + "Ja", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + + { "No", + "Nein", + "", + "", + "", + "", + "", + "", + "", + "",// Polski + "",// Espaqol + "",// Greek + "",// svenska + "",// Romaneste + "",// Magyar + "",// cat + "",// rus + "",// hrv +#if VDRVERSNUM >= 10313 + "",// est +#endif +#if VDRVERSNUM >= 10316 + "",// dan +#endif +#if VDRVERSNUM >= 10342 + "",// cze +#endif +#if VDRVERSNUM >= 10502 + "",// tur +#endif + }, + + { NULL } }; +#endif diff --git a/po/ca_ES.po b/po/ca_ES.po new file mode 100644 index 0000000..2acbeed --- /dev/null +++ b/po/ca_ES.po @@ -0,0 +1,96 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Jordi Vilà <jvila@tinet.org>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/cs_CZ.po b/po/cs_CZ.po new file mode 100644 index 0000000..892f1aa --- /dev/null +++ b/po/cs_CZ.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Vladimír Bárta <vladimir.barta@k2atmitec.cz>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/da_DK.po b/po/da_DK.po new file mode 100644 index 0000000..2d83889 --- /dev/null +++ b/po/da_DK.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Mogens Elneff <mogens@elneff.dk>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/de_DE.po b/po/de_DE.po new file mode 100644 index 0000000..6902ea1 --- /dev/null +++ b/po/de_DE.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.de> +# This file is distributed under the same license as the VDR package. +# Klaus Schmidinger <kls@tvdr.de>, 2000 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Klaus Schmidinger <kls@tvdr.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "Sleeptimer" + +msgid "Autoswitch" +msgstr "Automatisch" + +msgid "Disable" +msgstr "Deaktivieren" + +msgid "Not active" +msgstr "Nicht aktiv" + +msgid "Shutdown [min]" +msgstr "Shutdown [min]" + +msgid "Shutdown (time)" +msgstr "Shutdown (Uhrzeit)" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "Sleeptimer in %d Minuten abbrechen" + +msgid "Default Timespan [min]" +msgstr "Standard-Zeitspanne [min]" + +msgid "Action" +msgstr "Aktion" + +msgid "Shutdown" +msgstr "Herunterfahren" + +msgid "Mute" +msgstr "Stumm schalten" + +msgid "Use default for autoswitch" +msgstr "Automatik mit Standardzeitspanne" + +msgid "No" +msgstr "Nein" + +msgid "Yes" +msgstr "Ja" + +msgid "Confirm" +msgstr "Bestätigen" + +msgid "Going to sleep in about one minute" +msgstr "Sleeptimer in einer Minute" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "Sleeptimer um %i:%.2i aktivieren?" + +msgid "Timespan shorter than 2 minutes" +msgstr "Zeitspanne kürzer 2 Minuten" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "Sleeptimer in %i Minuten aktivieren?" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "Sleeptimer in %i Minuten" + +msgid "Sleeptimer disabled" +msgstr "Sleeptimer inaktiv" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "Sleeptimer in %i Minuten aktivieren?" + +msgid "Disable sleeptimer?" +msgstr "Sleeptimer abbrechen?" diff --git a/po/el_GR.po b/po/el_GR.po new file mode 100644 index 0000000..c68a98f --- /dev/null +++ b/po/el_GR.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Dimitrios Dimitrakos <mail@dimitrios.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-7\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/es_ES.po b/po/es_ES.po new file mode 100644 index 0000000..d1787c0 --- /dev/null +++ b/po/es_ES.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Ruben Nunez Francisco <ruben.nunez@tang-it.com>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/et_EE.po b/po/et_EE.po new file mode 100644 index 0000000..5b74f3e --- /dev/null +++ b/po/et_EE.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Arthur Konovalov <kasjas@hot.ee>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-13\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/fi_FI.po b/po/fi_FI.po new file mode 100644 index 0000000..a6706d6 --- /dev/null +++ b/po/fi_FI.po @@ -0,0 +1,97 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Rolf Ahrenberg <rahrenbe@cc.hut.fi>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "Ajastin" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "Ei aktiivinen" + +msgid "Shutdown [min]" +msgstr "Sammutus minuutteina" + +msgid "Shutdown (time)" +msgstr "Sammutusaika" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "Peruuta %d minuutin ajastin?" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "Toiminto" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "Ajastin aktivoituu noin minuutin kuluttua" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "Aktivoi ajastin %i:%.2i?" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "Aktivoi %i minuutin ajastin?" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "Keskeytä ajastin" diff --git a/po/fr_FR.po b/po/fr_FR.po new file mode 100644 index 0000000..102bb6b --- /dev/null +++ b/po/fr_FR.po @@ -0,0 +1,97 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Nicolas Huillard <nhuillard@e-dition.fr>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/hr_HR.po b/po/hr_HR.po new file mode 100644 index 0000000..79fb488 --- /dev/null +++ b/po/hr_HR.po @@ -0,0 +1,95 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Drazen Dupor <drazen.dupor@dupor.com>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/hu_HU.po b/po/hu_HU.po new file mode 100644 index 0000000..4f47437 --- /dev/null +++ b/po/hu_HU.po @@ -0,0 +1,95 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Istvan Koenigsberger <istvnko@hotmail.com>, Guido Josten <guido.josten@t-online.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/it_IT.po b/po/it_IT.po new file mode 100644 index 0000000..b0dfa16 --- /dev/null +++ b/po/it_IT.po @@ -0,0 +1,96 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Sean Carlos <seanc@libero.it>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/nl_NL.po b/po/nl_NL.po new file mode 100644 index 0000000..319ff28 --- /dev/null +++ b/po/nl_NL.po @@ -0,0 +1,96 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Maarten Wisse <Maarten.Wisse@urz.uni-hd.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/nn_NO.po b/po/nn_NO.po new file mode 100644 index 0000000..d30862c --- /dev/null +++ b/po/nn_NO.po @@ -0,0 +1,95 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Truls Slevigen <truls@slevigen.no>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/pl_PL.po b/po/pl_PL.po new file mode 100644 index 0000000..5589377 --- /dev/null +++ b/po/pl_PL.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Michael Rakowski <mrak@gmx.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/pt_PT.po b/po/pt_PT.po new file mode 100644 index 0000000..a6e63f5 --- /dev/null +++ b/po/pt_PT.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Paulo Lopes <pmml@netvita.pt>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/ro_RO.po b/po/ro_RO.po new file mode 100644 index 0000000..abefeb7 --- /dev/null +++ b/po/ro_RO.po @@ -0,0 +1,95 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Lucian Muresan <lucianm@users.sourceforge.net>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/ru_RU.po b/po/ru_RU.po new file mode 100644 index 0000000..d0d63d5 --- /dev/null +++ b/po/ru_RU.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Vyacheslav Dikonov <sdiconov@mail.ru>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-5\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/sl_SI.po b/po/sl_SI.po new file mode 100644 index 0000000..0439182 --- /dev/null +++ b/po/sl_SI.po @@ -0,0 +1,95 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Matjaz Thaler <matjaz.thaler@guest.arnes.si>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/sv_SE.po b/po/sv_SE.po new file mode 100644 index 0000000..25147f2 --- /dev/null +++ b/po/sv_SE.po @@ -0,0 +1,95 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Tomas Prybil <tomas@prybil.se>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/po/tr_TR.po b/po/tr_TR.po new file mode 100644 index 0000000..b2c1e4e --- /dev/null +++ b/po/tr_TR.po @@ -0,0 +1,94 @@ +# VDR plugin language source file. +# Copyright (C) 2007 Klaus Schmidinger <kls@tvdr.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: <vdrportal_midas <at> gmx <dot> de>\n" +"POT-Creation-Date: 2011-07-20 23:03+0200\n" +"PO-Revision-Date: 2011-07-20 22:51+0200\n" +"Last-Translator: Oktay Yolgeçen <oktay_73@yahoo.de>\n" +"Language-Team: <vdr@linuxtv.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-9\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Sleeptimer" +msgstr "" + +msgid "Autoswitch" +msgstr "" + +msgid "Disable" +msgstr "" + +msgid "Not active" +msgstr "" + +msgid "Shutdown [min]" +msgstr "" + +msgid "Shutdown (time)" +msgstr "" + +#, c-format +msgid "Disable sleeptimer in %d minutes" +msgstr "" + +msgid "Default Timespan [min]" +msgstr "" + +msgid "Action" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Mute" +msgstr "" + +msgid "Use default for autoswitch" +msgstr "" + +msgid "No" +msgstr "" + +msgid "Yes" +msgstr "" + +msgid "Confirm" +msgstr "" + +msgid "Going to sleep in about one minute" +msgstr "" + +msgid "Disable Sleeptimer?" +msgstr "" + +#, c-format +msgid "Activate sleeptimer at %i:%.2i?" +msgstr "" + +msgid "Timespan shorter than 2 minutes" +msgstr "" + +#, c-format +msgid "Activate sleeptimer in %i minutes?" +msgstr "" + +#, c-format +msgid "Sleeptimer in %i minutes" +msgstr "" + +msgid "Sleeptimer disabled" +msgstr "" + +#, c-format +msgid "Enable sleeptimer in %i minutes?" +msgstr "" + +msgid "Disable sleeptimer?" +msgstr "" diff --git a/sleeptimer.c b/sleeptimer.c index f1c08e1..1ae56b9 100644 --- a/sleeptimer.c +++ b/sleeptimer.c @@ -9,142 +9,111 @@ #include <vdr/plugin.h> #include <vdr/interface.h> #include <vdr/device.h> -#include "i18n.h" - -static const char *VERSION = "0.7"; -static const char *DESCRIPTION = "Sleep-Timer for VDR"; -static const char *MAINMENUENTRY = "Sleep-Timer"; -int multi = 15; -int max_minute = 360; -int sleepat = 0; -int Method = 0; -int Shutdown_Time = 0; -int Shutdown_Minutes = 0; -char *Command = "/sbin/poweroff"; -// Tools -int time_now() { - char buff[15]; - time_t tm; - time(&tm); - strftime(buff, sizeof(buff), "%s", localtime(&tm)); - return(atoi(buff)); -} +#if VDRVERSNUM < 10507 + #include "i18n.h" +#endif -int time_then(int minutes) { - int now; - now = time_now(); - return(now + (minutes * 60)); -} +static const char *VERSION = "0.8"; +static const char *DESCRIPTION = "Sleeptimer for VDR"; +static const char *MAINMENUENTRY = tr("Sleeptimer"); -int i2s(int tnow) { - time_t tme = time(NULL); - struct tm *TM; - char buf[15]; - int dif; - int Std; - int Min; - - TM = localtime(&tme); - (*TM).tm_sec = 0; - (*TM).tm_min = 0; - (*TM).tm_hour = 0; - strftime(buf, sizeof(buf), "%s", TM); - dif = (tnow - atoi(buf)); - Std = dif / 3600; - Min = ((dif - Std * 3600) / 60); - return Std * 100 + Min; -} +int method = 0; +int default_timespan=15; +int shutdown_time = 0; +int shutdown_minutes = 2; +bool start_w_default=false; +bool do_confirm=false; +const char *command = "/sbin/poweroff"; +bool process_red=false; -int s2i(int &Min, int &Std, int Value) { - time_t tme = time(NULL); - char buf[15]; - struct tm *TM; - TM = localtime(&tme); - Std = int(Value / 100); - Min = ((Value - Std * 100) % 60); - if (Std * 60 + Min < (*TM).tm_hour * 60 + (*TM).tm_min) - (*TM).tm_mday++; - (*TM).tm_sec = 0; - (*TM).tm_min = 0; - (*TM).tm_hour = 0; - strftime(buf, sizeof(buf), "%s", TM); - return atoi(buf) + Std * 3600 + Min * 60; -} - -// cMenuSetupSleeptimer -class cMenuSetupSleeptimer : public cMenuSetupPage { -private: - int newMethod; -public: - cMenuSetupSleeptimer(void); - virtual void Store(void); -}; +#define ARRAYLENGTH 9 +int autoswitch_vals[] = { 0,15,30,45,60,90,120,180,-1 }; //-1 is a placeholder for the default timespan -cMenuSetupSleeptimer::cMenuSetupSleeptimer(void) { - newMethod = Method; - Add(new cMenuEditBoolItem(tr("Action"), &newMethod, tr("Shutdown"), tr("Mute"))); -} -void cMenuSetupSleeptimer::Store(void) { - SetupStore("Method", Method = newMethod); -} +// Tools +int i2s(int val) //prepare a special int for vdrs OSD +{ + time_t tme = time(NULL); + struct tm *TM; + int dif; + int h; + int min; + TM = localtime(&tme); + (*TM).tm_sec = 0; + (*TM).tm_min = 0; + (*TM).tm_hour = 0; + dif = (val - mktime(TM)); + h = dif / 3600; + min = ((dif - h * 3600) / 60); + if (h > 23) h-=24; + return h * 100 + min; //Std * 100 because vdr interprets the value in a special way (eg 10:46h in vdr is 1046) +} -// cBackgroundSleepTimer -class cBackgroundSleepTimer : public cThread { -private: - virtual void Action(void); -public: - cBackgroundSleepTimer(void); - ~cBackgroundSleepTimer(); -}; +time_t s2i(int &min, int &h, int value) //convert vdrs representation of time (see i2s) to time_t and check +{ //if the shutdown time is after midnight + time_t tme = time(NULL); + struct tm *TM; + TM = localtime(&tme); + h = int(value / 100); + min = ((value - h * 100) % 60); -class MainMenu : public cOsdMenu { -public: - MainMenu(void); - eOSState ProcessKey(eKeys k); - cBackgroundSleepTimer *dos; -}; + if (h * 60 + min < (*TM).tm_hour * 60 + (*TM).tm_min) + (*TM).tm_mday++; -cBackgroundSleepTimer::cBackgroundSleepTimer(void) { - Start(); + (*TM).tm_sec = 0; + (*TM).tm_min = 0; + (*TM).tm_hour = 0; + return mktime(TM) + h * 3600 + min * 60; } -cBackgroundSleepTimer::~cBackgroundSleepTimer() { - sleepat = 0; +void InsertDefaultTimespan() +{ + int reinit_array[] = { 0, 15, 30, 45, 60, 90, 120, 180, -1}; + int i=0; + bool already_in=false; + for (i=0;i<ARRAYLENGTH;i++) + { + autoswitch_vals[i]=reinit_array[i]; + if (default_timespan==reinit_array[i]) already_in=true; + } + if (already_in) return; + + if (default_timespan>autoswitch_vals[ARRAYLENGTH-2]) + { + autoswitch_vals[ARRAYLENGTH-1]=default_timespan; + return; + } + else + { + for (i=ARRAYLENGTH-2;autoswitch_vals[i]>default_timespan;i--); + int j=ARRAYLENGTH-1; + for (;j>i+1;j--) autoswitch_vals[j]=autoswitch_vals[j-1]; + autoswitch_vals[i+1]=default_timespan; + } } -void cBackgroundSleepTimer::Action(void) { - isyslog("sleeptimer: thread started (pid=%d)", getpid()); - while(sleepat) { - if(sleepat <= time_now()) { - isyslog("sleeptimer: timeout"); - if(Method == 0) { - isyslog("sleeptimer: executing \"%s\"", Command); - if(SystemExec(Command) == -1) - isyslog("sleeptimer: errror while executing \"%s\"!", Command); - } - if(Method == 1) { - isyslog("sleeptimer: muting audio"); - if(!cDevice::PrimaryDevice()->IsMute()) - cDevice::PrimaryDevice()->ToggleMute(); - } - sleepat = 0; - } else { - if((sleepat - 60) <= time_now()) { - Interface->Confirm(tr("Going to sleep in about one minute"), 5, false); - isyslog("sleeptimer: going to sleep in about one minute"); - } - } - if(sleepat) - sleep(10); - } - isyslog("sleeptimer: thread end (pid=%d)", getpid()); +void ResetAutoswitchValues() +{ + int reinit_array[] = { 0, 15, 30, 45, 60, 90, 120, 180, -1}; + int i=0; + for (i=0;i<ARRAYLENGTH;i++) + { + autoswitch_vals[i]=reinit_array[i]; + } } - + // cPluginSleeptimer class cPluginSleeptimer : public cPlugin { + + +private: + static time_t sleepat; + time_t lastaction; + void HotkeyAction(); + eKeys ShowMessage(cString msg); + public: cPluginSleeptimer(void); virtual ~cPluginSleeptimer(); @@ -158,17 +127,22 @@ public: virtual cOsdObject *MainMenuAction(void); virtual cMenuSetupPage *SetupMenu(void); virtual bool SetupParse(const char *Name, const char *Value); - // -}; + static time_t getSleeptimer() { return cPluginSleeptimer::sleepat; } + static void setSleeptimer(time_t tt) { cPluginSleeptimer::sleepat=tt; } +}; cPluginSleeptimer::cPluginSleeptimer(void) { // Initialize any member variables here. // DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL // VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT! + lastaction=0; } +//Initialization of static members +time_t cPluginSleeptimer::sleepat=0; + cPluginSleeptimer::~cPluginSleeptimer() { // Clean up after yourself! @@ -187,7 +161,7 @@ bool cPluginSleeptimer::ProcessArgs(int argc, char *argv[]) while((c = getopt(argc, argv, "e:")) != -1 ) { switch(c) { case 'e': - Command = optarg; + command = optarg; break; default: return false; } @@ -197,19 +171,104 @@ bool cPluginSleeptimer::ProcessArgs(int argc, char *argv[]) bool cPluginSleeptimer::Start(void) { - RegisterI18n(Phrases); - return true; +#if VDRVERSNUM < 10507 + RegisterI18n(Phrases); +#endif + return true; } void cPluginSleeptimer::Housekeeping(void) { } +// cBackgroundSleeptimer +class cBackgroundSleeptimer : public cThread { +private: + virtual void Action(void); + static cBackgroundSleeptimer *inst; + cBackgroundSleeptimer(void); + +public: + static cBackgroundSleeptimer *getInstance(void); + ~cBackgroundSleeptimer(); +}; + +class MainMenu : public cOsdMenu { +private: + int minpos; + int timepos; + int actionpos; + +public: + MainMenu(void); + eOSState ProcessKey(eKeys k); + ~MainMenu(); +}; + + +MainMenu::MainMenu(void) : cOsdMenu("Sleeptimer", 20) +{ + if (process_red) return; + char buf[80]; + SetHelp(tr("Autoswitch"),tr("Disable"),NULL,NULL); + if(!cPluginSleeptimer::getSleeptimer()) + { + snprintf(buf, sizeof(buf), "%s", tr("Not active")); + shutdown_time = i2s((int)(time(NULL))+120); + shutdown_minutes = default_timespan; + Add(new cMenuEditIntItem(tr("Shutdown [min]"), &shutdown_minutes, 2,1440)); + Add(new cMenuEditTimeItem(tr("Shutdown (time)"), &shutdown_time)); + Add(new cOsdItem(hk(buf))); + minpos=0; + timepos=1; + actionpos=2; + } + else + { + int dif=(int)(difftime(cPluginSleeptimer::getSleeptimer(),time(NULL))); + + shutdown_minutes = dif/60; + + //make sure shutdown_time (in the OSD) is always at least 2 minutes in the future + int shutd_tmp=0; + if (shutdown_minutes==0) shutd_tmp=2; + if (shutdown_minutes==1) shutd_tmp=1; + shutdown_time = i2s((int)cPluginSleeptimer::getSleeptimer()+shutd_tmp); + + snprintf(buf, sizeof(buf), tr("Disable sleeptimer in %d minutes"), shutdown_minutes); + Add(new cOsdItem(hk(buf))); + Add(new cMenuEditIntItem(tr("Shutdown [min]"), &shutdown_minutes,2,1440)); + Add(new cMenuEditTimeItem(tr("Shutdown (time)"), &shutdown_time)); + minpos=1; + timepos=2; + actionpos=0; + } +} + + cOsdObject *cPluginSleeptimer::MainMenuAction(void) { - return new MainMenu; + if (Interface->GetKey(false)==55 && !process_red) return new MainMenu(); + + if (process_red) process_red=false; + + HotkeyAction(); + + return NULL; + } +class cMenuSetupSleeptimer : public cMenuSetupPage { +private: + int new_method; + int timespan; + int setup_start_w_default; + int setup_do_confirm; +public: + cMenuSetupSleeptimer(void); + virtual void Store(void); +}; + cMenuSetupPage *cPluginSleeptimer::SetupMenu(void) { return new cMenuSetupSleeptimer; @@ -217,78 +276,395 @@ cMenuSetupPage *cPluginSleeptimer::SetupMenu(void) bool cPluginSleeptimer::SetupParse(const char *Name, const char *Value) { - if(!strcasecmp(Name, "Method")) - Method = atoi(Value); - else return false; - return true; + if(!strcasecmp(Name, "Method")) + method = atoi(Value); + else if (!strcasecmp(Name,"DefaultTimespan")) + { + default_timespan=atoi(Value); + if (start_w_default) + InsertDefaultTimespan(); + else + ResetAutoswitchValues(); + } + else if (!strcasecmp(Name,"StartWithDefault")) + { + start_w_default=atoi(Value); + if (start_w_default) + InsertDefaultTimespan(); + else + ResetAutoswitchValues(); + } + else if (!strcasecmp(Name,"Confirmation")) + do_confirm=atoi(Value); + else return false; + return true; } -MainMenu::MainMenu(void) : cOsdMenu("Sleep Timer", 20) { - char buf[80]; + +// cMenuSetupSleeptimer +cMenuSetupSleeptimer::cMenuSetupSleeptimer(void) +{ + new_method = method; + timespan = default_timespan; + setup_start_w_default=start_w_default; + setup_do_confirm=do_confirm; + Add(new cMenuEditIntItem(tr("Default Timespan [min]"), ×pan, 2)); + Add(new cMenuEditBoolItem(tr("Action"), &new_method, tr("Shutdown"), tr("Mute"))); + Add(new cMenuEditBoolItem(tr("Use default for autoswitch"), &setup_start_w_default, tr("No"), tr("Yes"))); + Add(new cMenuEditBoolItem(tr("Confirm"), &setup_do_confirm, tr("No"), tr("Yes"))); +} - if(!sleepat) - snprintf(buf, sizeof(buf), "%s", tr("Not active")); - else { - snprintf(buf, sizeof(buf), tr("Disable Sleep-Timer in %d minutes"), - (sleepat - time_now()) / 60); +void cMenuSetupSleeptimer::Store(void) +{ + SetupStore("Method", method = new_method); + SetupStore("DefaultTimespan", default_timespan=timespan); + SetupStore("StartWithDefault", start_w_default=setup_start_w_default); + SetupStore("Confirmation", do_confirm=setup_do_confirm); + if (start_w_default) + InsertDefaultTimespan(); + else + ResetAutoswitchValues(); +} + + +MainMenu::~MainMenu() +{ +} + +cBackgroundSleeptimer::cBackgroundSleeptimer(void) +{ + Start(); +} + +cBackgroundSleeptimer* cBackgroundSleeptimer::inst=NULL; + +cBackgroundSleeptimer* cBackgroundSleeptimer::getInstance() +{ + if (inst==NULL) + { + inst=new cBackgroundSleeptimer(); + } + return inst; +} + + +cBackgroundSleeptimer::~cBackgroundSleeptimer() +{ + if (inst) delete inst; + cPluginSleeptimer::setSleeptimer(0); +} + +void cBackgroundSleeptimer::Action(void) +{ + isyslog("plugin-sleeptimer: thread started (pid=%d)", getpid()); + while(cPluginSleeptimer::getSleeptimer()) + { + if(cPluginSleeptimer::getSleeptimer() <= time(NULL)) + { + isyslog("plugin-sleeptimer: timeout"); + cPluginSleeptimer::setSleeptimer(0); + + if(method == 0) + { + isyslog("plugin-sleeptimer: executing \"%s\"", command); + if(SystemExec(command) == -1) + isyslog("plugin-sleeptimer: errror while executing \"%s\"!", command); + } + + if(method == 1) + { + isyslog("plugin-sleeptimer: muting audio"); + if(!cDevice::PrimaryDevice()->IsMute()) + cDevice::PrimaryDevice()->ToggleMute(); + } + } + else //timeout not reached yet + { + if((cPluginSleeptimer::getSleeptimer() - 60) <= time(NULL)) + { + Skins.Message(mtInfo,tr("Going to sleep in about one minute"),0); + isyslog("plugin-sleeptimer: going to sleep in about one minute"); + } } - - Add(new cOsdItem(hk(buf))); - if(sleepat) { - Shutdown_Time = i2s(sleepat); - Shutdown_Minutes = ((sleepat - time_now()) / 60); - } else { - Shutdown_Time = i2s(time_now()); - Shutdown_Minutes = 15; + int i=0; + while (cPluginSleeptimer::getSleeptimer() && i<10) + { + sleep(1); + i++; } - /*Added language support in 0.61*/ - Add(new cMenuEditTimeItem(tr("Shutdown-Time"), &Shutdown_Time)); - Add(new cMenuEditIntItem(tr("Shutdown-Minutes"), &Shutdown_Minutes)); + } + isyslog("plugin-sleeptimer: thread end (pid=%d)", getpid()); } -eOSState MainMenu::ProcessKey(eKeys k) { - int current; - eOSState state = cOsdMenu::ProcessKey(k); - switch(state) { - case osUnknown: - switch(k) { - case kOk: - current = Current(); - if(current == 0) { - if(Interface->Confirm(tr("Abort Sleep-Timer?"))) { - sleepat = 0; - return(osEnd); - } - } else if(current == 1) { - char buf[80]; - int tmp, Std, Min; - tmp = s2i(Min, Std, Shutdown_Time); - snprintf(buf, sizeof(buf), tr("Activate Sleep-Timer at %i:%0.2i?"), Std, Min); - - if(Interface->Confirm(buf)) { - sleepat = tmp; - dos = new cBackgroundSleepTimer; - return(osEnd); - } - } else if(current == 2) { - char buf[80]; - snprintf(buf, sizeof(buf), tr("Activate Sleep-Timer in %d minutes?"), Shutdown_Minutes); - if(Interface->Confirm(buf)) { - sleepat = time_then(Shutdown_Minutes); - dos = new cBackgroundSleepTimer; - return(osEnd); - } - } - return(osPlugin); - break; - default: break; - } - case osBack: - case osEnd: - break; - default: break; - } - return(state); + +eOSState MainMenu::ProcessKey(eKeys k) +{ + int current; + + eOSState state = cOsdMenu::ProcessKey(k); + switch(state) + { + case osUnknown: + switch(k) + { + case kRed: + process_red=true; + cRemote::CallPlugin("sleeptimer"); + return osEnd; + break; + + case kGreen: + cPluginSleeptimer::setSleeptimer(0); + return osEnd; + break; + + case kOk: + current = Current(); + if(current == actionpos) + { + if(Interface->Confirm(tr("Disable Sleeptimer?"))) + { + cPluginSleeptimer::setSleeptimer(0); + return(osEnd); + } + } + else if(current == timepos) + { + char buf[80]; + int Std, Min; + time_t tmp; + tmp = s2i(Min, Std, shutdown_time); + + snprintf(buf, sizeof(buf), tr("Activate sleeptimer at %i:%.2i?"), Std, Min); + + if(Interface->Confirm(buf)) + { + if (tmp<time(NULL)+61) + { + Skins.Message(mtError,tr("Timespan shorter than 2 minutes")); + return osContinue; + } + + cPluginSleeptimer::setSleeptimer(tmp); + + cBackgroundSleeptimer::getInstance()->Start(); + return(osEnd); + } + } + else if(current == minpos) + { + char buf[80]; + snprintf(buf, sizeof(buf), tr("Activate sleeptimer in %i minutes?"), shutdown_minutes); + if(Interface->Confirm(buf)) + { + cPluginSleeptimer::setSleeptimer(time(NULL) + shutdown_minutes * 60); + cBackgroundSleeptimer::getInstance()->Start(); + return(osEnd); + } + } + return(osPlugin); + break; + + default: break; + } + default: break; + } + return state; +} + + +// ************************ +// ***** HotkeyAction ***** +// ************************ + +void cPluginSleeptimer::HotkeyAction() +{ + eKeys user_key=(eKeys)NULL; + cString msg=""; + bool first_action=false; + time_t now=time(NULL); + int next_sleepmin_index=-1; + + while (true) //OSD message / user interaction loop + { + now=time(NULL); + if (difftime(now,lastaction)>5) first_action=true; + + lastaction=now; + + if (first_action) + { + next_sleepmin_index=-1; + if (sleepat) + { + msg=msg.sprintf(tr("Sleeptimer in %i minutes"),(int)(difftime(sleepat,now)/60)); + } + else + { + msg=msg.sprintf(tr("Sleeptimer disabled")); + } + } + else + { + if (next_sleepmin_index > 0) + { + if (do_confirm) + { + msg=msg.sprintf(tr("Enable sleeptimer in %i minutes?"), autoswitch_vals[next_sleepmin_index]); + } + else + { + msg=msg.sprintf(tr("Sleeptimer in %i minutes"), autoswitch_vals[next_sleepmin_index]); + } + } + else + { + if (do_confirm) + { + msg=msg.sprintf(tr("Disable sleeptimer?")); + } + else + { + msg=msg.sprintf(tr("Sleeptimer disabled")); + } + } + } + eKeys k=ShowMessage(msg); + + +// *********************** +// ***** KEYHANDLING ***** +// *********************** + + if (first_action) + { + if ((k>=kUser1 && k<=kUser9) || k==kRed) + user_key=k; + } + + if (k!=kRed && k!=kGreen && k!=kBack && k!=kOk && k!= kNone && k!=user_key) + { + cRemote::Put(k); + break; + } + + if (k==kBack) + { + break; + } + + if (k==kRed || k==user_key) + { + if (!first_action) + { + if (!do_confirm) + { + if (next_sleepmin_index > 0) + { + sleepat=now + autoswitch_vals[next_sleepmin_index] * 60; + cBackgroundSleeptimer::getInstance()->Start(); + } + else + { + sleepat=0; + } + } + } + } + + + if (k==kOk || (k==kNone && !do_confirm)) + { + if (next_sleepmin_index > 0) + { + sleepat=now + autoswitch_vals[next_sleepmin_index] * 60; + cBackgroundSleeptimer::getInstance()->Start(); + } + else + { + sleepat=0; + } + break; + } + + if (k==kGreen) + { + sleepat=0; + msg=msg.sprintf(tr("Sleeptimer disabled")); + break; + } + + if (k==kNone) break; + + if (first_action) + { + first_action=false; + + if (!sleepat) + { + if (start_w_default) + { + int i=0; + for (i=0;i<ARRAYLENGTH-1;i++) + if (autoswitch_vals[i]==default_timespan) next_sleepmin_index=i-1; + } + else + { + next_sleepmin_index=0;//bit confusing; final value should be 1 but 1 will be added at the end of the method + } + } + else //there is an active sleeptimer so starting from this we have to find the next higher value + { + next_sleepmin_index=0; + int last_field=ARRAYLENGTH-1; + if (autoswitch_vals[last_field]<0) last_field=ARRAYLENGTH-2; + + if (sleepat > autoswitch_vals[last_field]*60 + now) continue; + + int dest_index=-1; + int i=0; + for (;i<=last_field;i++) + { + if (sleepat >= autoswitch_vals[i]*60 + now) continue; + + dest_index=i; + break; + } + if (dest_index==-1) + continue; + else + { + next_sleepmin_index=dest_index; + continue; + } + } + } + next_sleepmin_index+=1; + + if (next_sleepmin_index>=ARRAYLENGTH || autoswitch_vals[next_sleepmin_index]<0) next_sleepmin_index=0; + } + Interface->GetKey(false); + lastaction=0; +} + + +// *********************** +// ***** ShowMessage ***** +// *********************** + +eKeys cPluginSleeptimer::ShowMessage(cString msg) +{ + cSkinDisplayMessage *csdmsg=Skins.Current()->DisplayMessage(); + cSkinDisplay::Current()->SetMessage(mtInfo,*msg); + cSkinDisplay::Current()->Flush(); + + Interface->GetKey(false); + eKeys retval= Interface->Wait(5); + + delete csdmsg; + csdmsg=NULL; + + return retval; } VDRPLUGINCREATOR(cPluginSleeptimer); // Don't touch this! |