1 |
hd_brummy 12/11/02 19:14:44 |
2 |
|
3 |
Added: vdr-vcd-0.9_xgettext.diff |
4 |
Log: |
5 |
clean up; eapi=4; vdr-plugin-2.eclass; missing xgettext handling added, thanks to E.Seifert on bug 414247 |
6 |
|
7 |
(Portage version: 2.1.11.9/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-plugins/vdr-vcd/files/vdr-vcd-0.9_xgettext.diff |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-vcd/files/vdr-vcd-0.9_xgettext.diff?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-vcd/files/vdr-vcd-0.9_xgettext.diff?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: vdr-vcd-0.9_xgettext.diff |
16 |
=================================================================== |
17 |
https://bugs.gentoo.org/show_bug.cgi?id=414247 |
18 |
fixed missing xgettext |
19 |
Signed-of-by: Joerg Bornkessel <hd_brummy@g.o> ( 2012/11/02 ) |
20 |
diff -Naur vcd-0.9.old/Makefile vcd-0.9/Makefile |
21 |
--- vcd-0.9.old/Makefile 2008-01-16 16:29:39.000000000 +0100 |
22 |
+++ vcd-0.9/Makefile 2012-10-30 14:06:02.163762996 +0100 |
23 |
@@ -53,7 +53,7 @@ |
24 |
|
25 |
### The object files (add further files here): |
26 |
|
27 |
-OBJS = $(PLUGIN).o functions.o i18n.o menu.o player.o viewer.o setup.o menucontrol.o psd.o psdcontrol.o |
28 |
+OBJS = $(PLUGIN).o functions.o menu.o player.o viewer.o setup.o menucontrol.o psd.o psdcontrol.o |
29 |
|
30 |
### Implicit rules: |
31 |
|
32 |
@@ -69,9 +69,34 @@ |
33 |
|
34 |
-include $(DEPFILE) |
35 |
|
36 |
+### Internationalization (I18N): |
37 |
+ |
38 |
+PODIR = po |
39 |
+LOCALEDIR = $(VDRDIR)/locale |
40 |
+I18Npo = $(wildcard $(PODIR)/*.po) |
41 |
+I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) |
42 |
+I18Npot = $(PODIR)/$(PLUGIN).pot |
43 |
+ |
44 |
+%.mo: %.po |
45 |
+ msgfmt -c -o $@ $< |
46 |
+ |
47 |
+$(I18Npot): $(wildcard *.c) |
48 |
+ xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='<dev@××××××××××××.de>' -o $@ $^ |
49 |
+ |
50 |
+%.po: $(I18Npot) |
51 |
+ msgmerge -U --no-wrap --no-location --backup=none -q $@ $< |
52 |
+ @touch $@ |
53 |
+ |
54 |
+$(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo |
55 |
+ @mkdir -p $(dir $@) |
56 |
+ cp $< $@ |
57 |
+ |
58 |
+.PHONY: i18n |
59 |
+i18n: $(I18Nmsgs) |
60 |
+ |
61 |
### Targets: |
62 |
|
63 |
-all: libvdr-$(PLUGIN).so |
64 |
+all: libvdr-$(PLUGIN).so i18n |
65 |
|
66 |
libvdr-$(PLUGIN).so: $(OBJS) |
67 |
$(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ |
68 |
@@ -86,4 +111,5 @@ |
69 |
@echo Distribution package created as $(PACKAGE).tgz |
70 |
|
71 |
clean: |
72 |
+ @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot |
73 |
@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ |
74 |
diff -Naur vcd-0.9.old/menu.c vcd-0.9/menu.c |
75 |
--- vcd-0.9.old/menu.c 2008-01-20 17:59:46.000000000 +0100 |
76 |
+++ vcd-0.9/menu.c 2012-10-30 14:04:10.837681821 +0100 |
77 |
@@ -26,7 +26,7 @@ |
78 |
|
79 |
#include <vdr/interface.h> |
80 |
#include <vdr/status.h> |
81 |
-#include "i18n.h" |
82 |
+#include <vdr/i18n.h> |
83 |
#include "menu.h" |
84 |
#include "functions.h" |
85 |
#include "setup.h" |
86 |
diff -Naur vcd-0.9.old/menucontrol.c vcd-0.9/menucontrol.c |
87 |
--- vcd-0.9.old/menucontrol.c 2008-01-16 13:43:39.000000000 +0100 |
88 |
+++ vcd-0.9/menucontrol.c 2012-10-30 14:03:43.051660837 +0100 |
89 |
@@ -26,7 +26,7 @@ |
90 |
|
91 |
#include <vdr/interface.h> |
92 |
#include <vdr/status.h> |
93 |
-#include "i18n.h" |
94 |
+#include <vdr/i18n.h> |
95 |
#include "menu.h" |
96 |
#include "functions.h" |
97 |
#include "setup.h" |
98 |
diff -Naur vcd-0.9.old/po/de_DE.po vcd-0.9/po/de_DE.po |
99 |
--- vcd-0.9.old/po/de_DE.po 1970-01-01 01:00:00.000000000 +0100 |
100 |
+++ vcd-0.9/po/de_DE.po 2012-10-30 14:08:28.409871746 +0100 |
101 |
@@ -0,0 +1,62 @@ |
102 |
+# VDR plugin language source file. |
103 |
+# Copyright (C) 2007 Klaus Schmidinger <kls@××××.de> |
104 |
+# This file is distributed under the same license as the VDR package. |
105 |
+# Klaus Schmidinger <kls@××××.de>, 2000 |
106 |
+# |
107 |
+msgid "" |
108 |
+msgstr "" |
109 |
+"Project-Id-Version: VDR 1.7.27\n" |
110 |
+"Report-Msgid-Bugs-To: <dev@××××××××××××.de>\n" |
111 |
+"POT-Creation-Date: 2012-10-30 14:10+0200\n" |
112 |
+"PO-Revision-Date: 2012-10-30 14:10+0200\n" |
113 |
+"Last-Translator: Klaus Schmidinger <kls@××××.de>\n" |
114 |
+"Language-Team: <vdr@×××××××.org>\n" |
115 |
+"Language: \n" |
116 |
+"MIME-Version: 1.0\n" |
117 |
+"Content-Type: text/plain; charset=ISO-8859-15\n" |
118 |
+"Content-Transfer-Encoding: 8bit\n" |
119 |
+ |
120 |
+msgid "VideoCD" |
121 |
+msgstr "VideoCD" |
122 |
+ |
123 |
+msgid "No VideoCD detected" |
124 |
+msgstr "Keine VideoCD erkannt" |
125 |
+ |
126 |
+msgid "Eject" |
127 |
+msgstr "Auswerfen" |
128 |
+ |
129 |
+msgid "Key$Play" |
130 |
+msgstr "" |
131 |
+ |
132 |
+msgid "Tracks" |
133 |
+msgstr "Tracks" |
134 |
+ |
135 |
+msgid "SPI" |
136 |
+msgstr "SPI" |
137 |
+ |
138 |
+msgid "Jump: " |
139 |
+msgstr "" |
140 |
+ |
141 |
+msgid "VCD" |
142 |
+msgstr "VCD" |
143 |
+ |
144 |
+msgid "Setup.VCD$Drive speed" |
145 |
+msgstr "Laufwerkgeschwindigkeit" |
146 |
+ |
147 |
+msgid "Setup.VCD$Broken mode" |
148 |
+msgstr "Nicht standardkonform" |
149 |
+ |
150 |
+msgid "Setup.VCD$Hide main menu entry" |
151 |
+msgstr "Hauptmenüeintrag ausblenden" |
152 |
+ |
153 |
+msgid "Setup.VCD$Play tracks continuously" |
154 |
+msgstr "Tracks nacheinander abspielen" |
155 |
+ |
156 |
+msgid "Setup.VCD$Autostart replay" |
157 |
+msgstr "Wiedergabe automatisch starten" |
158 |
+ |
159 |
+msgid "Setup.VCD$Play sequence replay" |
160 |
+msgstr "Wiedergabe nach Sequenz" |
161 |
+ |
162 |
+msgid "No disc inserted" |
163 |
+msgstr "Keine CD eingelegt" |
164 |
diff -Naur vcd-0.9.old/po/it_IT.po vcd-0.9/po/it_IT.po |
165 |
--- vcd-0.9.old/po/it_IT.po 1970-01-01 01:00:00.000000000 +0100 |
166 |
+++ vcd-0.9/po/it_IT.po 2012-10-30 14:08:28.414871756 +0100 |
167 |
@@ -0,0 +1,64 @@ |
168 |
+# VDR plugin language source file. |
169 |
+# Copyright (C) 2007 Klaus Schmidinger <kls@××××.de> |
170 |
+# This file is distributed under the same license as the VDR package. |
171 |
+# Alberto Carraro <bertocar@×××.it>, 2001 |
172 |
+# Antonio Ospite <ospite@××××××××××××××.it>, 2003 |
173 |
+# Sean Carlos <seanc@××××××.it>, 2005 |
174 |
+# |
175 |
+msgid "" |
176 |
+msgstr "" |
177 |
+"Project-Id-Version: VDR 1.7.27\n" |
178 |
+"Report-Msgid-Bugs-To: <dev@××××××××××××.de>\n" |
179 |
+"POT-Creation-Date: 2012-10-30 14:10+0200\n" |
180 |
+"PO-Revision-Date: 2012-10-30 14:10+0200\n" |
181 |
+"Last-Translator: Sean Carlos <seanc@××××××.it>\n" |
182 |
+"Language-Team: <vdr@×××××××.org>\n" |
183 |
+"Language: \n" |
184 |
+"MIME-Version: 1.0\n" |
185 |
+"Content-Type: text/plain; charset=ISO-8859-15\n" |
186 |
+"Content-Transfer-Encoding: 8bit\n" |
187 |
+ |
188 |
+msgid "VideoCD" |
189 |
+msgstr "VideoCD" |
190 |
+ |
191 |
+msgid "No VideoCD detected" |
192 |
+msgstr "Nessun VideoCD trovato" |
193 |
+ |
194 |
+msgid "Eject" |
195 |
+msgstr "Eject" |
196 |
+ |
197 |
+msgid "Key$Play" |
198 |
+msgstr "" |
199 |
+ |
200 |
+msgid "Tracks" |
201 |
+msgstr "Tracce" |
202 |
+ |
203 |
+msgid "SPI" |
204 |
+msgstr "SPI" |
205 |
+ |
206 |
+msgid "Jump: " |
207 |
+msgstr "" |
208 |
+ |
209 |
+msgid "VCD" |
210 |
+msgstr "VCD" |
211 |
+ |
212 |
+msgid "Setup.VCD$Drive speed" |
213 |
+msgstr "Velocità lettore" |
214 |
+ |
215 |
+msgid "Setup.VCD$Broken mode" |
216 |
+msgstr "Mod. non standard" |
217 |
+ |
218 |
+msgid "Setup.VCD$Hide main menu entry" |
219 |
+msgstr "Nascondi voce nel menu principale" |
220 |
+ |
221 |
+msgid "Setup.VCD$Play tracks continuously" |
222 |
+msgstr "Riproduci tracce in modo continuo" |
223 |
+ |
224 |
+msgid "Setup.VCD$Autostart replay" |
225 |
+msgstr "Riproduzione automatica all'avvio" |
226 |
+ |
227 |
+msgid "Setup.VCD$Play sequence replay" |
228 |
+msgstr "Riproduci in sequenza" |
229 |
+ |
230 |
+msgid "No disc inserted" |
231 |
+msgstr "Nessun disco inserito" |
232 |
diff -Naur vcd-0.9.old/psd.c vcd-0.9/psd.c |
233 |
--- vcd-0.9.old/psd.c 2008-01-20 17:59:59.000000000 +0100 |
234 |
+++ vcd-0.9/psd.c 2012-10-30 14:02:55.840626223 +0100 |
235 |
@@ -21,7 +21,7 @@ |
236 |
*/ |
237 |
|
238 |
|
239 |
-#include "i18n.h" |
240 |
+#include <vdr/i18n.h> |
241 |
#include "psd.h" |
242 |
#include "psdcontrol.h" |
243 |
|
244 |
diff -Naur vcd-0.9.old/psdcontrol.c vcd-0.9/psdcontrol.c |
245 |
--- vcd-0.9.old/psdcontrol.c 2008-01-16 13:30:53.000000000 +0100 |
246 |
+++ vcd-0.9/psdcontrol.c 2012-10-30 14:02:42.015616358 +0100 |
247 |
@@ -27,7 +27,7 @@ |
248 |
|
249 |
#include <vdr/interface.h> |
250 |
#include <vdr/status.h> |
251 |
-#include "i18n.h" |
252 |
+#include <vdr/i18n.h> |
253 |
#include "functions.h" |
254 |
#include "setup.h" |
255 |
#include "psdcontrol.h" |
256 |
diff -Naur vcd-0.9.old/setup.c vcd-0.9/setup.c |
257 |
--- vcd-0.9.old/setup.c 2008-01-15 16:27:44.000000000 +0100 |
258 |
+++ vcd-0.9/setup.c 2012-10-30 14:02:26.782605650 +0100 |
259 |
@@ -22,7 +22,7 @@ |
260 |
|
261 |
#include <vdr/menuitems.h> |
262 |
#include "setup.h" |
263 |
-#include "i18n.h" |
264 |
+#include <vdr/i18n.h> |
265 |
|
266 |
cVcdSetupData VcdSetupData; |
267 |
|
268 |
diff -Naur vcd-0.9.old/vcd.c vcd-0.9/vcd.c |
269 |
--- vcd-0.9.old/vcd.c 2008-01-16 13:33:17.000000000 +0100 |
270 |
+++ vcd-0.9/vcd.c 2012-10-30 14:01:52.628580657 +0100 |
271 |
@@ -25,7 +25,7 @@ |
272 |
#include <vdr/interface.h> |
273 |
#include <vdr/plugin.h> |
274 |
#include "functions.h" |
275 |
-#include "i18n.h" |
276 |
+#include <vdr/i18n.h> |
277 |
#include "menu.h" |
278 |
#include "menucontrol.h" |
279 |
#include "psdcontrol.h" |
280 |
@@ -100,7 +100,6 @@ |
281 |
|
282 |
bool cPluginVcd::Start(void) |
283 |
{ |
284 |
- RegisterI18n(Phrases); |
285 |
if (option_vcd) |
286 |
vcd = new cVcd(option_vcd); |
287 |
else |