aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages/views.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-04-27 14:52:08 +0200
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-04-27 15:08:07 +0200
commit2041ceae1ffd29630988c47fc766a1b9dcf9bbf7 (patch)
treee9eaf88e658e91ac9164e21be8494fbca4374602 /mediagoblin/user_pages/views.py
parent90e7fc673878d4eb68db41ae49c47fb543a35a87 (diff)
downloadmediagoblin-2041ceae1ffd29630988c47fc766a1b9dcf9bbf7.tar.lz
mediagoblin-2041ceae1ffd29630988c47fc766a1b9dcf9bbf7.tar.xz
mediagoblin-2041ceae1ffd29630988c47fc766a1b9dcf9bbf7.zip
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.
Diffstat (limited to 'mediagoblin/user_pages/views.py')
-rw-r--r--mediagoblin/user_pages/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py
index e3b46c0f..21b0c016 100644
--- a/mediagoblin/user_pages/views.py
+++ b/mediagoblin/user_pages/views.py
@@ -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)