#! /bin/sh /usr/share/dpatch/dpatch-run ## 03_enelchi-0.7.2-locale.dpatch by Thomas Günther ## http://toms-cafe.de/vdr/download/enelchi-0.7.2-locale.diff ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Locales for Enigma skin (VDR >= 1.5.7, text2skin-1.1-cvs + locale patch ## DP: from http://toms-cafe.de/vdr/download/text2skin-1.1-cvs-locale.diff). @DPATCH@ Index: vdr-skins/enelchi-0.6.0.dfsg.1/enElchi.skin =================================================================== --- vdr-skins/enelchi-0.6.0.dfsg.1/enElchi.skin (Revision 6174) +++ vdr-skins/enelchi-0.6.0.dfsg.1/enElchi.skin (Arbeitskopie) @@ -11,6 +11,7 @@ Volume + Index: vdr-skins/enelchi-0.6.0.dfsg.1/Makefile =================================================================== --- vdr-skins/enelchi-0.6.0.dfsg.1/Makefile (Revision 0) +++ vdr-skins/enelchi-0.6.0.dfsg.1/Makefile (Revision 0) @@ -0,0 +1,71 @@ +# +# Makefile for a text2skin skin +# +# Copyright (C) 2008, Thomas Günther +# +# 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., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# $Id$ + +SKIN = $(basename $(wildcard *.skin)) +MAIL = $(shell sed -ne "s/.*Report-Msgid-Bugs-To: *<\(..*\)>.*/\1/p" po/*.po | head -n1) + +### The directory environment: + +DESTDIR ?= +PREFIX ?= /usr/local +CONFDIR = $(if $(subst /usr,,$(PREFIX)), $(PREFIX))/etc/vdr +SKINDIR = $(CONFDIR)/plugins/text2skin/$(SKIN) +LOCDIR = $(PREFIX)/share/locale + +### The main target: + +all: i18n + +### Internationalization (I18N): + +PODIR = po +LOCALEDIR = locale +I18Npo = $(notdir $(wildcard $(PODIR)/*.po)) +I18Npot = $(PODIR)/$(SKIN).pot + +$(I18Npot): $(SKIN).skin + cat $^ | sed -e "s/('/(\"/g;s/')/\")/g" | grep -o "trans([^)]*)" | \ + xgettext -C --no-wrap --no-location -k -ktrans \ + --msgid-bugs-address='<$(MAIL)>' -o $@ - + +%.po: $(I18Npot) + msgmerge -U --no-wrap --no-location --backup=none -q $@ $< + @touch $@ + +$(LOCALEDIR)/%/LC_MESSAGES/vdr-text2skin-$(SKIN).mo: $(PODIR)/%.po + @mkdir -p $(dir $@) + msgfmt -c -o $@ $< + +.PHONY: i18n +i18n: $(I18Npo:%.po=$(LOCALEDIR)/%/LC_MESSAGES/vdr-text2skin-$(SKIN).mo) + +install-i18n: i18n + @mkdir -p $(DESTDIR)$(LOCDIR) + @cp -r $(LOCALEDIR)/* $(DESTDIR)$(LOCDIR) + +### Targets: + +install: install-i18n + @mkdir -p $(DESTDIR)$(SKINDIR) + @cp -r * $(DESTDIR)$(SKINDIR) + +clean: + @-rm -rf $(LOCALEDIR) $(I18Npot) *~ Index: vdr-skins/enelchi-0.6.0.dfsg.1/po/fi_FI.po =================================================================== --- vdr-skins/enelchi-0.6.0.dfsg.1/po/fi_FI.po (Revision 0) +++ vdr-skins/enelchi-0.6.0.dfsg.1/po/fi_FI.po (Revision 0) @@ -0,0 +1,21 @@ +# Finnish translations for vdr-text2skin-enElchi skin. +# Copyright (C) 2008 Rolf Ahrenberg +# This file is distributed under the same license as the vdr-text2skin-enElchi skin. +# Rolf Ahrenberg , 2005. +# +# $Id$ +# +msgid "" +msgstr "" +"Project-Id-Version: vdr-text2skin-enElchi 0.6.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-02-03 21:00+0100\n" +"PO-Revision-Date: 2008-01-26 12:38+0100\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" + +msgid "Volume" +msgstr "Äänenvoimakkuus" Index: vdr-skins/enelchi-0.6.0.dfsg.1/po/de_DE.po =================================================================== --- vdr-skins/enelchi-0.6.0.dfsg.1/po/de_DE.po (Revision 0) +++ vdr-skins/enelchi-0.6.0.dfsg.1/po/de_DE.po (Revision 0) @@ -0,0 +1,21 @@ +# German translations for vdr-text2skin-enElchi skin. +# Copyright (C) 2008 Rolf Ahrenberg +# This file is distributed under the same license as the vdr-text2skin-enElchi skin. +# Rolf Ahrenberg , 2005. +# +# $Id$ +# +msgid "" +msgstr "" +"Project-Id-Version: vdr-text2skin-enElchi 0.6.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-02-03 21:00+0100\n" +"PO-Revision-Date: 2008-01-26 12:38+0100\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" + +msgid "Volume" +msgstr "Lautstärke"