From 918d811a78839ba156a88a15dd115ce924ea5553 Mon Sep 17 00:00:00 2001 From: Elrond Date: Sun, 24 Feb 2013 18:30:26 +0100 Subject: [PATCH] Fixup _("...") % (...) in media_collect. Get some messages translated. Bad: _("..." % (...)) Good: _("...") % (...) --- mediagoblin/user_pages/views.py | 12 ++++++------ 1 file 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, -- 2.25.1