mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
i18n
This commit is contained in:
parent
af0eaed28a
commit
b6d5b937b5
3 changed files with 4 additions and 4 deletions
|
|
@ -275,11 +275,11 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
|
|||
raise RuntimeError("Session not found")
|
||||
if self.get_puppet(session) == obj:
|
||||
# already puppeting this object
|
||||
self.msg(_("You are already puppeting this object.")
|
||||
self.msg(_("You are already puppeting this object."))
|
||||
return
|
||||
if not obj.access(self, "puppet"):
|
||||
# no access
|
||||
self.msg(_(f"You don't have permission to puppet '{obj.key}'.")
|
||||
self.msg(_(f"You don't have permission to puppet '{obj.key}'."))
|
||||
return
|
||||
if obj.account:
|
||||
# object already puppeted
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ class IRCBot(Bot):
|
|||
if hasattr(self, "_ping_callers") and self._ping_callers:
|
||||
chstr = f"{self.db.irc_channel} ({self.db.irc_network}:{self.db.irc_port})"
|
||||
for obj in self._ping_callers:
|
||||
obj.msg(_(f"IRC ping return from {chstr} took {kwargs['timing']}s.")
|
||||
obj.msg(_(f"IRC ping return from {chstr} took {kwargs['timing']}s."))
|
||||
self._ping_callers = []
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ class ObjectCreateForm(forms.ModelForm):
|
|||
required=False,
|
||||
widget=forms.TextInput(attrs={"size": "78"}),
|
||||
help_text="Most non-character objects don't need a cmdset"
|
||||
" and can leave this field blank.")
|
||||
" and can leave this field blank."
|
||||
)
|
||||
raw_id_fields = ("db_destination", "db_location", "db_home")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue