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