misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
13d68c7c24
commit
6645c80db3
@ -14,6 +14,9 @@ class Voice:
|
||||
translation.install()
|
||||
self._ = translation.gettext
|
||||
|
||||
def custom(self, s):
|
||||
return s
|
||||
|
||||
def default(self):
|
||||
return self._('ZzzzZZzzzzZzzz')
|
||||
|
||||
@ -68,8 +71,8 @@ class Voice:
|
||||
|
||||
def on_new_peer(self, peer):
|
||||
return random.choice([
|
||||
self._('Hello {name}! Nice to meet you. {name}').format(name=peer.name()),
|
||||
self._('Unit {name} is nearby! {name}').format(name=peer.name())])
|
||||
self._('Hello {name}! Nice to meet you.').format(name=peer.name()),
|
||||
self._('Unit {name} is nearby!').format(name=peer.name())])
|
||||
|
||||
def on_lost_peer(self, peer):
|
||||
return random.choice([
|
||||
|
Loading…
x
Reference in New Issue
Block a user