From c492cb40e1481c541d51ff99356e1299fa8d71ef Mon Sep 17 00:00:00 2001 From: GLolol Date: Fri, 26 Dec 2014 16:21:20 -0500 Subject: [PATCH] Aka: add a missing '.' in the error message --- plugins/Aka/locales/fi.po | 2 +- plugins/Aka/plugin.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/Aka/locales/fi.po b/plugins/Aka/locales/fi.po index 6af708ba5..090688d92 100644 --- a/plugins/Aka/locales/fi.po +++ b/plugins/Aka/locales/fi.po @@ -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 diff --git a/plugins/Aka/plugin.py b/plugins/Aka/plugin.py index 4367efe76..6501bdfbf 100644 --- a/plugins/Aka/plugin.py +++ b/plugins/Aka/plugin.py @@ -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'])