Added translation tags to openstack-dashboard/dashboard templates
This commit is contained in:
parent
db78247095
commit
520c10c91c
openstack-dashboard/dashboard/templates
@ -5,9 +5,9 @@
|
||||
{% block content %}
|
||||
<div id="right_content">
|
||||
<div id="page_head">
|
||||
<h2 id="page_heading">Forbidden</h2>
|
||||
<p id="page_description">You do not have the required privileges to access this content. If you believe this message to be in error,
|
||||
please contact your project manager.</p>
|
||||
<h2 id="page_heading">{% trans "Forbidden" %}</h2>
|
||||
<p id="page_description">{% trans "You do not have the required privileges to access this content.
|
||||
If you believe this message to be in error, please contact your project manager." %}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,12 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} - Page Not Found{% endblock %}
|
||||
{% block title %} - {% trans "Page Not Found" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="right_content">
|
||||
<div id="page_head">
|
||||
<h2 id="page_heading">The page you were looking for doesn't exist</h2>
|
||||
<p id="page_description">You may have mistyped the address or the page may have moved.</p>
|
||||
<h2 id="page_heading">{% trans "The page you were looking for doesn't exist"%}</h2>
|
||||
<p id="page_description">{% trans "You may have mistyped the address or the page may have moved."%}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -5,8 +5,8 @@
|
||||
{% block content %}
|
||||
<div id="right_content">
|
||||
<div id="page_head">
|
||||
<h2 id="page_heading">Internal Server Error</h2>
|
||||
<p id="page_description">An unexpected error occurred while processing your request. Please try your request again.</p>
|
||||
<h2 id="page_heading">{% trans "Internal Server Error"%}</h2>
|
||||
<p id="page_description">{% trans "An unexpected error occurred while processing your request. Please try your request again."%}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -23,15 +23,15 @@
|
||||
<h1><a href="/">{% site_branding %}<span> Cloud Computing</span></a></h1>
|
||||
{% if user.is_authenticated %}
|
||||
<div id="user_info">
|
||||
<span class="user">Signed in as <strong>{{ request.user.username }}</strong>.</a></span>
|
||||
<span class="user">{% blocktrans %}Signed in as <strong>{{ request.user.username }}</strong>.{% endblocktrans %}</span>
|
||||
<ul>
|
||||
<li><a id="lnk_logout" href="{% url auth_logout %}">Sign Out</a></li>
|
||||
<li><a id="lnk_change_password" href="{% url auth_password_change %}">Change Password</a></li>
|
||||
<li><a id="lnk_logout" href="{% url auth_logout %}">{% trans "Sign Out"%}</a></li>
|
||||
<li><a id="lnk_change_password" href="{% url auth_password_change %}">{% trans "Change Password"%}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
<div id="user_info">
|
||||
<a id="lnk_login" href="{% url auth_login %}">Sign In</a>
|
||||
<a id="lnk_login" href="{% url auth_login %}">{% trans "Sign In"%}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@ -9,9 +9,10 @@
|
||||
|
||||
{% block content %}
|
||||
<div id="page_head">
|
||||
<h2>Welcome to the {% site_branding %} Dashboard</h2>
|
||||
<p>Through the {% site_branding %} Dashboard you can manage your cloud
|
||||
through a crisp, clean, and easy to use interface.
|
||||
{%blocktrans with brand=site_branding %}
|
||||
<h2>Welcome to the {{brand}} Dashboard</h2>
|
||||
<p>Through the {{brand}} Dashboard you can manage your cloud
|
||||
through a crisp, clean, and easy to use interface. {%endblocktrans%}
|
||||
{% if not request.user.is_authenticated%}To get started
|
||||
<a href="{% url registration_register %}">register</a> or sign in below.{% endif %}
|
||||
</p>
|
||||
@ -36,8 +37,8 @@
|
||||
<h3>OpenStack Resources</h3>
|
||||
<ul>
|
||||
<li><a href="http://openstack.org" target="_blank">OpenStack.org</a></li>
|
||||
<li><a href="http://wiki.openstack.org/OpenStackDashboard" target="_blank">OpenStack Dashboard Wiki</a></li>
|
||||
<li><a href="https://launchpad.net/openstack-dashboard" target="_blank">OpenStack Dashboard Launchpad Repository</a></li>
|
||||
<li><a href="http://wiki.openstack.org/OpenStackDashboard" target="_blank">{% trans "OpenStack Dashboard Wiki"%}</a></li>
|
||||
<li><a href="https://launchpad.net/openstack-dashboard" target="_blank">{% trans "OpenStack Dashboard Launchpad Repository"%}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -48,14 +49,14 @@
|
||||
{% csrf_token %}
|
||||
<fieldset>
|
||||
{% if form.errors %}
|
||||
<p class="error">Your username and password didn't match. Please try again.</p>
|
||||
<p class="error">{% trans "Your username and password didn't match. Please try again." %}</p>
|
||||
{% endif %}
|
||||
<label for="username">Username:</label><input id="username" type="text" name="username" />
|
||||
<label for="password">Password:</label><input id="password" type="password" name="password" />
|
||||
<input type="hidden" name="next" value="/" />
|
||||
<div class="button">
|
||||
<input id="home_login_btn" type="submit" value="Sign In">
|
||||
<span id="forgot_password"><a id="forgot_password_link" href="{% url auth_password_reset %}">Forgot Password?</a></span>
|
||||
<span id="forgot_password"><a id="forgot_password_link" href="{% url auth_password_reset %}">{% trans "Forgot Password?"%}</a></span>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
@ -70,8 +71,8 @@
|
||||
<h3>OpenStack Resources</h3>
|
||||
<ul>
|
||||
<li><a href="http://openstack.org" target="_blank">OpenStack.org</a></li>
|
||||
<li><a href="http://wiki.openstack.org/OpenStackDashboard" target="_blank">OpenStack Dashboard Wiki</a></li>
|
||||
<li><a href="https://launchpad.net/openstack-dashboard" target="_blank">OpenStack Dashboard Launchpad Repository</a></li>
|
||||
<li><a href="http://wiki.openstack.org/OpenStackDashboard" target="_blank">{% trans "OpenStack Dashboard Wiki"%}</a></li>
|
||||
<li><a href="https://launchpad.net/openstack-dashboard" target="_blank">{% trans "OpenStack Dashboard Launchpad Repository"%}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
@ -1,12 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} - Permission Denied{% endblock %}
|
||||
{% block title %} - {% trans "Permission Denied"%}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="right_content">
|
||||
<div id="page_head">
|
||||
<h2 id="page_heading">Permission Denied</h2>
|
||||
<p id="page_description">You do not have permission to view the requested page.</p>
|
||||
<h2 id="page_heading">{% trans "Permission Denie"%}d</h2>
|
||||
<p id="page_description">{% trans "You do not have permission to view the requested page."%}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} - Service Unavailable{% endblock %}
|
||||
{% block title %} - {% trans "Service Unavailable"%}{% endblock %}
|
||||
{% block pageclass %}unavailable{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="page_head">
|
||||
<h2 id="page_heading">Service Unavailable</h2>
|
||||
<p id="page_description">This service is temporarily unavailable. Please check back soon.</p>
|
||||
<h2 id="page_heading">{% trans "Service Unavailable"%}</h2>
|
||||
<p id="page_description">{% trans "This service is temporarily unavailable. Please check back soon."%}</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user