From 9d91a147e9be5fa93af2d5e8753464546566174e Mon Sep 17 00:00:00 2001 From: Timo Eskola Date: Tue, 8 Sep 2015 13:43:03 +0300 Subject: Version 0.0.2: - Updated for VDR 1.5.8. --- HISTORY | 4 ++ Makefile | 35 ++++++++++++-- README | 10 ++-- i18n-template.c | 17 +++++++ i18n.h | 6 +++ po/ca_ES.po | 30 ++++++++++++ po/cs_CZ.po | 28 ++++++++++++ po/da_DK.po | 28 ++++++++++++ po/de_DE.po | 28 ++++++++++++ po/el_GR.po | 28 ++++++++++++ po/es_ES.po | 28 ++++++++++++ po/et_EE.po | 28 ++++++++++++ po/fi_FI.po | 31 +++++++++++++ po/fr_FR.po | 31 +++++++++++++ po/hr_HR.po | 29 ++++++++++++ po/hu_HU.po | 29 ++++++++++++ po/it_IT.po | 30 ++++++++++++ po/nl_NL.po | 30 ++++++++++++ po/nn_NO.po | 29 ++++++++++++ po/pl_PL.po | 28 ++++++++++++ po/pt_PT.po | 28 ++++++++++++ po/ro_RO.po | 29 ++++++++++++ po/ru_RU.po | 28 ++++++++++++ po/sl_SI.po | 29 ++++++++++++ po/sv_SE.po | 29 ++++++++++++ po/tr_TR.po | 28 ++++++++++++ po2i18n.pl | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ useractivity.c | 12 +++-- 28 files changed, 819 insertions(+), 10 deletions(-) create mode 100644 i18n-template.c create mode 100644 po/ca_ES.po create mode 100644 po/cs_CZ.po create mode 100644 po/da_DK.po create mode 100644 po/de_DE.po create mode 100644 po/el_GR.po create mode 100644 po/es_ES.po create mode 100644 po/et_EE.po create mode 100644 po/fi_FI.po create mode 100644 po/fr_FR.po create mode 100644 po/hr_HR.po create mode 100644 po/hu_HU.po create mode 100644 po/it_IT.po create mode 100644 po/nl_NL.po create mode 100644 po/nn_NO.po create mode 100644 po/pl_PL.po create mode 100644 po/pt_PT.po create mode 100644 po/ro_RO.po create mode 100644 po/ru_RU.po create mode 100644 po/sl_SI.po create mode 100644 po/sv_SE.po create mode 100644 po/tr_TR.po create mode 100755 po2i18n.pl diff --git a/HISTORY b/HISTORY index 67e2731..8e4cfa6 100644 --- a/HISTORY +++ b/HISTORY @@ -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. diff --git a/Makefile b/Makefile index 48b5b70..8f0d512 100644 --- a/Makefile +++ b/Makefile @@ -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='' -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* *~ diff --git a/README b/README index 35ea29d..71962bd 100644 --- a/README +++ b/README @@ -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 - 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 +- 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 diff --git a/i18n.h b/i18n.h index d36da2e..eefcd6b 100644 --- a/i18n.h +++ b/i18n.h @@ -11,6 +11,12 @@ #include +#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 +# This file is distributed under the same license as the VDR package. +# Marc Rovira Vall , 2003 +# Ramon Roca , 2003 +# Jordi Vilà , 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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à \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Vladimír Bárta , 2006 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Mogens Elneff , 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Klaus Schmidinger , 2000 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Dimitrios Dimitrakos , 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Ruben Nunez Francisco , 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Arthur Konovalov , 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Hannu Savolainen , 2002 +# Jaakko Hyvätti , 2002 +# Niko Tarnanen , 2003 +# Rolf Ahrenberg , 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Jean-Claude Repetto , 2001 +# Olivier Jacques , 2003 +# Gregoire Favre , 2003 +# Nicolas Huillard , 2005 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Drazen Dupor , 2004 +# Dino Ravnic , 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Istvan Koenigsberger , 2002 +# Guido Josten , 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 , Guido Josten \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Alberto Carraro , 2001 +# Antonio Ospite , 2003 +# Sean Carlos , 2005 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Arnold Niessen , 2001 +# Hans Dingemans , 2003 +# Maarten Wisse , 2005 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Jørgen Tvedt , 2001 +# Truls Slevigen , 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Michael Rakowski , 2002 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Paulo Lopes , 2001 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Paul Lacatus , 2002 +# Lucian Muresan , 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Vyacheslav Dikonov , 2004 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Miha Setina , 2000 +# Matjaz Thaler , 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Tomas Prybil , 2002 +# Jan Ekholm , 2003 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 +# This file is distributed under the same license as the VDR package. +# Oktay Yolgeçen , 2007 +# +msgid "" +msgstr "" +"Project-Id-Version: VDR 1.5.7\n" +"Report-Msgid-Bugs-To: \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 \n" +"Language-Team: \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 () { + 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; } -- cgit v1.2.3