[ocrfeeder] Adding OCRFEEDER_DEFAULT_LOCALE and OCRFFEEDER_SPELLCHECKER_UI constants needed
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Adding OCRFEEDER_DEFAULT_LOCALE and OCRFFEEDER_SPELLCHECKER_UI constants needed
- Date: Fri, 17 Sep 2010 17:31:32 +0000 (UTC)
commit 890c09340cd13c680e2fd47e2327a619777c520c
Author: David Teyssiere Rubio <dteyssiere emergya es>
Date: Wed Sep 1 16:14:59 2010 +0200
Adding OCRFEEDER_DEFAULT_LOCALE and OCRFFEEDER_SPELLCHECKER_UI constants needed
util/constants.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/util/constants.py b/util/constants.py
index 29cd912..fb74769 100644
--- a/util/constants.py
+++ b/util/constants.py
@@ -20,6 +20,7 @@
import sys
import os
+import locale
OCRFEEDER_STUDIO_NAME = 'OCRFeeder'
OCRFEEDER_COMPACT_NAME = 'ocrfeeder'
@@ -60,6 +61,7 @@ if not os.path.exists(APP_DIR):
DEFAULT_LANGUAGES = os.environ.get('LANGUAGE', '').split(':')
DEFAULT_LANGUAGES += ['en_US', 'pt_PT']
LOCALE_DIR = os.path.join(sys.prefix, 'share', 'locale')
+OCRFEEDER_DEFAULT_LOCALE = locale.getdefaultlocale()[0]
# CUSTOM ICONS
DETECT_ICON = os.path.join(RESOURCES_DIR, 'icons', 'detect_icon.svg')
@@ -83,3 +85,6 @@ GHOSTSCRIPT_COMMAND = 'gs'
# DeskTop Publishing Point (for calculating print measures)
DTP = 72
+# location of glade spellchecker UI file
+
+OCRFEEDER_SPELLCHECKER_UI = os.path.join(RESOURCES_DIR, 'spell-checker.ui')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]