mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 22:47:16 +02:00
Cleaned and updated the i18n strings for various server-core system. Removed i18n for all strings that are only visible on stdout or in logs. Still missing i18n on certain specific things such as model field help and attribute warnings. Updated Swedish translation to match.
This commit is contained in:
parent
80da420ee7
commit
4c849ec351
26 changed files with 918 additions and 1420 deletions
|
|
@ -9,6 +9,8 @@ from src.scripts.models import ScriptDB
|
|||
from src.utils import create
|
||||
from src.utils import logger
|
||||
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
class ScriptHandler(object):
|
||||
"""
|
||||
Implements the handler. This sits on each game object.
|
||||
|
|
@ -38,11 +40,8 @@ class ScriptHandler(object):
|
|||
repeats = script.repeats
|
||||
try: next_repeat = script.time_until_next_repeat()
|
||||
except: next_repeat = "?"
|
||||
string += "\n '%s' (%s/%s, %s repeats): %s" % (script.key,
|
||||
next_repeat,
|
||||
interval,
|
||||
repeats,
|
||||
script.desc)
|
||||
string += _("\n '%(key)s' (%(next_repeat)s/%(interval)s, %(repeats)s repeats): %(desc)s") % \
|
||||
{"key":script.key, "next_repeat":next_repeat, "interval":interval,"repeats":repeats,"desc":script.desc}
|
||||
return string.strip()
|
||||
|
||||
def add(self, scriptclass, key=None, autostart=True):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue