~k-nielsen81/poproofread/master

« back to all changes in this revision

Viewing changes to poproofread/i18n.py

  • Committer: Kenneth Nielsen
  • Date: 2016-03-30 20:43:08 UTC
  • Revision ID: git-v1:e178ba9e51c52cf5c7fb9c279228a3d741b7d221
Initial port to gi.repository, still a few conflicts missing CURRENTLY BROKEN

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import os
24
24
import locale
25
25
import gettext
26
 
import gtk.glade
 
26
import Gtk.glade
27
27
 
28
28
DOMAIN = 'poproofread'
29
29
LOCALEDIR = '%s/po/' % os.path.dirname(__file__)
33
33
TRANSLATION = gettext.translation(DOMAIN, LOCALEDIR, fallback=True)
34
34
TRANSLATION.install(unicode=True)
35
35
 
36
 
gtk.glade.textdomain(DOMAIN)
37
 
gtk.glade.bindtextdomain(DOMAIN, LOCALEDIR)
 
36
Gtk.glade.textdomain(DOMAIN)
 
37
Gtk.glade.bindtextdomain(DOMAIN, LOCALEDIR)