From e334bf6e4b4975fd87957c473a62c0d889e38cb0 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 30 Nov 2013 18:16:41 +0100 Subject: Review translated strings. - Include trailing colons inside translated strings because some languages (eg. French) need a space before the colon. - Normalize capitalization (title-style didn't seem warranted and looked weird in some cases). - Normalize quotes (not very useful, but we had a random mixture of single and double quotes). - Remove msgstr from the English po file because they're identical to msgid by definition. --- debug_toolbar/panels/sql/panel.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'debug_toolbar/panels/sql') diff --git a/debug_toolbar/panels/sql/panel.py b/debug_toolbar/panels/sql/panel.py index f4133db..2534849 100644 --- a/debug_toolbar/panels/sql/panel.py +++ b/debug_toolbar/panels/sql/panel.py @@ -18,11 +18,11 @@ def get_isolation_level_display(engine, level): if engine == 'psycopg2': import psycopg2.extensions choices = { - psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT: _('Autocommit'), - psycopg2.extensions.ISOLATION_LEVEL_READ_UNCOMMITTED: _('Read uncommitted'), - psycopg2.extensions.ISOLATION_LEVEL_READ_COMMITTED: _('Read committed'), - psycopg2.extensions.ISOLATION_LEVEL_REPEATABLE_READ: _('Repeatable read'), - psycopg2.extensions.ISOLATION_LEVEL_SERIALIZABLE: _('Serializable'), + psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT: _("Autocommit"), + psycopg2.extensions.ISOLATION_LEVEL_READ_UNCOMMITTED: _("Read uncommitted"), + psycopg2.extensions.ISOLATION_LEVEL_READ_COMMITTED: _("Read committed"), + psycopg2.extensions.ISOLATION_LEVEL_REPEATABLE_READ: _("Repeatable read"), + psycopg2.extensions.ISOLATION_LEVEL_SERIALIZABLE: _("Serializable"), } else: raise ValueError(engine) @@ -33,11 +33,11 @@ def get_transaction_status_display(engine, level): if engine == 'psycopg2': import psycopg2.extensions choices = { - psycopg2.extensions.TRANSACTION_STATUS_IDLE: _('Idle'), - psycopg2.extensions.TRANSACTION_STATUS_ACTIVE: _('Active'), - psycopg2.extensions.TRANSACTION_STATUS_INTRANS: _('In transaction'), - psycopg2.extensions.TRANSACTION_STATUS_INERROR: _('In error'), - psycopg2.extensions.TRANSACTION_STATUS_UNKNOWN: _('Unknown'), + psycopg2.extensions.TRANSACTION_STATUS_IDLE: _("Idle"), + psycopg2.extensions.TRANSACTION_STATUS_ACTIVE: _("Active"), + psycopg2.extensions.TRANSACTION_STATUS_INTRANS: _("In transaction"), + psycopg2.extensions.TRANSACTION_STATUS_INERROR: _("In error"), + psycopg2.extensions.TRANSACTION_STATUS_UNKNOWN: _("Unknown"), } else: raise ValueError(engine) @@ -102,7 +102,7 @@ class SQLPanel(Panel): # Implement the Panel API - nav_title = _('SQL') + nav_title = _("SQL") @property def nav_subtitle(self): -- cgit v1.2.3