Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 60f73b1

Browse files
author
pyrog
committed
Revert changes in imagery.mako - need to be translated
1 parent 5cae7d5 commit 60f73b1

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

osmtm/templates/imagery.mako

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,29 @@
2828
<%
2929
license_agreement_url = request.route_path('license', license=project.license.id, \
3030
_query={'redirect': request.route_path('project', project=project.id)})
31-
link = '<a href="%s">%s</a>' % (
32-
license_agreement_url,
33-
_('${licence_name} license agreement', mapping={'licence_name': project.license.name})
34-
)
35-
text = _("Access to this imagery is limited by the ${licence_agreement_link}.",
36-
mapping={'licence_agreement_link': link})
3731
%>
3832
<p class="text-warning">
3933
<span class="glyphicon glyphicon-warning-sign"></span>
40-
${text|n}
34+
Access to this imagery is limited by the
35+
<a href="${license_agreement_url}">
36+
${project.license.name} license agreement
37+
</a>.
4138
</p>
4239
<p class="${'text-error' if not license_accepted else 'text-success'}">
4340
% if license_accepted:
4441
<span class="glyphicon glyphicon-ok"></span>
45-
${_('You have already acknowledged the terms of this license.')}</span>
42+
You have already acknowledged the terms of this license.</span>
4643
% else:
47-
<%
48-
link = '<a href="%s">%s</a>' % (review_and_acknowledge_link, _('review and acknowledge'))
49-
text = _("You need to ${review_and_acknowledge_link} the agreement.",
50-
mapping={'review_and_acknowledge_link': link})
51-
%>
52-
${text|n}
44+
You need to
45+
<a href="${license_agreement_url}">
46+
review and acknowledge
47+
</a>
48+
the agreement.
5349
<script>
5450
var licenseAgreementUrl = "${license_agreement_url}";
5551
var requiresLicenseAgreementMsg = "${_('You need to accept the license first') |n}"
5652
</script>
5753
% endif
5854
</p>
5955
% endif
60-
% endif
56+
% endif

0 commit comments

Comments
 (0)