summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-08-06 23:35:39 +0200
committerGuillaume Seguin <guillaume@segu.in>2007-08-06 23:35:39 +0200
commit2f54bf7ee7208badaad3bb8de0feb646dfa603f3 (patch)
treef3eb7b6a31cf8e3ffbeeff87372f50adb920b1d8
parent8aa9cbc690302810aa70f06ead66ce23b47513ff (diff)
downloadgshaderedit-2f54bf7ee7208badaad3bb8de0feb646dfa603f3.tar.gz
gshaderedit-2f54bf7ee7208badaad3bb8de0feb646dfa603f3.tar.bz2
* Correctly set Glade locales path
-rwxr-xr-xgshaderedit.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/gshaderedit.in b/gshaderedit.in
index 6fb8b1e..c461366 100755
--- a/gshaderedit.in
+++ b/gshaderedit.in
@@ -34,10 +34,12 @@ from gShaderEdit.previewarea import previewArea
GETTEXT_DOMAIN = "gshaderedit"
DATADIR = "@prefix@/share"
+LOCALES_DIR = DATADIR + "/locale"
GLADE_FILE = DATADIR + "/gshaderedit/gshaderedit.glade"
DEFAULT_IMAGE = DATADIR + "/gshaderedit/chromaticity.png"
-gettext.install (GETTEXT_DOMAIN, DATADIR + "/locale", unicode = True)
+gettext.install (GETTEXT_DOMAIN, LOCALES_DIR, unicode = True)
+gtk.glade.bindtextdomain (GETTEXT_DOMAIN, LOCALES_DIR)
def autoconnect (ob):
'''Autoconnect every member from ob to its glade interface'''