title: Django how to mark_safe a link but not the arguments in a gettext translation
body: <p>Let say we have a message like this :</p>
  
  <pre><code>            messages.add_message(request, messages.SUCCESS,
                  _('Document &lt;a href="%(url)s"&gt;%(doc_type_name)s %(name)s (%(fname)s)&lt;/a&gt; created.') % {
                      'doc_type_name': conditional_escape(document.doc_type.name),
                      'name': conditional_escape(document.title),
                      'fname': conditional_escape(document.name),
                      'url': document.get_absolute_url()
                  })
  </code></pre>
  
  <p>Here it will work only if we display the message with <code>{{ message|safe }}</code> but we don't want that since if there is some code in <code>%(name)</code> it will be executed too.</p>
  
  <p>If I use:</p>
  
  <pre><code>            messages.add_message(request, messages.SUCCESS,
                  mark_safe(_('Document &lt;a href="%(url)s"&gt;%(doc_type_name)s %(name)s (%(fname)s)&lt;/a&gt; created.') % {
                      'doc_type_name': conditional_escape(document.doc_type.name),
                      'name': conditional_escape(document.title),
                      'fname': conditional_escape(document.name),
                      'url': document.get_absolute_url()
                  }))
  </code></pre>
  
  <p>The <code>mark_safe</code> doesn't work.</p>
  
  <p>I read a solution over there : <a href="https://stackoverflow.com/a/12600388/186202">https://stackoverflow.com/a/12600388/186202</a></p>
  
  <p>But it is the reverse that I need here:</p>
  
  <pre><code>_('Document %s created.') % mark_safe('')
  </code></pre>
  
  <p>And as soon as it goes through the <code>ugettext function</code> it is not safe anymore.</p>
  
  <p>How should I do?</p>