def open_cheatsheat(self): from virtaal.support import openmailto # FIXME: The URL below is just a temporary solution openmailto.open( _('http://translate.sourceforge.net/wiki/virtaal/cheatsheet'))
def try_open_link(self, name): if name not in self.LINKS: return False from virtaal.support import openmailto openmailto.open(self.LINKS[name]) return True
def try_open_link(self, name): if name not in self.LINKS: return False openmailto.open(self.LINKS[name]) return True
def _on_lookup(self, menuitem, url): from virtaal.support.openmailto import open open(url)
def open_cheatsheat(self): # FIXME: The URL below is just a temporary solution openmailto.open('http://translate.sourceforge.net/wiki/virtaal/cheatsheet')
def on_url(self, dialog, uri, data): if data == "mail": openmailto.mailto(uri) elif data == "url": openmailto.open(uri)