mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-05 06:36:19 +01:00
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:
@@ -1,20 +1,21 @@
|
||||
from django import forms
|
||||
from django.core.validators import MaxValueValidator, MinValueValidator
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
||||
|
||||
class TimerForm(forms.Form):
|
||||
structure_choices = [('POCO', 'POCO'), ('I-HUB', 'I-HUB'), ('POS[S]', 'POS[S]'),
|
||||
('POS[M]', 'POS[M]'), ('POS[L]', 'POS[L]'), ('Station', 'Station'), ('TCU', 'TCU'), ('Other', 'Other')]
|
||||
objective_choices = [('Friendly', 'Friendly'), ('Hostile', 'Hostile'), ('Neutral', 'Neutral')]
|
||||
('POS[M]', 'POS[M]'), ('POS[L]', 'POS[L]'), ('Station', 'Station'), ('TCU', 'TCU'), (_('Other'), _('Other'))]
|
||||
objective_choices = [('Friendly', _('Friendly')), ('Hostile', _('Hostile')), ('Neutral', _('Neutral'))]
|
||||
|
||||
details = forms.CharField(max_length=254, required=True, label='Details')
|
||||
system = forms.CharField(max_length=254, required=True, label="System")
|
||||
planet_moon = forms.CharField(max_length=254, label="Planet/Moon", required=False, initial="")
|
||||
structure = forms.ChoiceField(choices=structure_choices, required=True, label="Structure Type")
|
||||
objective = forms.ChoiceField(choices=objective_choices, required=True, label="Objective")
|
||||
days_left = forms.IntegerField(required=True, label="Days Remaining", validators=[MinValueValidator(0)])
|
||||
hours_left = forms.IntegerField(required=True, label="Hours Remaining", validators=[MinValueValidator(0), MaxValueValidator(23)])
|
||||
minutes_left = forms.IntegerField(required=True, label="Minutes Remaining", validators=[MinValueValidator(0), MaxValueValidator(59)])
|
||||
important = forms.BooleanField(label="Important", required=False)
|
||||
corp_timer = forms.BooleanField(label="Corp-Restricted", required=False)
|
||||
details = forms.CharField(max_length=254, required=True, label=_('Details'))
|
||||
system = forms.CharField(max_length=254, required=True, label=_("System"))
|
||||
planet_moon = forms.CharField(max_length=254, label=_("Planet/Moon"), required=False, initial="")
|
||||
structure = forms.ChoiceField(choices=structure_choices, required=True, label=_("Structure Type"))
|
||||
objective = forms.ChoiceField(choices=objective_choices, required=True, label=_("Objective"))
|
||||
days_left = forms.IntegerField(required=True, label=_("Days Remaining"), validators=[MinValueValidator(0)])
|
||||
hours_left = forms.IntegerField(required=True, label=_("Hours Remaining"), validators=[MinValueValidator(0), MaxValueValidator(23)])
|
||||
minutes_left = forms.IntegerField(required=True, label=_("Minutes Remaining"), validators=[MinValueValidator(0), MaxValueValidator(59)])
|
||||
important = forms.BooleanField(label=_("Important"), required=False)
|
||||
corp_timer = forms.BooleanField(label=_("Corp-Restricted"), required=False)
|
||||
|
||||
Reference in New Issue
Block a user