mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
i18n: use single strings for connection/uri
Create single strings for connection/uri hints & tooltips, so it is easier to translate them, and there are not glued like puzzles. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
parent
6a39f2bb8b
commit
15a2354559
@ -578,16 +578,16 @@ class vmmManager(vmmGObjectUI):
|
||||
def _build_conn_hint(self, conn):
|
||||
hint = conn.get_uri()
|
||||
if conn.is_disconnected():
|
||||
hint += " (%s)" % _("Double click to connect")
|
||||
hint = _("%(uri)s (Double click to connect)") % {"uri": conn.get_uri()}
|
||||
return hint
|
||||
|
||||
def _build_conn_markup(self, conn, name):
|
||||
name = xmlutil.xml_escape(name)
|
||||
text = name
|
||||
if conn.is_disconnected():
|
||||
text += " - " + _("Not Connected")
|
||||
text = _("%(connection)s - Not Connected") % {"connection": name}
|
||||
elif conn.is_connecting():
|
||||
text += " - " + _("Connecting...")
|
||||
text = _("%(connection)s - Connecting...") % {"connection": name}
|
||||
|
||||
markup = "<span size='smaller'>%s</span>" % text
|
||||
return markup
|
||||
|
Loading…
Reference in New Issue
Block a user