#
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)
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
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"
return t
localeInit()
-language.addCallback(localeInit)
\ No newline at end of file
+language.addCallback(localeInit)