From 7d0c4736b9fa6b48598a5515583451ec3d5dd12c Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Sun, 1 Mar 2009 00:13:17 +0000 Subject: [PATCH] fix path in two places, do not try to work with nonexistant translations --- ac3lipsync/po/Makefile.am | 7 +++---- ac3lipsync/src/__init__.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ac3lipsync/po/Makefile.am b/ac3lipsync/po/Makefile.am index 5689920..19fb837 100644 --- a/ac3lipsync/po/Makefile.am +++ b/ac3lipsync/po/Makefile.am @@ -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 diff --git a/ac3lipsync/src/__init__.py b/ac3lipsync/src/__init__.py index 9e5f5b7..16e68de 100644 --- a/ac3lipsync/src/__init__.py +++ b/ac3lipsync/src/__init__.py @@ -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) -- 2.7.4