Fixup _("...") % (...) in media_collect.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Sun, 24 Feb 2013 17:30:26 +0000 (18:30 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Fri, 1 Mar 2013 21:07:12 +0000 (22:07 +0100)
Get some messages translated.

Bad:  _("..." % (...))
Good: _("...") % (...)

mediagoblin/user_pages/views.py

index bbc3259ae082a07ce441f601e88019a49583a8e3..6f8f805916ebfd637e8ae354f189126a9e6583c6 100644 (file)
@@ -211,8 +211,8 @@ def media_collect(request, media):
                                 title=request.form['collection_title']).first()
         if existing_collection:
             messages.add_message(request, messages.ERROR,
-                _('You already have a collection called "%s"!'
-                  % existing_collection.title))
+                _('You already have a collection called "%s"!')
+                % existing_collection.title)
             return redirect(request, "mediagoblin.user_pages.media_home",
                             user=request.user.username,
                             media=media.id)
@@ -244,8 +244,8 @@ def media_collect(request, media):
         media_entry=media.id,
         collection=collection.id).first():
         messages.add_message(request, messages.ERROR,
-            _('"%s" already in collection "%s"'
-                % (media.title, collection.title)))
+                             _('"%s" already in collection "%s"')
+                             % (media.title, collection.title))
     else: # Add item to collection
         collection_item = request.db.CollectionItem()
         collection_item.collection = collection.id
@@ -261,8 +261,8 @@ def media_collect(request, media):
         media.save()
 
         messages.add_message(request, messages.SUCCESS,
-                             _('"%s" added to collection "%s"'
-                               % (media.title, collection.title)))
+                             _('"%s" added to collection "%s"')
+                             % (media.title, collection.title))
 
     return redirect(request, "mediagoblin.user_pages.media_home",
                     user=media.get_uploader.username,