[brubru] Load LOCALEDIR from configure (with defs.py). see #4770

This commit is contained in:
Yann Leboulanger 2009-02-11 10:46:07 +00:00
parent ef25dd10d7
commit ba9836af65
4 changed files with 6 additions and 4 deletions

View File

@ -176,6 +176,7 @@ AC_SUBST([PYTHON_INCLUDES])
AS_AC_EXPAND(DATADIR, "${datadir}")
AS_AC_EXPAND(LIBDIR, "${libdir}")
AS_AC_EXPAND(DOCDIR, "${docdir}")
AS_AC_EXPAND(LOCALEDIR, "${localedir}")
AC_SUBST(VERSION)
AC_SUBST(PACKAGE)

View File

@ -5,3 +5,5 @@ docdir = "@DOCDIR@"
datadir = "@DATADIR@"
version = "@VERSION@"
localedir = "@LOCALEDIR@"

View File

@ -25,6 +25,7 @@
docdir = '../'
datadir = '../'
localedir = '../po'
version = '0.12.1.2-svn'

View File

@ -24,12 +24,10 @@
import locale
import gettext
import os
import defs
APP = 'gajim'
if os.path.isdir('../po'):
DIR = '../po'
else:
DIR = '../../locale'
DIR = defs.localedir
# set '' so each part of the locale that should be modified is set
# according to the environment variables