1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-26 02:50:35 +03:00

Fixes for several user text so the can be better understand

This commit is contained in:
Adolfo Gómez García 2017-01-20 11:01:39 +01:00
parent 68806c6366
commit aabc5540d0
2 changed files with 9 additions and 9 deletions

View File

@ -9,24 +9,24 @@
<div class="row">
<div class="col-md-8 col-md-offset-2 bg-primary img-rounded">
<h3>{% trans 'Download UDS Plugin for' %} {{ os|osName }}</h3>
<p>{% trans 'In order to be able to execute UDS services, you need to have UDS plugin installed.' %}</p>
<p>{% trans 'In order to be able to execute UDS services, you need to download and install UDS Plugin.' %}</p>
<div class="text-center">{{ os|pluginDownloadUrl|safe }}</div>
<h3>{% trans 'Or download another version' %}</h3>
<p>{% trans 'In case that your platform has been incorrectly detected, you can download manually the version required for your Operating System' %}</p>
<h3>{% trans 'Or download for other operating system' %}</h3>
<p>{% trans 'In case that your operating system has not been correctly detected, you can download manually from' %}</p>
<p>
{% if os != 'linux' %}
<p class="text-center">
<a href="{% url 'uds.web.views.client_downloads' os='Linux' %}" class="btn btn-warning">{% trans 'Linux UDS plugin' %}</a>
<a href="{% url 'uds.web.views.client_downloads' os='Linux' %}" class="btn btn-warning">{% trans 'Download Linux UDS plugin' %}</a>
</p>
{% endif %}
{% if os != 'windows' %}
<p class="text-center">
<a href="{% url 'uds.web.views.client_downloads' os='Windows' %}" class="btn btn-warning">{% trans 'Windows UDS plugin' %}</a>
<a href="{% url 'uds.web.views.client_downloads' os='Windows' %}" class="btn btn-warning">{% trans 'Download Windows UDS plugin' %}</a>
</p>
{% endif %}
{% if os != 'mac' %}
<p class="text-center">
<a href="{% url 'uds.web.views.client_downloads' os='Mac' %}" class="btn btn-warning">{% trans 'Mac OSX (>10.5) UDS plugin' %}</a>
<a href="{% url 'uds.web.views.client_downloads' os='Mac' %}" class="btn btn-warning">{% trans 'Download Mac OS X (>10.5) UDS plugin' %}</a>
</p>
{% endif %}
</p>

View File

@ -211,11 +211,11 @@ def ifbrowser(parser, token):
@register.filter(name='osName')
def osName(os):
if os == 'windows':
return 'Windows platform'
return 'Windows'
elif os == 'linux':
return 'Linux platform'
return 'Linux'
else:
return 'Mac OSX platform'
return 'Mac OS X'
@register.filter(name='pluginDownloadUrl')