source: projects/specs/trunk/g/gdm2setup/gdm2setup-0.5.3-gettext.patch @ 4019

Revision 4019, 665 bytes checked in by daisuke, 13 years ago (diff)

gdm2setup: new package

RevLine 
[4019]1diff -up gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py.i18n gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py
2--- gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py.i18n        2011-06-03 04:07:24.000000000 +0900
3+++ gdm2setup-0.5.3-lucid/gdm2/gdm2setup.py     2011-06-03 04:13:19.000000000 +0900
4@@ -23,6 +23,12 @@
5 
6 import gtk
7 import os
8+import gettext
9+import locale
10+
11+for module in (gettext, locale):
12+    module.bindtextdomain("gdm2setup", "/usr/share/locale")
13+    module.textdomain("gdm2setup")
14 
15 ###TODO: replace all gconf calls with python-gconf support after the access issue is resolved with it.
16 ### This is a temporary kludge that will be replaced as soon as the solution is available.
Note: See TracBrowser for help on using the repository browser.