'|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
'|configsdir=$(configsdir)|' \
'|bindir=$(bindir)|' \
- '|datadir=$(datadir)|'
+ '|datadir=$(datadir)|' \
+ '|localedir=$(localedir)|'
SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
# Import all constants from the pakfire module.
from pakfire.constants import *
+PACKAGE_NAME = "@PACKAGE_NAME@"
+
CONFIGSDIR = "@configsdir@"
DATADIR = "@datadir@"
+LOCALEDIR = "@localedir@"
PAKFIRE_DIR = "/pakfire"
PACKAGES_DIR = os.path.join(PAKFIRE_DIR, "packages")
)
# Load translations.
- tornado.locale.load_gettext_translations(
- os.path.join(BASEDIR, "translations"), "pakfire")
+ tornado.locale.load_gettext_translations(LOCALEDIR, PACKAGE_NAME)
tornado.web.Application.__init__(self, **settings)
)
# Load translations.
- tornado.locale.load_gettext_translations(
- os.path.join(BASEDIR, "translations"), "pakfire")
+ tornado.locale.load_gettext_translations(LOCALEDIR, PACKAGE_NAME)
tornado.web.Application.__init__(self, **settings)