mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Aka: add a missing '.' in the error message
This commit is contained in:
parent
b76cff73a8
commit
c492cb40e1
@ -32,7 +32,7 @@ msgstr "Tämä Aka on jo olemassa."
|
||||
|
||||
#: plugin.py:169 plugin.py:181 plugin.py:195 plugin.py:291 plugin.py:308
|
||||
#: plugin.py:325
|
||||
msgid "This Aka does not exist"
|
||||
msgid "This Aka does not exist."
|
||||
msgstr "Tätä Akaa ei ole olemassa."
|
||||
|
||||
#: plugin.py:293
|
||||
|
@ -165,7 +165,7 @@ if sqlite3:
|
||||
SET locked=1, locked_at=?, locked_by=? WHERE name = ?""",
|
||||
(datetime.datetime.now(), by, name))
|
||||
if cursor.rowcount == 0:
|
||||
raise AkaError(_('This Aka does not exist'))
|
||||
raise AkaError(_('This Aka does not exist.'))
|
||||
db.commit()
|
||||
|
||||
def unlock_aka(self, channel, name, by):
|
||||
@ -177,7 +177,7 @@ if sqlite3:
|
||||
cursor.execute("""UPDATE aliases SET locked=0, locked_at=?
|
||||
WHERE name = ?""", (datetime.datetime.now(), name))
|
||||
if cursor.rowcount == 0:
|
||||
raise AkaError(_('This Aka does not exist'))
|
||||
raise AkaError(_('This Aka does not exist.'))
|
||||
db.commit()
|
||||
|
||||
def get_aka_lock(self, channel, name):
|
||||
@ -191,7 +191,7 @@ if sqlite3:
|
||||
if r:
|
||||
return (bool(r[0]), r[1], r[2])
|
||||
else:
|
||||
raise AkaError(_('This Aka does not exist'))
|
||||
raise AkaError(_('This Aka does not exist.'))
|
||||
available_db.update({'sqlite3': SQLiteAkaDB})
|
||||
elif sqlalchemy:
|
||||
Base = sqlalchemy.ext.declarative.declarative_base()
|
||||
@ -287,7 +287,7 @@ elif sqlalchemy:
|
||||
aka = db.query(SQLAlchemyAlias) \
|
||||
.filter(SQLAlchemyAlias.name == name).one()
|
||||
except sqlalchemy.orm.exc.NoResultFound:
|
||||
raise AkaError(_('This Aka does not exist'))
|
||||
raise AkaError(_('This Aka does not exist.'))
|
||||
if aka.locked:
|
||||
raise AkaError(_('This Aka is already locked.'))
|
||||
aka.locked = True
|
||||
@ -304,7 +304,7 @@ elif sqlalchemy:
|
||||
aka = db.query(SQLAlchemyAlias) \
|
||||
.filter(SQLAlchemyAlias.name == name).one()
|
||||
except sqlalchemy.orm.exc.NoResultFound:
|
||||
raise AkaError(_('This Aka does not exist'))
|
||||
raise AkaError(_('This Aka does not exist.'))
|
||||
if not aka.locked:
|
||||
raise AkaError(_('This Aka is already unlocked.'))
|
||||
aka.locked = False
|
||||
@ -321,7 +321,7 @@ elif sqlalchemy:
|
||||
.query(SQLAlchemyAlias.locked, SQLAlchemyAlias.locked_by, SQLAlchemyAlias.locked_at)\
|
||||
.filter(SQLAlchemyAlias.name == name).one()
|
||||
except sqlalchemy.orm.exc.NoResultFound:
|
||||
raise AkaError(_('This Aka does not exist'))
|
||||
raise AkaError(_('This Aka does not exist.'))
|
||||
|
||||
available_db.update({'sqlalchemy': SqlAlchemyAkaDB})
|
||||
|
||||
@ -683,7 +683,7 @@ class Aka(callbacks.Plugin):
|
||||
if command:
|
||||
irc.reply(command)
|
||||
else:
|
||||
irc.error(_('This Aka does not exist'))
|
||||
irc.error(_('This Aka does not exist.'))
|
||||
show = wrap(show, [getopts({'channel': 'somethingWithoutSpaces'}),
|
||||
'text'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user