Localization of openstack-dashboard templates
This commit is contained in:
parent
2652fc42de
commit
45766960d7
@ -1,7 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Forbidden{% endblock %}
|
||||
{% block title %} - {% trans "Forbidden" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="right_content">
|
||||
@ -17,11 +17,11 @@
|
||||
<div id="sidebar">
|
||||
<ul id="navigation">
|
||||
{% block nav_home %}
|
||||
<li><h3><a href="{% url index %}">Home</a></h3></li>
|
||||
<li><h3><a href="{% url index %}">{% trans "Home" %}</a></h3></li>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav_projects %}
|
||||
<li><h3><a href="{% url index %}">Projects</a></h3></li>
|
||||
<li><h3><a href="{% url index %}">{% trans "Projects" %}</a></h3></li>
|
||||
{% endblock %}
|
||||
</ul>
|
||||
</div> <!-- end sidebar -->
|
||||
|
@ -16,11 +16,11 @@
|
||||
<div id="sidebar">
|
||||
<ul id="navigation">
|
||||
{% block nav_home %}
|
||||
<li><h3><a href="{% url index %}">Home</a></h3></li>
|
||||
<li><h3><a href="{% url index %}">{% trans "Home"%}</a></h3></li>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav_projects %}
|
||||
<li><h3><a href="{% url index %}">Projects</a></h3></li>
|
||||
<li><h3><a href="{% url index %}">{% trans "Projects"%}</a></h3></li>
|
||||
{% endblock %}
|
||||
</ul>
|
||||
</div> <!-- end sidebar -->
|
||||
|
@ -1,7 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Internal Server Error{% endblock %}
|
||||
{% block title %} - {% trans "Internal Server Error"%}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div id="right_content">
|
||||
@ -16,11 +16,11 @@
|
||||
<div id="sidebar">
|
||||
<ul id="navigation">
|
||||
{% block nav_home %}
|
||||
<li><h3><a href="{% url index %}">Home</a></h3></li>
|
||||
<li><h3><a href="{% url index %}">{% trans "Home"%}</a></h3></li>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav_projects %}
|
||||
<li><h3><a href="{% url index %}">Projects</a></h3></li>
|
||||
<li><h3><a href="{% url index %}">{% trans "Projects"%}</a></h3></li>
|
||||
{% endblock %}
|
||||
</ul>
|
||||
</div> <!-- end sidebar -->
|
||||
|
@ -1,7 +1,8 @@
|
||||
{% extends 'django_openstack/auth/_login.html' %}
|
||||
{% load i18n %}
|
||||
{% block submit %}
|
||||
<input type="hidden" name="next" value="/" />
|
||||
<div class="button">
|
||||
<input id="home_login_btn" type="submit" value="Sign In">
|
||||
<input id="home_login_btn" type="submit" value="{% trans "Sign In"%}">
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,27 +1,27 @@
|
||||
{% load i18n %}
|
||||
{% for message in messages %}
|
||||
{% if message.tags == "info" %}
|
||||
<div class="message_box info">
|
||||
<h2>Info</h2>
|
||||
<h2>{% trans "Info"%}</h2>
|
||||
<p>{{ message }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if message.tags == "warning" %}
|
||||
<div class="message_box medium">
|
||||
<h2>Warning</h2>
|
||||
<h2>{% trans "Warning"%}</h2>
|
||||
<p>{{ message }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if message.tags == "success" %}
|
||||
<div class="message_box success">
|
||||
<h2>Success</h2>
|
||||
<h2>{% trans "Success"%}</h2>
|
||||
<p>{{ message }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if message.tags == "error" %}
|
||||
<div class="message_box error">
|
||||
<h2>Error</h2>
|
||||
<h2>{% trans "Error"%}</h2>
|
||||
<p>{{ message }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
{% extends 'django_openstack/auth/_switch.html' %}
|
||||
{%load i18n%}
|
||||
{% block submit %}
|
||||
<input type="hidden" name="next" value="/" />
|
||||
<div class="button">
|
||||
<input id="home_login_btn" type="submit" value="Sign In">
|
||||
<input id="home_login_btn" type="submit" value="{% trans "Sign In"%}">
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,11 +1,12 @@
|
||||
{%load i18n%}
|
||||
<div id='header'>
|
||||
<ul id="main_nav">
|
||||
<li id="home_link"><h1><a href='{% url splash %}'>OpenStack Dashboard</a></h1></li>
|
||||
<li id="home_link"><h1><a href='{% url splash %}'>{% trans "OpenStack Dashboard"%}</a></h1></li>
|
||||
{% if request.user %}
|
||||
<li><a {% if current_topbar == "dash" %} class="active" {% endif %} href="{% url dash_overview %}">User Dashboard</a></li>
|
||||
<li><a {% if current_topbar == "dash" %} class="active" {% endif %} href="{% url dash_overview %}">{% trans "User Dashboard"%}</a></li>
|
||||
|
||||
{% if request.user.is_admin %}
|
||||
<li><a {% if current_topbar == "syspanel" %} class="active" {% endif %} href="{% url syspanel_overview %}">System Panel</a></li>
|
||||
<li><a {% if current_topbar == "syspanel" %} class="active" {% endif %} href="{% url syspanel_overview %}">{% trans "System Panel"%}</a></li>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
NOT _LOGGED_IN_TOPBAR
|
||||
@ -20,15 +21,14 @@
|
||||
</a>
|
||||
<a id="drop_btn" href="#"> </a>
|
||||
<ul id="user_tenant_list">
|
||||
<li class="title"><h4>Available Tenants</h4></li>
|
||||
<li class="title"><h4>{% trans "Available Tenants"%}</h4></li>
|
||||
{% for tenant in tenants %}
|
||||
{% if tenant.enabled %}
|
||||
<li><a href="{% url auth_switch tenant.id %}">{{tenant.name}}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<li id="sign_out"><a href="{% url auth_logout %}">Sign Out</a></li>
|
||||
<li id="sign_out"><a href="{% url auth_logout %}">{% trans "Sign Out"%}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -1,17 +1,17 @@
|
||||
{% extends 'base.html' %}
|
||||
{%load i18n%}
|
||||
|
||||
{# pleasant landing page if not logged in #}
|
||||
{# redirected to overview if logged in #}
|
||||
|
||||
|
||||
{% block sidebar %}
|
||||
<div id="sidebar" class="empty-sidebar"></div>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<div id='page_header'>
|
||||
<h2><span>Compute:</span> Login</h2>
|
||||
<p class='desc'><span>—</span> Login to OpenStack via Keystone auth.</p>
|
||||
<h2><span>Compute:</span>{% trans "Login"%}</h2>
|
||||
<p class='desc'><span>—</span>{% trans "Login to OpenStack via Keystone auth."%}</p>
|
||||
</div>
|
||||
<div class='main_content'>
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
|
||||
<div class="dash_block" id="login_wrapper">
|
||||
<div class='table_title narrow'>
|
||||
<h3>Login</h3>
|
||||
<h3>{% trans "Login"%}</h3>
|
||||
</div>
|
||||
{% include '_login.html' %}
|
||||
</div>
|
||||
|
@ -16,11 +16,11 @@
|
||||
<div id="sidebar">
|
||||
<ul id="navigation">
|
||||
{% block nav_home %}
|
||||
<li><h3><a href="{% url index %}">Home</a></h3></li>
|
||||
<li><h3><a href="{% url index %}">{% trans "Home"%}</a></h3></li>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav_projects %}
|
||||
<li><h3><a href="{% url index %}">Projects</a></h3></li>
|
||||
<li><h3><a href="{% url index %}">{% trans "Projects"%}</a></h3></li>
|
||||
{% endblock %}
|
||||
</ul>
|
||||
</div> <!-- end sidebar -->
|
||||
|
@ -1,3 +1,4 @@
|
||||
{%load i18n%}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xml:lang="en">
|
||||
<head>
|
||||
@ -8,7 +9,7 @@
|
||||
<body id="standalone">
|
||||
<div id="login_wrapper">
|
||||
<div class='large-rounded' id='login'>
|
||||
<h3> Log-in to tenant: <i>{{to_tenant}}</i></h3>
|
||||
<h3>{% trans "Log-in to tenant"%}: <i>{{to_tenant}}</i></h3>
|
||||
<br/>
|
||||
{% include "_messages.html" %}
|
||||
{% include '_login.html' %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user