fix path in two places,
authorMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Sun, 1 Mar 2009 00:13:17 +0000 (00:13 +0000)
committerMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Sun, 1 Mar 2009 00:13:17 +0000 (00:13 +0000)
do not try to work with nonexistant translations

ac3lipsync/po/Makefile.am
ac3lipsync/src/__init__.py

index 5689920..19fb837 100644 (file)
@@ -6,14 +6,14 @@
 #
 
 DOMAIN=AC3LipSync
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
+installdir = /usr/lib/enigma2/python/Plugins/SystemPlugins/$(DOMAIN)
 #GETTEXT=./pygettext.py
 GETTEXT=xgettext
 
 #MSGFMT = ./msgfmt.py
 MSGFMT = msgfmt
 
-LANGS := de es fy it nl tr
+LANGS := de
 LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
 LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
 
@@ -28,12 +28,11 @@ merge:
                msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
        done
 
-
 # the TRANSLATORS: allows putting translation comments before the to-be-translated line.
 $(DOMAIN).pot:
        $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
 
-       ../../xml2po.py ../src/ >> $(DOMAIN).pot
+       #../../xml2po.py ../src/ >> $(DOMAIN).pot
 
        msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
        $(RM) $(DOMAIN).pot
index 9e5f5b7..16e68de 100644 (file)
@@ -3,7 +3,7 @@ from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_LANGUAGE
 import os,gettext
 
 PluginLanguageDomain = "AC3LipSync"
-PluginLanguagePath = "Extensions/AC3LipSync/locale"
+PluginLanguagePath = "SystemPlugins/AC3LipSync/locale"
 
 def localeInit():
     lang = language.getLanguage()[:2] # getLanguage returns e.g. "fi_FI" for "language_country"
@@ -19,4 +19,4 @@ def _(txt):
     return t
 
 localeInit()
-language.addCallback(localeInit)
\ No newline at end of file
+language.addCallback(localeInit)