File: i18n.py

package info (click to toggle)
apertium-tolk 0.2-2.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 936 kB
  • ctags: 78
  • sloc: sh: 3,129; python: 250; makefile: 33
file content (14 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gettext
import gtk.glade
import prefix

APP='apertium-tolk'
DIR=prefix.localedir
 
gettext.bindtextdomain(APP, DIR)
gettext.textdomain(APP)
gtk.glade.bindtextdomain(APP, DIR)
gtk.glade.textdomain(APP)

_ = gettext.gettext # the i18n function :)