aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-02-24 18:30:26 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-03-01 22:07:12 +0100
commit918d811a78839ba156a88a15dd115ce924ea5553 (patch)
tree5f7ee8c6f6fbf29ed4147ad011ef94f434d7e00a
parent42de9886cfbf979da5bdf88e0079c4ed05ff6688 (diff)
downloadmediagoblin-918d811a78839ba156a88a15dd115ce924ea5553.tar.lz
mediagoblin-918d811a78839ba156a88a15dd115ce924ea5553.tar.xz
mediagoblin-918d811a78839ba156a88a15dd115ce924ea5553.zip
Fixup _("...") % (...) in media_collect.
Get some messages translated. Bad: _("..." % (...)) Good: _("...") % (...)
-rw-r--r--mediagoblin/user_pages/views.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py
index bbc3259a..6f8f8059 100644
--- a/mediagoblin/user_pages/views.py
+++ b/mediagoblin/user_pages/views.py
@@ -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,