Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 20f6549a29698b64971d1c7d1fe11fcb > files > 1

vdr-plugin-skinreel-0.0.1-6mdv2008.0.src.rpm


This is a semi-automatically created i18n adaptation patch and may contain
errors (such as missing translations). This should only be used as a
temporary measure until the upstream plugin maintainer fixes the plugin
properly according to the instructions in i18n-to-gettext.pl.

Created for Mandriva Linux packaging by Anssi Hannula <anssi@mandriva.org>.


Index: skinreel-0.0.1/Makefile
===================================================================
--- skinreel-0.0.1/Makefile
+++ skinreel-0.0.1/Makefile	2008-04-25 00:00:23.000000000 +0300
@@ -46,7 +46,7 @@
 
 ### The object files (add further files here):
 
-OBJS = $(PLUGIN).o i18n.o
+OBJS = $(PLUGIN).o 
 
 ### Implicit rules:
 
@@ -62,9 +62,34 @@
 
 -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 *.[ch] *.[ch]xx *.cc *.[ch]pp *.hh)
+	xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='<http://qa.mandriva.com/>' -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 $@
@@ -79,4 +104,5 @@
 	@echo Distribution package created as $(PACKAGE).tgz
 
 clean:
+	@-rm -f $(PODIR)/*.mo $(PODIR)/*.pot
 	@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~
Index: skinreel-0.0.1/i18n.c
===================================================================
--- skinreel-0.0.1/i18n.c
+++ skinreel-0.0.1/i18n.c	2008-04-25 00:00:23.000000000 +0300
@@ -1,112 +0,0 @@
- /**************************************************************************
- *   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.             *
- ***************************************************************************/
-
-#include "i18n.h"
-
-const tI18nPhrase Phrases[] = {
-      {
-        "picture settings", // English
-        "Bildeinstellungen", // Deutsch
-        "", // Slovenski
-        "", // Italiano
-        "", // Nederlands
-        "", // Português
-        "", // Français
-        "", // Norsk
-        "", // Suomi
-        "", // Polski
-        "", // Español
-        "", // Ellinika
-        "", // Svenska
-        "", // Romaneste
-        "", // Magyar
-        "", // Catala
-        "", // Russian
-        "", // Croatian
-    },
-    {
-        "contrast", // English
-        "Kontrast", // Deutsch
-        "", // Slovenski
-        "", // Italiano
-        "", // Nederlands
-        "", // Português
-        "", // Français
-        "", // Norsk
-        "", // Suomi
-        "", // Polski
-        "", // Español
-        "", // Ellinika
-        "", // Svenska
-        "", // Romaneste
-        "", // Magyar
-        "", // Catala
-        "", // Russian
-        "", // Croatian
-    },
-    {
-        "colour", // English
-        "Farbe", // Deutsch
-        "", // Slovenski
-        "", // Italiano
-        "", // Nederlands
-        "", // Português
-        "", // Français
-        "", // Norsk
-        "", // Suomi
-        "", // Polski
-        "", // Español
-        "", // Ellinika
-        "", // Svenska
-        "", // Romaneste
-        "", // Magyar
-        "", // Catala
-        "", // Russian
-        "", // Croatian
-    },
-    {
-        "brightness", // English
-        "Helligkeit", // Deutsch
-        "", // Slovenski
-        "", // Italiano
-        "", // Nederlands
-        "", // Português
-        "", // Français
-        "", // Norsk
-        "", // Suomi
-        "", // Polski
-        "", // Español
-        "", // Ellinika
-        "", // Svenska
-        "", // Romaneste
-        "", // Magyar
-        "", // Catala
-        "", // Russian
-        "", // Croatian
-    },
-    {
-        "sharpness", // English
-        "Schärfe", // Deutsch
-        "", // Slovenski
-        "", // Italiano
-        "", // Nederlands
-        "", // Português
-        "", // Français
-        "", // Norsk
-        "", // Suomi
-        "", // Polski
-        "", // Español
-        "", // Ellinika
-        "", // Svenska
-        "", // Romaneste
-        "", // Magyar
-        "", // Catala
-        "", // Russian
-        "", // Croatian
-    },
-{ NULL }
-}; 
Index: skinreel-0.0.1/i18n.h
===================================================================
--- skinreel-0.0.1/i18n.h
+++ skinreel-0.0.1/i18n.h	2008-04-25 00:00:23.000000000 +0300
@@ -1,15 +0,0 @@
-/**************************************************************************
- *   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.             *
- ***************************************************************************/
-
-#ifndef REELBOX_I18N_H
-#define REELBOX_I18N_H
-
-#include <vdr/i18n.h>
-
-extern const tI18nPhrase Phrases[];
-
-#endif //  REELBOX_I18N
Index: skinreel-0.0.1/po/skinreel.pot
===================================================================
--- skinreel-0.0.1/po/skinreel.pot
+++ skinreel-0.0.1/po/skinreel.pot	2008-04-25 00:00:23.000000000 +0300
@@ -0,0 +1,29 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: http://qa.mandriva.com/\n"
+"POT-Creation-Date: 2008-04-25 00:00+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: skinreel.c:705
+msgid "Mute"
+msgstr ""
+
+#: skinreel.c:719
+msgid "Volume "
+msgstr ""
+
+#: skinreel.c:1182
+msgid "ReelBox VDR"
+msgstr ""