summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile32
-rw-r--r--po/ca_ES.po87
-rw-r--r--po/de_DE.po85
-rw-r--r--po/es_ES.po85
-rw-r--r--po/fi_FI.po88
-rw-r--r--po/fr_FR.po85
-rw-r--r--po/it_IT.po84
-rw-r--r--po/ru_RU.po85
-rw-r--r--txtrecv.c5
9 files changed, 632 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1239ecd..ff79770 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ TMPDIR = /tmp
### The version number of VDR (taken from VDR's "config.h"):
-VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
+APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
### The name of the distribution archive:
@@ -64,13 +64,38 @@ $(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='<nobody@nowhere.org>' -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 $@
- @cp $@ $(LIBDIR)/$@.$(VDRVERSION)
+ @cp $@ $(LIBDIR)/$@.$(APIVERSION)
dist: clean
@-rm -rf $(TMPDIR)/$(ARCHIVE)
@@ -81,6 +106,7 @@ dist: clean
@echo Distribution package created as $(PACKAGE).tgz
clean:
+ @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot
@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~
install:
diff --git a/po/ca_ES.po b/po/ca_ES.po
new file mode 100644
index 0000000..8e6022b
--- /dev/null
+++ b/po/ca_ES.po
@@ -0,0 +1,87 @@
+# VDR plugin language source file.
+# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de>
+# This file is distributed under the same license as the VDR package.
+# Marc Rovira Vall <tm05462@salleURL.edu>, 2003
+# Ramon Roca <ramon.roca@xcombo.com>, 2003
+# Jordi Vilà <jvila@tinet.org>, 2003
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: VDR 1.5.7\n"
+"Report-Msgid-Bugs-To: <nobody@nowhere.org>\n"
+"POT-Creation-Date: 2008-07-25 17:22+0200\n"
+"PO-Revision-Date: 2008-05-04 15:33+0200\n"
+"Last-Translator: Jordi Vilà <jvila@tinet.org>\n"
+"Language-Team: <vdr@linuxtv.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "*** Invalid Channel ***"
+msgstr ""
+
+msgid "Channel (press OK): "
+msgstr "Canal (premi OK):"
+
+msgid "Page"
+msgstr "Pàgina"
+
+msgid "not found"
+msgstr "no trobada"
+
+msgid "Red key"
+msgstr "Tecla vermella"
+
+msgid "Green key"
+msgstr "Tecla verda"
+
+msgid "Yellow key"
+msgstr "Tecla groga"
+
+msgid "Blue key"
+msgstr "Tecla blava"
+
+msgid "Zoom"
+msgstr "Zoom"
+
+msgid "Half page"
+msgstr "Mitja pàgina"
+
+msgid "Change channel"
+msgstr "Canvi cadena"
+
+msgid "Switch background"
+msgstr "Canvia el fons"
+
+msgid "Jump to..."
+msgstr "Salta a..."
+
+msgid "Background transparency"
+msgstr "Transparència del fons"
+
+msgid "Show clock"
+msgstr "Visualitza l'hora"
+
+msgid "Auto-update pages"
+msgstr "Actualització pàgines automàtica"
+
+msgid "OSD height"
+msgstr "Altura OSD"
+
+msgid "OSD width"
+msgstr "Amplària OSD"
+
+msgid "OSD horizontal align"
+msgstr ""
+
+msgid "OSD vertical align"
+msgstr ""
+
+msgid " Page number"
+msgstr " Nombre de pàgina"
+
+#~ msgid "Displays teletext on the OSD"
+#~ msgstr "Visualitza el teletext en l'OSD"
+
+#~ msgid "Teletext (OSD)"
+#~ msgstr "Teletext (OSD)"
diff --git a/po/de_DE.po b/po/de_DE.po
new file mode 100644
index 0000000..fcdaa7d
--- /dev/null
+++ b/po/de_DE.po
@@ -0,0 +1,85 @@
+# VDR plugin language source file.
+# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de>
+# This file is distributed under the same license as the VDR package.
+# Klaus Schmidinger <kls@cadsoft.de>, 2000
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: VDR 1.5.7\n"
+"Report-Msgid-Bugs-To: <nobody@nowhere.org>\n"
+"POT-Creation-Date: 2008-07-25 17:26+0200\n"
+"PO-Revision-Date: 2008-05-04 15:33+0200\n"
+"Last-Translator: Klaus Schmidinger <kls@cadsoft.de>\n"
+"Language-Team: <vdr@linuxtv.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "*** Invalid Channel ***"
+msgstr ""
+
+msgid "Channel (press OK): "
+msgstr "Sender (OK drücken): "
+
+msgid "Page"
+msgstr "Seite"
+
+msgid "not found"
+msgstr "nicht gefunden"
+
+msgid "Red key"
+msgstr "Rote Taste"
+
+msgid "Green key"
+msgstr "Grüne Taste"
+
+msgid "Yellow key"
+msgstr "Gelbe Taste"
+
+msgid "Blue key"
+msgstr "Blaue Taste"
+
+msgid "Zoom"
+msgstr "Vergrößern"
+
+msgid "Half page"
+msgstr "Halbe Seite"
+
+msgid "Change channel"
+msgstr "Kanal wechseln"
+
+msgid "Switch background"
+msgstr "Hintergrund ändern"
+
+msgid "Jump to..."
+msgstr "Springe zu..."
+
+msgid "Background transparency"
+msgstr "Hintergrund-Transparenz"
+
+msgid "Show clock"
+msgstr "Uhr anzeigen"
+
+msgid "Auto-update pages"
+msgstr "Seiten aktualisieren"
+
+msgid "OSD height"
+msgstr "OSD-Höhe"
+
+msgid "OSD width"
+msgstr "OSD-Breite"
+
+msgid "OSD horizontal align"
+msgstr "OSD horizontale Anordnung"
+
+msgid "OSD vertical align"
+msgstr "OSD vertikale Anordnung"
+
+msgid " Page number"
+msgstr " Seitenzahl"
+
+#~ msgid "Displays teletext on the OSD"
+#~ msgstr "Zeigt den Videotext auf dem OSD an"
+
+#~ msgid "Teletext (OSD)"
+#~ msgstr "Videotext (OSD)"
diff --git a/po/es_ES.po b/po/es_ES.po
new file mode 100644
index 0000000..33b315a
--- /dev/null
+++ b/po/es_ES.po
@@ -0,0 +1,85 @@
+# VDR plugin language source file.
+# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de>
+# This file is distributed under the same license as the VDR package.
+# Ruben Nunez Francisco <ruben.nunez@tang-it.com>, 2002
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: VDR 1.5.7\n"
+"Report-Msgid-Bugs-To: <nobody@nowhere.org>\n"
+"POT-Creation-Date: 2008-07-25 17:26+0200\n"
+"PO-Revision-Date: 2008-05-04 15:33+0200\n"
+"Last-Translator: Ruben Nunez Francisco <ruben.nunez@tang-it.com>\n"
+"Language-Team: <vdr@linuxtv.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "*** Invalid Channel ***"
+msgstr ""
+
+msgid "Channel (press OK): "
+msgstr "Canal (pulse OK):"
+
+msgid "Page"
+msgstr "Página"
+
+msgid "not found"
+msgstr "no encontrada"
+
+msgid "Red key"
+msgstr "Tecla roja"
+
+msgid "Green key"
+msgstr "Tecla verde"
+
+msgid "Yellow key"
+msgstr "Tecla amarilla"
+
+msgid "Blue key"
+msgstr "Tecla azul"
+
+msgid "Zoom"
+msgstr "Zoom"
+
+msgid "Half page"
+msgstr "Media página"
+
+msgid "Change channel"
+msgstr "Cambio cadena"
+
+msgid "Switch background"
+msgstr "Cambia el fondo"
+
+msgid "Jump to..."
+msgstr "Salta a..."
+
+msgid "Background transparency"
+msgstr "Transparencia del fondo"
+
+msgid "Show clock"
+msgstr "Visualiza el reloj"
+
+msgid "Auto-update pages"
+msgstr ""
+
+msgid "OSD height"
+msgstr "Altura OSD"
+
+msgid "OSD width"
+msgstr "Anchura OSD"
+
+msgid "OSD horizontal align"
+msgstr ""
+
+msgid "OSD vertical align"
+msgstr ""
+
+msgid " Page number"
+msgstr " Número de página"
+
+#~ msgid "Displays teletext on the OSD"
+#~ msgstr "Visualiza el teletexto en el OSD"
+
+#~ msgid "Teletext (OSD)"
+#~ msgstr "Teletexto (OSD)"
diff --git a/po/fi_FI.po b/po/fi_FI.po
new file mode 100644
index 0000000..63578ec
--- /dev/null
+++ b/po/fi_FI.po
@@ -0,0 +1,88 @@
+# VDR plugin language source file.
+# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de>
+# This file is distributed under the same license as the VDR package.
+# Hannu Savolainen <hannu@opensound.com>, 2002
+# Jaakko Hyvätti <jaakko@hyvatti.iki.fi>, 2002
+# Niko Tarnanen <niko.tarnanen@hut.fi>, 2003
+# Rolf Ahrenberg <rahrenbe@cc.hut.fi>, 2003
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: VDR 1.5.7\n"
+"Report-Msgid-Bugs-To: <nobody@nowhere.org>\n"
+"POT-Creation-Date: 2008-07-25 17:26+0200\n"
+"PO-Revision-Date: 2008-05-04 15:33+0200\n"
+"Last-Translator: Rolf Ahrenberg <rahrenbe@cc.hut.fi>\n"
+"Language-Team: <vdr@linuxtv.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "*** Invalid Channel ***"
+msgstr ""
+
+msgid "Channel (press OK): "
+msgstr "Kanava (paina OK):"
+
+msgid "Page"
+msgstr "Sivua"
+
+msgid "not found"
+msgstr "ei löydy"
+
+msgid "Red key"
+msgstr "Punainen näppäin"
+
+msgid "Green key"
+msgstr "Vihreä näppäin"
+
+msgid "Yellow key"
+msgstr "Keltainen näppäin"
+
+msgid "Blue key"
+msgstr "Sininen näppäin"
+
+msgid "Zoom"
+msgstr "Suurenna"
+
+msgid "Half page"
+msgstr "Puolikas sivu"
+
+msgid "Change channel"
+msgstr "Vaihda kanavaa"
+
+msgid "Switch background"
+msgstr "Vaihda tausta"
+
+msgid "Jump to..."
+msgstr "Siirry sivulle..."
+
+msgid "Background transparency"
+msgstr "Taustan läpinäkyvyys"
+
+msgid "Show clock"
+msgstr "Näytä kello"
+
+msgid "Auto-update pages"
+msgstr "Automaattinen sivupäivitys"
+
+msgid "OSD height"
+msgstr "Korkeus"
+
+msgid "OSD width"
+msgstr "Leveys"
+
+msgid "OSD horizontal align"
+msgstr "Pystykeskitys"
+
+msgid "OSD vertical align"
+msgstr "Vaakakeskitys"
+
+msgid " Page number"
+msgstr " Sivunumero"
+
+#~ msgid "Displays teletext on the OSD"
+#~ msgstr "Teksti-TV (OSD)"
+
+#~ msgid "Teletext (OSD)"
+#~ msgstr "Teksti-TV"
diff --git a/po/fr_FR.po b/po/fr_FR.po
new file mode 100644
index 0000000..7637599
--- /dev/null
+++ b/po/fr_FR.po
@@ -0,0 +1,85 @@
+# VDR plugin language source file.
+# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de>
+# This file is distributed under the same license as the VDR package.
+# Jean-Claude Repetto <jc@repetto.org>, 2001
+# Olivier Jacques <jacquesolivier@hotmail.com>, 2003
+# Gregoire Favre <greg@magma.unil.ch>, 2003
+# Nicolas Huillard <nhuillard@e-dition.fr>, 2005
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: VDR 1.5.7\n"
+"Report-Msgid-Bugs-To: <nobody@nowhere.org>\n"
+"POT-Creation-Date: 2008-07-25 17:26+0200\n"
+"PO-Revision-Date: 2008-05-04 15:33+0200\n"
+"Last-Translator: Nicolas Huillard <nhuillard@e-dition.fr>\n"
+"Language-Team: <vdr@linuxtv.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "*** Invalid Channel ***"
+msgstr ""
+
+msgid "Channel (press OK): "
+msgstr "Chaine (Appuyer sur OK): "
+
+msgid "Page"
+msgstr "Page"
+
+msgid "not found"
+msgstr "pas trouvé"
+
+msgid "Red key"
+msgstr "Touche rouge"
+
+msgid "Green key"
+msgstr "Touche verte"
+
+msgid "Yellow key"
+msgstr "Touche jaune"
+
+msgid "Blue key"
+msgstr "Touche bleue"
+
+msgid "Zoom"
+msgstr "Zoom"
+
+msgid "Half page"
+msgstr "Demi-Page"
+
+msgid "Change channel"
+msgstr "Changer la chaîne"
+
+msgid "Switch background"
+msgstr "Change le fond d'écran"
+
+msgid "Jump to..."
+msgstr "Aller à..."
+
+msgid "Background transparency"
+msgstr "Fond transparent"
+
+msgid "Show clock"
+msgstr "Afficher l'heure"
+
+msgid "Auto-update pages"
+msgstr "Mise a jour des pages"
+
+msgid "OSD height"
+msgstr "OSD Hauteur"
+
+msgid "OSD width"
+msgstr "OSD Largeur"
+
+msgid "OSD horizontal align"
+msgstr ""
+
+msgid "OSD vertical align"
+msgstr ""
+
+msgid " Page number"
+msgstr " Nombre de pages"
+
+#~ msgid "Teletext (OSD)"
+#~ msgstr "Teletext (OSD)"
diff --git a/po/it_IT.po b/po/it_IT.po
new file mode 100644
index 0000000..5a34956
--- /dev/null
+++ b/po/it_IT.po
@@ -0,0 +1,84 @@
+# VDR plugin language source file.
+# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de>
+# This file is distributed under the same license as the VDR package.
+# Alberto Carraro <bertocar@tin.it>, 2001
+# Antonio Ospite <ospite@studenti.unina.it>, 2003
+# Sean Carlos <seanc@libero.it>, 2005
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: VDR 1.5.7\n"
+"Report-Msgid-Bugs-To: <nobody@nowhere.org>\n"
+"POT-Creation-Date: 2008-07-25 17:26+0200\n"
+"PO-Revision-Date: 2008-05-04 15:33+0200\n"
+"Last-Translator: Sean Carlos <seanc@libero.it>\n"
+"Language-Team: <vdr@linuxtv.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "*** Invalid Channel ***"
+msgstr ""
+
+msgid "Channel (press OK): "
+msgstr "Canale (premere OK)"
+
+msgid "Page"
+msgstr "Pagina"
+
+msgid "not found"
+msgstr "non trovata"
+
+msgid "Red key"
+msgstr "Tasto Rosso"
+
+msgid "Green key"
+msgstr "Tasto Verde"
+
+msgid "Yellow key"
+msgstr "Tasto Giallo"
+
+msgid "Blue key"
+msgstr "Tasto Blu"
+
+msgid "Zoom"
+msgstr "Zoom"
+
+msgid "Half page"
+msgstr "Mezza pagina"
+
+msgid "Change channel"
+msgstr "Cambio canale"
+
+msgid "Switch background"
+msgstr "Cambia sfondo"
+
+msgid "Jump to..."
+msgstr "Salta a..."
+
+msgid "Background transparency"
+msgstr "Trasparenza dello sfondo"
+
+msgid "Show clock"
+msgstr "Visualizza la hora"
+
+msgid "Auto-update pages"
+msgstr "Aggiornamento pagina automatico"
+
+msgid "OSD height"
+msgstr "Altezza OSD"
+
+msgid "OSD width"
+msgstr "Larghezza OSD"
+
+msgid "OSD horizontal align"
+msgstr ""
+
+msgid "OSD vertical align"
+msgstr ""
+
+msgid " Page number"
+msgstr " Numero di pagina"
+
+#~ msgid "Teletext (OSD)"
+#~ msgstr "Teletext (OSD)"
diff --git a/po/ru_RU.po b/po/ru_RU.po
new file mode 100644
index 0000000..a7ddcfa
--- /dev/null
+++ b/po/ru_RU.po
@@ -0,0 +1,85 @@
+# VDR plugin language source file.
+# Copyright (C) 2007 Klaus Schmidinger <kls@cadsoft.de>
+# This file is distributed under the same license as the VDR package.
+# Vyacheslav Dikonov <sdiconov@mail.ru>, 2004
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: VDR 1.5.7\n"
+"Report-Msgid-Bugs-To: <nobody@nowhere.org>\n"
+"POT-Creation-Date: 2008-07-25 17:26+0200\n"
+"PO-Revision-Date: 2008-05-04 15:33+0200\n"
+"Last-Translator: Vyacheslav Dikonov <sdiconov@mail.ru>\n"
+"Language-Team: <vdr@linuxtv.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-5\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "*** Invalid Channel ***"
+msgstr ""
+
+msgid "Channel (press OK): "
+msgstr "ºÐÝÐÛ (½ÐÖÜØâÕ ¾º)"
+
+msgid "Page"
+msgstr "ÁâàÐÝØæÐ"
+
+msgid "not found"
+msgstr "ÝÕ ÝÐÙÔÕÝÐ"
+
+msgid "Red key"
+msgstr "ºàÐáÝÐï ÚÝÞßÚÐ"
+
+msgid "Green key"
+msgstr "·ÕÛñÝÐï ÚÝÞßÚÐ"
+
+msgid "Yellow key"
+msgstr "¶ñÛâÐï ÚÝÞßÚÐ"
+
+msgid "Blue key"
+msgstr "ÁØÝïï ÚÝÞßÚÐ"
+
+msgid "Zoom"
+msgstr "ãÒÕÛØçØâì"
+
+msgid "Half page"
+msgstr "ßÞÛ-áâàÐÝØæë"
+
+msgid "Change channel"
+msgstr "ßÕàÕÚÛîçØâì ÚÐÝÐÛ"
+
+msgid "Switch background"
+msgstr "ÝÕßàÞ×àÐçÝëÙ äÞÝ"
+
+msgid "Jump to..."
+msgstr "ßÕàÕÙâØ Ú..."
+
+msgid "Background transparency"
+msgstr "ÁâÕßÕÝì ßàÞ×àÐçÝÞáâØ äÞÝÐ"
+
+msgid "Show clock"
+msgstr "¿ÞÚÐ×ëÒÐâì çÐáë"
+
+msgid "Auto-update pages"
+msgstr "°ÒâÞÞÑÝÞÒÛÕÝØÕ áâàÐÝØæ"
+
+msgid "OSD height"
+msgstr "²ëáÞâÐ ÜÕÝî"
+
+msgid "OSD width"
+msgstr "ÈØàØÝÐ ÜÕÝî"
+
+msgid "OSD horizontal align"
+msgstr ""
+
+msgid "OSD vertical align"
+msgstr ""
+
+msgid " Page number"
+msgstr " ½ÞÜÕà áâàÐÝØæë"
+
+#~ msgid "Displays teletext on the OSD"
+#~ msgstr "¿ÞÚÐ× âÕÛÕâÕÚáâÐ Ò ÜÕÝî"
+
+#~ msgid "Teletext (OSD)"
+#~ msgstr "ÂÕÛÕâÕÚáâ"
diff --git a/txtrecv.c b/txtrecv.c
index af76a3a..e7898e1 100644
--- a/txtrecv.c
+++ b/txtrecv.c
@@ -692,11 +692,14 @@ void cTxtStatus::ForceSuspending(bool onOrOff) {
*/
cTxtReceiver::cTxtReceiver(int TPid, tChannelID chan)
-#if VDRVERSNUM >= 10319
+#if VDRVERSNUM >= 10500
+ : cReceiver(chan, -1, TPid),
+#elif VDRVERSNUM >= 10319
: cReceiver(0, -1, TPid),
#else
: cReceiver(0, -1, 1, TPid),
#endif
+ cThread("osdteletext-receiver"),
chan(chan), TxtPage(0), buffer((188+60)*75), running(false)
{
Storage::instance()->prepareDirectory(chan);