Ticket #122: avahi-xx-g11n-i18n-ui-head.3.diff
| File avahi-xx-g11n-i18n-ui-head.3.diff, 3.8 KB (added by fujiwara, 3 years ago) |
|---|
-
avahi/avahi-python/avahi-discover/Makefile.am
old new 22 22 EXTRA_DIST = \ 23 23 __init__.py \ 24 24 SimpleGladeApp.py \ 25 avahi-discover. in\25 avahi-discover.py \ 26 26 avahi-discover.desktop.in.in 27 27 28 28 if HAVE_PYTHON … … 56 56 avahi-discover.desktop.in: avahi-discover.desktop.in.in 57 57 sed -e 's,@bindir\@,$(bindir),g' $< > $@ 58 58 59 avahi-discover: avahi-discover. in59 avahi-discover: avahi-discover.py 60 60 sed -e 's,@PYTHON\@,$(PYTHON),g' \ 61 61 -e 's,@GETTEXT_PACKAGE\@,"$(GETTEXT_PACKAGE)",g' \ 62 -e 's,@LOCALEDIR\@,"$( datadir)/locale",g' \62 -e 's,@LOCALEDIR\@,"$(avahilocaledir)",g' \ 63 63 -e 's,@interfacesdir\@,$(interfacesdir),g' $< > $@ 64 64 chmod +x $@ 65 65 -
avahi/avahi-python/avahi-discover/avahi-discover.
old new 24 24 try: 25 25 import avahi, gettext, gtk, gobject, dbus, avahi.ServiceTypeDatabase 26 26 from avahi_discover.SimpleGladeApp import SimpleGladeApp 27 gettext.bindtextdomain(@GETTEXT_PACKAGE@, @LOCALEDIR@) 28 gettext.textdomain(@GETTEXT_PACKAGE@) 27 29 gtk.glade.bindtextdomain(@GETTEXT_PACKAGE@, @LOCALEDIR@) 28 30 gtk.glade.textdomain(@GETTEXT_PACKAGE@) 29 31 _ = gettext.gettext … … 68 70 if iter is not None: 69 71 (name,interface,protocol,stype,domain) = self.treemodel.get(iter,1,2,3,4,5) 70 72 if stype == None: 71 self.info_label.set_markup( "<i>No service currently selected.</i>")73 self.info_label.set_markup(_("<i>No service currently selected.</i>")) 72 74 return 73 75 #Asynchronous resolving 74 76 self.server.ResolveService( int(interface), int(protocol), name, stype, domain, avahi.PROTO_UNSPEC, dbus.UInt32(0), reply_handler=self.service_resolved, error_handler=self.print_error) … … 216 218 txts = "" 217 219 txtd = self.pair_to_dict(txt) 218 220 for k,v in txtd.items(): 219 txts+="<b> TXT<i>%s</i></b> = %s\n" % (k,v)221 txts+="<b>" + _("TXT") + " <i>%s</i></b> = %s\n" % (k,v) 220 222 else: 221 txts = "<b> TXT Data:</b> <i>empty</i>"223 txts = "<b>" + _("TXT Data:") + "</b> <i>" + _("empty") + </i>" 222 224 223 infos = "<b>Service Type:</b> %s\n<b>Service Name:</b> %s\n<b>Domain Name:</b> %s\n<b>Interface:</b> %s %s\n<b>Address:</b> %s/%s:%i\n%s" % (stype, name, domain, self.siocgifname(interface), self.protoname(protocol), host, address, port, txts.strip()) 225 infos = "<b>" + _("Service Type:") + "</b> %s\n" 226 infos += "<b>" + _("Service Name:") + "</b> %s\n" 227 infos += "<b>" + _("Domain Name:") + "</b> %s\n" 228 infos += "<b>" + _("Interface:") + "</b> %s %s\n" 229 infos += "<b>" + _("Address:") + "</b> %s/%s:%i\n%s" 230 infos = infos % (stype, name, domain, self.siocgifname(interface), self.protoname(protocol), host, address, port, txts.strip()) 224 231 self.info_label.set_markup(infos) 225 232 226 233 def insert_row(self, model,parent, -
avahi/po/POTFILES.in
old new 2 2 avahi-common/error.c 3 3 avahi-discover-standalone/avahi-discover.glade 4 4 avahi-python/avahi-discover/avahi-discover.desktop.in.in 5 avahi-python/avahi-discover/avahi-discover.py 5 6 avahi-ui/avahi-ui.c 6 7 avahi-ui/bssh.c 7 8 avahi-ui/bssh.desktop.in.in -
avahi/po/POTFILES.skip
old new 1 avahi-discover-standalone/avahi-discover.glade2 1 avahi-ui/bssh.desktop.in 3 2 avahi-ui/bvnc.desktop.in 4 3 tests/c-plus-plus-test-gen.py
