[ANNOUNCE] VDR developer version 1.5.8

Message ID 46C86748.3030103@gmx.de
State New

Commit Message

Udo Richter Aug. 19, 2007, 3:52 p.m. UTC
  Klaus Schmidinger wrote:
> - When scanning the locale directory, VDR now explicitly looks for a file named
>   vdr.mo. Text files for plugins are now named "vdr-name.mo", when "name" is the
>   name of the plugin. The "newplugin" script has been changed accordingly, and
>   plugin authors should change their Makefiles, too.

Ouch, here we go again. Hopefully this is the last name change.

The attached patch handles this in a way that is compatible with 1.5.7 
and 1.5.8, and it should apply to most plugins that have been updated 
for 1.5.7 already, restoring i18n functionality for 1.5.8.




Index: Makefile
--- Makefile	(Revision 955)
+++ Makefile	(Arbeitskopie)
@@ -88,6 +88,10 @@ 
 I18Nmo    = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file))))
 I18Ndirs  = $(notdir $(foreach file, $(I18Npo), $(basename $(file))))
 I18Npot   = $(PODIR)/$(PLUGIN).pot
+I18Nvdrmo = vdr-$(PLUGIN).mo
+ifeq ($(strip $(APIVERSION)),1.5.7)
+  I18Nvdrmo = $(PLUGIN).mo
 %.mo: %.po
 	msgfmt -c -o $@ $<
@@ -102,7 +106,7 @@ 
 	@mkdir -p $(LOCALEDIR)
 	for i in $(I18Ndirs); do\
 	    mkdir -p $(LOCALEDIR)/$$i/LC_MESSAGES;\
-	    cp $(PODIR)/$$i.mo $(LOCALEDIR)/$$i/LC_MESSAGES/$(PLUGIN).mo;\
+	    cp $(PODIR)/$$i.mo $(LOCALEDIR)/$$i/LC_MESSAGES/$(I18Nvdrmo);\
 ### Targets: