Simplified translatable string in admindocs template

Forward port of 60471c960 from stable/1.9.x.
This commit is contained in:
Claude Paroz 2015-10-10 14:51:38 +02:00
parent 49320c2b1f
commit 8276f6cfa9
2 changed files with 9 additions and 10 deletions

View File

@ -4,7 +4,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Django\n" "Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-09 17:42+0200\n" "POT-Creation-Date: 2015-10-10 14:49+0200\n"
"PO-Revision-Date: 2010-05-13 15:35+0200\n" "PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n" "Last-Translator: Django team\n"
"Language-Team: English <en@li.org>\n" "Language-Team: English <en@li.org>\n"
@ -57,10 +57,9 @@ msgstr ""
#: contrib/admindocs/templates/admin_doc/bookmarklets.html:15 #: contrib/admindocs/templates/admin_doc/bookmarklets.html:15
msgid "" msgid ""
"\n" "To install bookmarklets, drag the link to your bookmarks toolbar, or right-"
"<p class=\"help\">To install bookmarklets, drag the link to your bookmarks\n" "click the link and add it to your bookmarks. Now you can select the "
"toolbar, or right-click the link and add it to your bookmarks. Now you can\n" "bookmarklet from any page in the site."
"select the bookmarklet from any page in the site.</p>\n"
msgstr "" msgstr ""
#: contrib/admindocs/templates/admin_doc/bookmarklets.html:22 #: contrib/admindocs/templates/admin_doc/bookmarklets.html:22

View File

@ -12,11 +12,11 @@
{% block content %} {% block content %}
{% blocktrans %} <p class="help">{% blocktrans trimmed %}
<p class="help">To install bookmarklets, drag the link to your bookmarks To install bookmarklets, drag the link to your bookmarks toolbar, or right-click
toolbar, or right-click the link and add it to your bookmarks. Now you can the link and add it to your bookmarks. Now you can select the bookmarklet
select the bookmarklet from any page in the site.</p> from any page in the site.
{% endblocktrans %} {% endblocktrans %}</p>
<div id="content-main"> <div id="content-main">
<h3><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){x=new XMLHttpRequest()}else{return;}x.open('HEAD',location.href,false);x.send(null);try{view=x.getResponseHeader('x-view');}catch(e){alert('No view found for this page');return;}if(view=='undefined'){alert('No view found for this page');}document.location='{% url 'django-admindocs-views-index' %}'+view+'/';})()">{% trans "Documentation for this page" %}</a></h3> <h3><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){x=new XMLHttpRequest()}else{return;}x.open('HEAD',location.href,false);x.send(null);try{view=x.getResponseHeader('x-view');}catch(e){alert('No view found for this page');return;}if(view=='undefined'){alert('No view found for this page');}document.location='{% url 'django-admindocs-views-index' %}'+view+'/';})()">{% trans "Documentation for this page" %}</a></h3>