[pitivi] Separate trying to set locale and gettext domains
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Separate trying to set locale and gettext domains
- Date: Wed, 24 Oct 2012 14:29:44 +0000 (UTC)
commit 99133c01723ece2f7548263aeb9493a9b0961393
Author: Olivier Duchateau <duchateau olivier gmail com>
Date: Wed Oct 24 10:26:43 2012 -0400
Separate trying to set locale and gettext domains
locale.bindtextdomain and locale.textdomain don't exist on FreeBSD,
and the previous approach prevented the app from launching.
bin/pitivi.in | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/bin/pitivi.in b/bin/pitivi.in
index c5b530e..f5eb7dc 100644
--- a/bin/pitivi.in
+++ b/bin/pitivi.in
@@ -80,11 +80,13 @@ def _add_pitivi_path():
locale.setlocale(locale.LC_ALL, '')
locale.bindtextdomain('pitivi', localedir)
locale.textdomain('pitivi')
-
+ except:
+ print "Couldn't set locale."
+ try:
gettext.bindtextdomain('pitivi', localedir)
gettext.textdomain('pitivi')
except:
- print "Couldn't set locale !, reverting to C locale"
+ print "Couldn't set the gettext domain. Translations will not work."
if CONFIGURED_LD_LIBRARY_PATH or CONFIGURED_GST_PLUGIN_PATH:
_prepend_env_path("LD_LIBRARY_PATH", [CONFIGURED_LD_LIBRARY_PATH])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]