chol
/
eva
forked from tohe/eva
1
0
Fork 0

some more translation work

This commit is contained in:
Benni Bärmann 2022-01-27 13:36:01 +01:00
parent 22e33327fc
commit 40bcae239a
3 changed files with 70 additions and 18 deletions

View File

@ -7,19 +7,19 @@ from django.utils.translation import gettext_lazy as _
# suboptimal implementation in views.EvaFormView.beautify_data() # suboptimal implementation in views.EvaFormView.beautify_data()
# #
DEPARTMENT_CHOICES = {'PROG': 'Programme', DEPARTMENT_CHOICES = {'PROG': _('Programme'),
'SOFT': 'Softwareentwicklung', 'SOFT': _('Softwareentwicklung'),
'CENT': 'Central', 'CENT': 'Central',
'KOMEV': 'Kommunikation und Events', 'KOMEV': _('Kommunikation und Events'),
'VOR': 'Vorstand',} 'VOR': _('Vorstand'),}
VENDOR_CHOICES = {'STANDARD': 'Dell Latitude', VENDOR_CHOICES = {'STANDARD': 'Dell Latitude',
'LENOVO': 'Lenovo Thinkpad', 'LENOVO': 'Lenovo Thinkpad',
'MAC': 'Mac (nur für Grafiker_innen)'} 'MAC': _('Mac (nur für Grafiker_innen)')}
OS_CHOICES = {'UBU': 'Ubuntu (Standard)', OS_CHOICES = {'UBU': 'Ubuntu (Standard)',
'WIN': 'Windows (bitte Begründung angeben)', 'WIN': _('Windows (bitte Begründung angeben)'),
'MOS': 'Mac OS (nur wenn Mac gewählt)'} 'MOS': _('Mac OS (nur wenn Mac gewählt)')}
LANG_CHOICES = {'GER': 'Deutsch', LANG_CHOICES = {'GER': 'Deutsch',
@ -27,19 +27,19 @@ LANG_CHOICES = {'GER': 'Deutsch',
KEYBOARD_CHOICES = {'DE': 'Deutsch', KEYBOARD_CHOICES = {'DE': 'Deutsch',
'US': 'USA', 'US': 'USA',
'OT': 'Anderes (Bitte unten angeben)'} 'OT': _('Anderes (Bitte unten angeben)')}
ACCOUNT_CHOICES = {'OTRSWMDE': 'OTRS Ticketsystem', ACCOUNT_CHOICES = {'OTRSWMDE': 'OTRS Ticketsystem',
'CIVIC1': 'Civic CRM (allgemein)', 'CIVIC1': _('Civic CRM (allgemein)'),
'CIVIC2': "Civic CRM (Mailings, impliziert allgemein)", 'CIVIC2': _("Civic CRM (Mailings, impliziert allgemein)"),
'WEB': 'www.wikimedia.de (edit)', 'WEB': 'www.wikimedia.de (edit)',
'BLOG': 'blog.wikimedia.de (edit)', 'BLOG': 'blog.wikimedia.de (edit)',
'FORUM': 'forum.wikimedia.de', 'FORUM': 'forum.wikimedia.de',
} }
TRANSPONDER_CHOICES = {'NORM': 'Allgemeiner Transponder', TRANSPONDER_CHOICES = {'NORM': _('Allgemeiner Transponder'),
'SPECIAL': 'Besondere Schließungen (bitte angeben)', 'SPECIAL': _('Besondere Schließungen (bitte angeben)'),
'NOTRANS': 'Kein Transponder',} 'NOTRANS': _('Kein Transponder'),}
class Employee(models.Model): class Employee(models.Model):

View File

@ -28,19 +28,19 @@ def long_process(wizard):
return True return True
else: else:
data = wizard.get_cleaned_data_for_step('0') or {} data = wizard.get_cleaned_data_for_step('0') or {}
print(data) # print(data)
if data.get('choice') != 'CHANGE': if data.get('choice') != 'CHANGE':
wizard.set_choice('IN') wizard.set_choice('IN')
print('PROZESS IN') # print('PROZESS IN')
return True return True
else: else:
wizard.set_choice('CHANGE') wizard.set_choice('CHANGE')
print('PROZESS NOT IN') # print('PROZESS NOT IN')
return False return False
def change_process(wizard): def change_process(wizard):
''' this method is called via urls.py to determine if the form is part of the change process''' ''' this method is called via urls.py to determine if the form is part of the change process'''
print('CHANGE PROZESS') # print('CHANGE PROZESS')
return not long_process(wizard) return not long_process(wizard)

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-26 15:52+0100\n" "POT-Creation-Date: 2022-01-27 13:35+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,6 +18,58 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: evapp/models.py:10
msgid "Programme"
msgstr ""
#: evapp/models.py:11
msgid "Softwareentwicklung"
msgstr "Software Development"
#: evapp/models.py:13
msgid "Kommunikation und Events"
msgstr ""
#: evapp/models.py:14
msgid "Vorstand"
msgstr ""
#: evapp/models.py:18
msgid "Mac (nur für Grafiker_innen)"
msgstr ""
#: evapp/models.py:21
msgid "Windows (bitte Begründung angeben)"
msgstr ""
#: evapp/models.py:22
msgid "Mac OS (nur wenn Mac gewählt)"
msgstr ""
#: evapp/models.py:30
msgid "Anderes (Bitte unten angeben)"
msgstr ""
#: evapp/models.py:33
msgid "Civic CRM (allgemein)"
msgstr ""
#: evapp/models.py:34
msgid "Civic CRM (Mailings, impliziert allgemein)"
msgstr ""
#: evapp/models.py:40
msgid "Allgemeiner Transponder"
msgstr ""
#: evapp/models.py:41
msgid "Besondere Schließungen (bitte angeben)"
msgstr ""
#: evapp/models.py:42
msgid "Kein Transponder"
msgstr ""
#: evapp/models.py:50 #: evapp/models.py:50
msgid "Vorname" msgid "Vorname"
msgstr "Firstname" msgstr "Firstname"