From 4e0e2fd598d2d155a55e58b024de5b58592bec0e Mon Sep 17 00:00:00 2001 From: Takao Fujiwara Date: Sun, 7 Sep 2008 15:54:20 +1000 Subject: Add localization support to avahi-ui and avahi-discover Closes #122 Signed-off-by: Ted Percival Signed-off-by: Lennart Poettering --- avahi-python/avahi-discover/avahi-discover.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'avahi-python/avahi-discover/avahi-discover.in') diff --git a/avahi-python/avahi-discover/avahi-discover.in b/avahi-python/avahi-discover/avahi-discover.in index be8c08b..0558424 100755 --- a/avahi-python/avahi-discover/avahi-discover.in +++ b/avahi-python/avahi-discover/avahi-discover.in @@ -22,8 +22,11 @@ import os, sys try: - import avahi, gtk, gobject, dbus, avahi.ServiceTypeDatabase + import avahi, gettext, gtk, gobject, dbus, avahi.ServiceTypeDatabase from avahi_discover.SimpleGladeApp import SimpleGladeApp + gtk.glade.bindtextdomain(@GETTEXT_PACKAGE@, @LOCALEDIR@) + gtk.glade.textdomain(@GETTEXT_PACKAGE@) + _ = gettext.gettext except ImportError, e: print "Sorry, to use this tool you need to install Avahi, pygtk and python-dbus.\n Error: %s" % e sys.exit(1) -- cgit