Browse Source

translation of dataloop works now

master
Benni Bärmann 6 months ago
parent
commit
361b6b497c
  1. 7
      TODO
  2. 3
      evapp/templates/evapp/dataloop.txt
  3. 5
      evapp/templates/evapp/department_mail.txt
  4. 1
      evapp/views.py
  5. 4
      locale/en/LC_MESSAGES/django.po

7
TODO

@ -1,3 +1,6 @@
* switch to django 4
from https://otrs.wikimedia.de/otrs/index.pl?Action=AgentTicketZoom;TicketID=754407:
* Team field should be longer
@ -8,7 +11,3 @@ minor stuff:
* remove dot before "Nextcloud" at login page.
* add Testmode warning at login screen
translations:
- dataloop translation missing

3
evapp/templates/evapp/dataloop.txt

@ -1,4 +1,5 @@
{% load i18n %}
{% autoescape off %}
{% for key, value in data.items %}{% if key == 'laptop' %} {{ key }}: {{ value | safe}}{% else %}
{{ key }}: {{ value }}{% endif %}{% endfor %}
{% trans key %}: {{ value }}{% endif %}{% endfor %}
{% endautoescape %}

5
evapp/templates/evapp/department_mail.txt

@ -1,3 +1,5 @@
{% load i18n %}
(english below)
Hallo!
@ -13,7 +15,7 @@ Wenn Du Fragen hast, melde Dich bei {{contact}}.
Grüße, Deine E.V.A.
-------------------------
{% language 'en' %}
Hi!
There is a new employee at Wikimedia! Here ( https://wiki.wikimedia.de/wiki/Onboarding ) you can see, which
@ -26,3 +28,4 @@ All Data you need for this:
If you have any questions please write to {{contact}}.
Regards, Your E.V.A.
{% endlanguage %}

1
evapp/views.py

@ -10,6 +10,7 @@ from formtools.wizard.views import CookieWizardView
from django.shortcuts import render
from django.conf import settings
from django.contrib.auth.mixins import LoginRequiredMixin
from django.utils.translation import gettext_lazy as _
from .models import Employee, DEPARTMENT_CHOICES, OS_CHOICES, VENDOR_CHOICES, \
LANG_CHOICES, ACCOUNT_CHOICES, TRANSPONDER_CHOICES, KEYBOARD_CHOICES

4
locale/en/LC_MESSAGES/django.po

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-31 12:06+0100\n"
"POT-Creation-Date: 2022-02-07 14:44+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -70,7 +70,7 @@ msgstr "Special Doors (please note below)"
msgid "Kein Transponder"
msgstr "No transponder"
#: evapp/models.py:50
#: evapp/models.py:50 evapp/templates/evapp/department_mail.txt:26
msgid "Vorname"
msgstr "Firstname"

Loading…
Cancel
Save