Ticket #2001: about.patch

File about.patch, 1.4 KB (added by gymkaltu, 14 years ago)

patch to make these strings translatable and includable to POT

  • aboutdialog.py

    old new  
    5656
    5757        version = deluge.common.get_version()
    5858
    59         self.about.set_copyright(u'Copyright \u00A9 2007-2011 Deluge Team')
    60         self.about.set_comments(
     59        self.about.set_copyright(_(u'Copyright \u00A9 2007-2011 Deluge Team'))
     60        self.about.set_comments(_(
    6161            "A peer-to-peer file sharing program\nutilizing the BitTorrent "
    62             "protocol\n\n"
    63             "Client Version: %s\n" % version)
     62            "protocol\n\n")
     63            _("Client Version: %s\n") % version)
    6464        self.about.set_version(version)
    6565        self.about.set_authors([
    6666            "Current Developers:", "Andrew Resch", "Damien Churchill",
     
    285285        if client.connected():
    286286            if not client.is_classicmode():
    287287                self.about.set_comments(
    288                     self.about.get_comments() + "Server Version: %coreversion%\n")
     288                    self.about.get_comments() + _("Server Version: %coreversion%\n"))
    289289           
    290290            self.about.set_comments(
    291                 self.about.get_comments() + "Libtorrent Version: %ltversion%\n")
     291                self.about.get_comments() + _("Libtorrent Version: %ltversion%\n"))
    292292               
    293293            def on_lt_version(result):
    294294                c = self.about.get_comments()