[accerciser/gnome-3-32] Fix translations after migration from intltool
- From: Samuel Thibault <sthibaul src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser/gnome-3-32] Fix translations after migration from intltool
- Date: Fri, 17 May 2019 09:21:27 +0000 (UTC)
commit c2c1ac83412ed71904c62a1b87a0f222c0f02609
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.
(cherry picked from commit 4103db21bcfd905009afc50acfb857aec00a1030)
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]