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,6 +1,7 @@
{% extends "public/base.html" %}
{% load bootstrap %}
{% load staticfiles %}
{% load i18n %}
{% block title %}Alliance Auth{% endblock %}
{% block page_title %}FleetUp{% endblock page_title %}
@@ -11,20 +12,20 @@
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="sr-only">{% trans "Toggle navigation" %}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Fleet-Up</a>
<a class="navbar-brand" href="#">{% trans "Fleet-Up" %}</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Ops and Timers <span class="sr-only">(current)</span></a></li>
<li><a href="/fleetup/doctrines/">Doctrines</a></li>
<li><a href="/fleetup/fittings/">Fittings</a></li>
<li class="active"><a href="#">{% trans "Ops and Timers" %} <span class="sr-only">(current)</span></a></li>
<li><a href="/fleetup/doctrines/">{% trans "Doctrines" %}</a></li>
<li><a href="/fleetup/fittings/">{% trans "Fittings" %}</a></li>
{% if perms.auth.human_resources %}
<li><a href="/fleetup/characters/">Characters</a></li>
<li><a href="/fleetup/characters/">{% trans "Characters" %}</a></li>
{% endif %}
<li></li>
</ul>
@@ -33,8 +34,8 @@
</nav>
<div class="panel">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#operations">Operations</a></li>
<li><a data-toggle="tab" href="#timers">Timers</a></li>
<li class="active"><a data-toggle="tab" href="#operations">{% trans "Operations" %}</a></li>
<li><a data-toggle="tab" href="#timers">{% trans "Timers" %}</a></li>
</ul>
<div class="tab-content">
@@ -49,13 +50,13 @@
<div class="panel-body">
<table class="table table-condensed">
<tr>
<th class="col-md-6">Start</th>
<th class="col-md-6">End</th>
<th class="col-md-6">{% trans "Start" %}</th>
<th class="col-md-6">{% trans "End" %}</th>
</tr>
<tr>
<td class="col-md-6">{{ start.start|date:"l d M H:i" }} <span class="label label-success">Eve Time</span></td>
<td class="col-md-6">{{ start.start|date:"l d M H:i" }} <span class="label label-success">{% trans "Eve Time" %}</span></td>
<td class="col-md-6">{{ start.end|date:"l d M H:i" }} <span class="label label-success">Eve Time</span></td>
<td class="col-md-6">{{ start.end|date:"l d M H:i" }} <span class="label label-success">{% trans "Eve Time" %}</span></td>
</tr>
<tr>
<td class="col-md-6"><div id="countdown{{ start.operation_id }}"></div></td>
@@ -68,10 +69,10 @@
<div class="col-lg-12">
<table class="table table-condensed table-striped">
<tr>
<th class="col-md-4">Location</th>
<th class="col-md-4">Doctrine</th>
<th class="col-md-2">Organizer</th>
<th class="col-md-2">URL</th>
<th class="col-md-4">{% trans "Location" %}</th>
<th class="col-md-4">{% trans "Doctrine" %}</th>
<th class="col-md-2">{% trans "Organizer" %}</th>
<th class="col-md-2">{% trans "URL" %}</th>
</tr>
<tr>
<td>
@@ -86,7 +87,7 @@
{% endfor %}
{% else %}
<span class="label label-danger">TBA</span>
<span class="label label-danger">{% trans "TBA" %}</span>
{% endif %}
</td>
<td>
@@ -94,9 +95,9 @@
</td>
<td>
{% ifequal start.url "" %}
<div class="label label-danger">No link</div>
<div class="label label-danger">{% trans "No link" %}</div>
{% else %}
<a href="{{ start.url }}" target="_blank" class="label label-success">External link</a>
<a href="{{ start.url }}" target="_blank" class="label label-success">{% trans "External link" %}</a>
{% endifequal %}
</td>
</tr>
@@ -106,13 +107,13 @@
</div>
{% endfor %}
{% else %}
<h3>There seems to be no Operations in the near future, go make ISK!</h3>
<h3>{% trans "There seems to be no Operations in the near future, go make ISK!" %}</h3>
{% endif %}
</div>
<div class="col-lg-3">
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">Current Eve Time:</h2>
<h2 class="panel-title">{% trans "Current Eve Time:" %}</h2>
</div>
<div class="panel-body">
<div id="current-time"></div>
@@ -121,7 +122,7 @@
{% if timers_list %}
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">Timers</h2>
<h2 class="panel-title">{% trans "Timers" %}</h2>
</div>
<div class="panel-body">
<table class="table table-condensed table-hover table-striped">
@@ -146,18 +147,18 @@
{% if timers_list %}
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">Timers</h2>
<h2 class="panel-title">{% trans "Timers" %}</h2>
</div>
<div class="panel-body">
<div class="col-lg-12">
<table class="table table-condensed table-hover table-striped">
<tr>
<th class="col-lg-1">Type</th>
<th class="col-lg-1">Structure</th>
<th class="col-lg-2">Location</th>
<th class="col-lg-2">Expires(EVE-time)</th>
<th class="col-lg-1">Owner</th>
<th class="col-lg-2">Note</th>
<th class="col-lg-1">{% trans "Type" %}</th>
<th class="col-lg-1">{% trans "Structure" %}</th>
<th class="col-lg-2">{% trans "Location" %}</th>
<th class="col-lg-2">{% trans "Expires(EVE-time)" %}</th>
<th class="col-lg-1">{% trans "Owner" %}</th>
<th class="col-lg-2">{% trans "Note" %}</th>
</tr>
{% for notes, type in timers_list %}
<tr>
@@ -188,7 +189,7 @@
</div>
</div>
{% else %}
<h3>There seems to be no Timers in the near future, this does not mean there isn't any!</h3>
<h3>{% trans "There seems to be no Timers in the near future, this does not mean there isn't any!" %}</h3>
{% endif %}
</div>
</div>