Corrected bugs introduced in internationalization
This commit is contained in:
parent
c02123f644
commit
e82235c616
@ -5,6 +5,7 @@ django-openstack/downloads/
|
||||
django-openstack/eggs/
|
||||
django-openstack/parts/
|
||||
django-openstack/src/django_nova.egg-info
|
||||
django-openstack/src/django_openstack.egg-info
|
||||
django-nova-syspanel/src/django_nova_syspanel.egg-info
|
||||
openstack-dashboard/.dashboard-venv
|
||||
openstack-dashboard/local/dashboard_openstack.sqlite3
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumb %}{{ block.super }}<li><a href="{% url syspanel_cloudview %}">Cloud View</a></li>{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="page_heading">NASA Nebula System Panel</h2>
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block headerjs %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumb %}{{ block.super }}<li><a href="{% url syspanel_security %}">Security</a></li>{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumb %}{{ block.super }}<li><a href="{% url syspanel_security %}">Security</a></li>{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block headerjs %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block headerjs %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "admin/change_list.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block extrastyle %}
|
||||
{{block.super}}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "admin/change_list.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block extrastyle %}
|
||||
{{block.super}}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends "admin/django_openstack/nova/project/base_projects.html" %}
|
||||
{% load admin_modify adminmedia %}
|
||||
{% load admin_modify adminmedia i18n %}
|
||||
|
||||
{% block extrahead %}
|
||||
{{ block.super }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% load django_openstack_tags %}
|
||||
{% load django_openstack_tags i18n %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xml:lang="en">
|
||||
<head>
|
||||
|
@ -1,3 +1,4 @@
|
||||
{% load i18n %}
|
||||
<h3 class="image_list_heading"> {{ heading }} </h3>
|
||||
{% if images %}
|
||||
<table id="image_launch">
|
||||
|
@ -1,5 +1,4 @@
|
||||
{% extends "django_openstack/nova/base.html" %}
|
||||
{% load i18n %}
|
||||
{% load sidebar_tags %}
|
||||
|
||||
{% block nav_projects %}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/images/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Cloud Computing{% endblock %}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
{% extends "django_openstack/nova/images/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Launch an Image" %}{% endblock %}
|
||||
{% block title %} - {% trans "Launch an Image" %}{% endblock %}
|
||||
|
||||
{% block headerjs %}
|
||||
<script type="text/javascript" src="/media/django_openstack/js/jquery.form.js"></script>
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/images/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Cloud Computing{% endblock %}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% if instances %}
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/instances/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Cloud Computing{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/instances/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Cloud Computing{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/instances/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - {{ project.projectname|capfirst }} Instances{% endblock %}
|
||||
{% block pageclass %}instances{% endblock %}
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/instances/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Cloud Computing{% endblock %}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% if keypairs %}
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/keypairs/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Cloud Computing{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/base.html" %}
|
||||
{% load i18n %}
|
||||
{% block title %} - {{ project.projectname|capfirst }} Overview{% endblock %}
|
||||
{% block pageclass %}overview{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/base.html" %}
|
||||
{% load i18n %}
|
||||
{% block title %} - {{ project.projectname|capfirst }} Overview{% endblock %}
|
||||
{% block pageclass %}overview{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/base.html" %}
|
||||
{% load i18n %}
|
||||
{% block title %} - {{ project.projectname|capfirst }} Overview{% endblock %}
|
||||
{% block pageclass %}overview{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/securitygroups/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Cloud Computing{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/securitygroups/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Cloud Computing{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "django_openstack/nova/volumes/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Cloud Computing{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Forbidden{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - {% trans "Page Not Found" %}{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - Internal Server Error{% endblock %}
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
{% extends "admin/base_site.html" %}
|
||||
{% load i18n %}
|
||||
{% load django_openstack_tags %}
|
||||
{% load django_openstack_tags i18n %}
|
||||
|
||||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
{% load django_openstack_tags %}
|
||||
{% load i18n %}
|
||||
{% load django_openstack_tags i18n %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xml:lang="en">
|
||||
<head>
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load django_openstack_tags %}
|
||||
{% load django_openstack_tags i18n %}
|
||||
|
||||
{% block headercss %}
|
||||
{% endblock %}
|
||||
@ -34,6 +34,15 @@
|
||||
</div>
|
||||
|
||||
<div class="home_block">
|
||||
<form action="/i18n/setlang/" method="post"> {% csrf_token %}
|
||||
<select name="language">
|
||||
{% get_language_info_list for LANGUAGES as languages %}
|
||||
{% for language in languages %}
|
||||
<option value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="submit" value="Go" />
|
||||
</form>
|
||||
<h3>OpenStack Resources</h3>
|
||||
<ul>
|
||||
<li><a href="http://openstack.org" target="_blank">OpenStack.org</a></li>
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - {% trans "Permission Denied"%}{% endblock %}
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %} - {% trans "Service Unavailable"%}{% endblock %}
|
||||
{% block pageclass %}unavailable{% endblock %}
|
||||
|
@ -31,6 +31,7 @@ admin.autodiscover()
|
||||
|
||||
urlpatterns = patterns('',
|
||||
url(r'^$', 'dashboard.views.index', name='index'),
|
||||
url(r'^i18n/', include('django.conf.urls.i18n')),
|
||||
url(r'^accounts/register/$',
|
||||
'registration.views.register',
|
||||
{'form_class': reg_forms.RegistrationFormUniqueEmail},
|
||||
|
Loading…
Reference in New Issue
Block a user