[mousetrap/gnome3-wip: 167/240] Removing unnecessary i18n import and add debug to config.
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 167/240] Removing unnecessary i18n import and add debug to config.
- Date: Mon, 8 Sep 2014 15:26:36 +0000 (UTC)
commit 28223907b2ebbd4902c649171f1ec502d69d8f5e
Author: Stoney Jackson <dr stoney gmail com>
Date: Wed Jun 25 22:39:11 2014 -0400
Removing unnecessary i18n import and add debug to config.
src/mousetrap/config.py | 1 -
src/mousetrap/i18n.py | 4 ++++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/mousetrap/config.py b/src/mousetrap/config.py
index fcf9445..2ecb76f 100644
--- a/src/mousetrap/config.py
+++ b/src/mousetrap/config.py
@@ -2,7 +2,6 @@ from yaml import safe_load
from os.path import dirname, expanduser, exists
from os import getcwd
from copy import deepcopy
-from mousetrap.i18n import _
class Config(dict):
diff --git a/src/mousetrap/i18n.py b/src/mousetrap/i18n.py
index 3eee58e..21faed9 100644
--- a/src/mousetrap/i18n.py
+++ b/src/mousetrap/i18n.py
@@ -2,7 +2,11 @@ import gettext
import locale
import os
+import logging
+LOGGER = logging.getLogger(__name__)
+
LOCALE_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "locale"))
+LOGGER.debug("LOCALE_DIR = %s", LOCALE_DIR)
translations = gettext.translation("mousetrap", localedir=LOCALE_DIR)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]