[Pkg-privacy-commits] [tails-installer] 18/30: Drop support for po/locale directory.
anonym
anonym-tails-guest at moszumanska.debian.org
Fri Jun 9 16:23:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
anonym-tails-guest pushed a commit to branch tails/jessie
in repository tails-installer.
commit 7e14061eab0f21d9d8838b8533bee9cbf4f82df1
Author: intrigeri <intrigeri at boum.org>
Date: Wed May 24 10:35:18 2017 +0000
Drop support for po/locale directory.
Our build system doesn't support it anymore for a while, and this hack didn't
work for strings coming from Glade UI definitions anyway, which was confusing.
---
tails_installer/__init__.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/tails_installer/__init__.py b/tails_installer/__init__.py
index 8d6d348..33ce357 100644
--- a/tails_installer/__init__.py
+++ b/tails_installer/__init__.py
@@ -33,12 +33,8 @@ if os.path.exists('/usr/sbin') or os.path.exists('/usr/local/sbin'):
except KeyError, e:
os.environ['PATH'] = '/usr/local/sbin:/usr/sbin'
-if os.path.exists('po/locale'):
- translation = gettext.translation('tails-installer', 'po/locale', fallback=True)
-else:
- translation = gettext.translation('tails-installer', '/usr/share/locale',
- fallback=True)
-_ = translation.ugettext
+_ = gettext.translation('tails-installer', '/usr/share/locale',
+ fallback=True).ugettext
def utf8_gettext(string):
" Translate string, converting it to a UTF-8 encoded bytestring "
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list