add internationalization for typeclasses.models.py
This commit is contained in:
parent
6382727a6f
commit
1aa6ff3562
1 changed files with 2 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ from django.urls import reverse
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from django.utils.encoding import smart_str
|
from django.utils.encoding import smart_str
|
||||||
from django.utils.text import slugify
|
from django.utils.text import slugify
|
||||||
|
from django.utils.translation import gettext as _
|
||||||
|
|
||||||
import evennia
|
import evennia
|
||||||
from evennia.locks.lockhandler import LockHandler
|
from evennia.locks.lockhandler import LockHandler
|
||||||
|
|
@ -883,7 +884,7 @@ class TypedObject(SharedMemoryModel):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self.location == looker:
|
if self.location == looker:
|
||||||
return " (carried)"
|
return _(" (carried)")
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
def at_rename(self, oldname, newname):
|
def at_rename(self, oldname, newname):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue