[accerciser] Fix translations after migration from intltool



commit 4103db21bcfd905009afc50acfb857aec00a1030
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date:   Fri May 17 11:13:28 2019 +0200

    Fix translations after migration from intltool
    
    @DATADIRNAME@ is specific to intltool. Use the autoconf variables
    instead.

 src/lib/accerciser/i18n.py.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/lib/accerciser/i18n.py.in b/src/lib/accerciser/i18n.py.in
index bc12284..eeda4b4 100644
--- a/src/lib/accerciser/i18n.py.in
+++ b/src/lib/accerciser/i18n.py.in
@@ -55,7 +55,7 @@ def bind(domain, locale_dir):
 # use the current system locale
 locale.setlocale(locale.LC_ALL, '')
 # build the path to where the main translation file lives
-LOCALE_DIR = os.path.join(sys.prefix, '@DATADIRNAME@', 'locale')
+LOCALE_DIR = "@localedir@".replace('${prefix}', '@prefix@')
 DOMAIN = '@GETTEXT_PACKAGE@'
 # build a default instance to the LSR domain and locale directory
 _ = bind(DOMAIN, LOCALE_DIR)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]