Fix translations for collections and drop useless try.

Don't do:  _("With some value: %s" % value)
Please do: _("WIth some value: %s") % value

Fixed for collection messages.

Also removed a
  try:
    some_code.
  except Exception as e:
    raise

No point in doing that.

Fixing the indentation of some_code comes in an extra
commit, because changing indentation is annoying enough
alone, so don't mix it with other changes.
This commit is contained in:
Elrond
2013-04-27 14:52:08 +02:00
parent 90e7fc6738
commit 2041ceae1f
2 changed files with 8 additions and 9 deletions

View File

@@ -409,8 +409,8 @@ def collection_confirm_delete(request, collection):
item.delete()
collection.delete()
messages.add_message(
request, messages.SUCCESS, _('You deleted the collection "%s"' % collection_title))
messages.add_message(request, messages.SUCCESS,
_('You deleted the collection "%s"') % collection_title)
return redirect(request, "mediagoblin.user_pages.user_home",
user=username)