Added German Translations (#406)

* Added German Translations

Translated using
https://docs.djangoproject.com/en/1.9/topics/i18n/translation/

Added language drop down menu's for base.html, registration & login
pages

Known issues:
* Translated items in whtracker>create signature remain translated when
posted
* No date/time localisation for Fleet/Structure timers

* Added time locale

Added date/time locale to
*Structure Timers
*Fleet Timers
*Fleet timer form datetimepicker.js

Fixed a bug where the bootstrap label didn't show up when making a
structure timer using the translated form

Missed some base.html translations

* Small translation error

Some obscure SRP strings went unnoticed for context review

* FAT & Fleet-up German Translations

+ a fix in settings.py.example

The only small thing not done is German Date/Time locale for Fleet-up

* Compiled de/django.po
This commit is contained in:
iAddz
2016-06-16 23:54:04 +01:00
committed by Adarnof
parent e0693e7ca8
commit c9e490a5c5
76 changed files with 3241 additions and 785 deletions

View File

@@ -1,34 +1,36 @@
{% extends "public/base.html" %}
{% load staticfiles %}
{% load bootstrap %}
{% load i18n %}
{% block title %}Alliance Auth - View Application{% endblock %}
{% block page_title %}View Application{% endblock page_title %}
{% block page_title %}{% trans "View Application" %}{% endblock page_title %}
{% block extra_css %}{% endblock extra_css %}
{% block content %}
<div class="col-lg-12">
<h1 class="page-header text-center">View Application</h1>
<h1 class="page-header text-center">{% trans "View Application" %}</h1>
<div class="container-fluid">
<div class="col-md-4 col-md-offset-4">
<div class="row">
{% if app.approved %}
<div class="alert alert-success">Approved</div>
<div class="alert alert-success">{% trans "Approved" %}</div>
{% elif app.approved == False %}
<div class="alert alert-danger">Denied</div>
<div class="alert alert-danger">{% trans "Denied" %}</div>
{% else %}
<div class="alert alert-warning">Pending</div>
<div class="alert alert-warning">{% trans "Pending" %}</div>
{% endif %}
{% if app.reviewer_str %}
<div class="alert alert-info">Reviewer: {{ app.reviewer_str }}</div>
<div class="alert alert-info">{% trans "Reviewer:" %} {{ app.reviewer_str }}</div>
{% endif %}
</div>
<div class="row">
<div class="panel panel-info">
<div class="panel-heading">Applicant</div>
<div class="panel-heading">{% trans "Applicant" %}</div>
<table class="table">
<tr>
<th class="text-center">User</th>
<th class="text-center">Main Character</th>
<th class="text-center">{% trans "User" %}</th>
<th class="text-center">{% trans "Main Character" %}</th>
</tr>
<tr>
<td class="text-center">{{ app.user }}</td>
@@ -37,13 +39,13 @@
</table>
</div>
<div class="panel panel-info">
<div class="panel-heading">Characters</div>
<div class="panel-heading">{% trans "Characters" %}</div>
<table class="table">
<tr>
<th class="text-center"></th>
<th class="text-center">Name</th>
<th class="text-center">Corp</th>
<th class="text-center">Alliance</th>
<th class="text-center">{% trans "Name" %}</th>
<th class="text-center">{% trans "Corp" %}</th>
<th class="text-center">{% trans "Alliance" %}</th>
</tr>
{% for char in app.characters %}
<tr>
@@ -70,28 +72,28 @@
<div class="row">
{% if perms.auth.human_resources %}
<div class="panel panel-primary">
<div class="panel-heading">Actions</div>
<div class="panel-heading">{% trans "Actions" %}</div>
{% if app.approved == None %}
{% if app.reviewer == user %}
{% if perms.hrapplications.approve_application %}
<a href="/hr_application_approve/{{ app.id }}" class="btn btn-success">Approve</a>
<a href="/hr_application_approve/{{ app.id }}" class="btn btn-success">{% trans "Approve" %}</a>
{% endif %}
{% if perms.hrapplications.reject_application %}
<a href="/hr_application_reject/{{ app.id }}" class="btn btn-danger">Reject</a>
<a href="/hr_application_reject/{{ app.id }}" class="btn btn-danger">{% trans "Reject" %}</a>
{% endif %}
{% if perms.hrapplications.delete_application %}
<a href="/hr_application_remove/{{ app.id }}" class="btn btn-danger">Delete</a>
<a href="/hr_application_remove/{{ app.id }}" class="btn btn-danger">{% trans "Delete" %}</a>
{% endif %}
{% elif not app.reviewer %}
<a href="/hr_mark_in_progress/{{ app.id }}" class="btn btn-warning">Mark in Progress</a>
<a href="/hr_mark_in_progress/{{ app.id }}" class="btn btn-warning">{% trans "Mark in Progress" %}</a>
{% endif %}
{% endif %}
{% if perms.hrapplications.add_applicationcomment %}
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">Comment</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">{% trans "Comment" %}</button>
{% endif %}
{% if perms.hrapplications.view_apis %}
{% for api in apis %}
<a href="{{ JACK_KNIFE_URL }}?usid={{ api.api_id}}&apik={{ api.api_key }}" class="btn btn-info">API {{ api.api_id }}</a>
<a href="{{ JACK_KNIFE_URL }}?usid={{ api.api_id}}&apik={{ api.api_key }}" class="btn btn-info">{% trans "API" %} {{ api.api_id }}</a>
{% endfor %}
{% endif %}
</div>
@@ -133,16 +135,16 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
<span aria-hidden="true">&times;</span><span class="sr-only">{% trans "Close" %}</span>
</button>
<h4 class="modal-title" id="myModalLabel">Add Comment</h4>
<h4 class="modal-title" id="myModalLabel">{% trans "Add Comment" %}</h4>
</div>
<div class="modal-body">
<form class="form-signin" role="form" action="" method="POST">
{% csrf_token %}
{{ comment_form|bootstrap }}
<br/>
<button class="btn btn-lg btn-primary btn-block" type="submit">Add Comment</button>
<button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Add Comment" %}</button>
</form>
</div>
<div class="modal-footer"></div>