Fix multilanguage
This commit is contained in:
parent
1c21979486
commit
c1a8912f6d
@ -4,5 +4,5 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
class RugTemplateConfig(AppConfig):
|
class RugTemplateConfig(AppConfig):
|
||||||
name = 'apps.RUG_template'
|
name = 'apps.RUG_template'
|
||||||
label = 'RUG_template'
|
label = 'RUG_template'
|
||||||
verbose_name = _('RUG_template')
|
verbose_name = _('RUG Template')
|
||||||
verbose_name_plural = _('RUG_template')
|
verbose_name_plural = _('RUG Template')
|
||||||
|
@ -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: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\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"
|
||||||
@ -19,22 +19,22 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
#: apps/RUG_template/apps.py:7 apps/RUG_template/apps.py:8
|
#: apps/RUG_template/apps.py:7 apps/RUG_template/apps.py:8
|
||||||
msgid "RUG_template"
|
msgid "RUG Template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: apps/RUG_template/templates/admin/base_site.html:21
|
#: apps/RUG_template/templates/admin/base_site.html:27
|
||||||
msgid "Language"
|
msgid "Language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: apps/RUG_template/templates/admin/base_site.html:28
|
#: apps/RUG_template/templates/admin/base_site.html:35
|
||||||
msgid "Documentation"
|
msgid "Documentation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: apps/RUG_template/templates/admin/base_site.html:32
|
#: apps/RUG_template/templates/admin/base_site.html:39
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: apps/RUG_template/templates/admin/base_site.html:34
|
#: apps/RUG_template/templates/admin/base_site.html:41
|
||||||
msgid "Log out"
|
msgid "Log out"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ msgid ""
|
|||||||
"the email shortly!"
|
"the email shortly!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: apps/RUG_template/templates/registration/password_reset_email.html:6
|
#: apps/RUG_template/templates/registration/password_reset_email.html:2
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"You're receiving this email because you requested a password reset for your "
|
"You're receiving this email because you requested a password reset for your "
|
||||||
|
@ -7,8 +7,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\n"
|
||||||
"PO-Revision-Date: 2020-05-15 10:20+0200\n"
|
"PO-Revision-Date: 2020-05-15 12:52+0200\n"
|
||||||
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: nl\n"
|
"Language: nl\n"
|
||||||
@ -19,22 +19,22 @@ msgstr ""
|
|||||||
"X-Generator: Poedit 2.0.6\n"
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
|
||||||
#: apps/RUG_template/apps.py:7 apps/RUG_template/apps.py:8
|
#: apps/RUG_template/apps.py:7 apps/RUG_template/apps.py:8
|
||||||
msgid "RUG_template"
|
msgid "RUG Template"
|
||||||
msgstr "RUG_template"
|
msgstr "RUG Template"
|
||||||
|
|
||||||
#: apps/RUG_template/templates/admin/base_site.html:21
|
#: apps/RUG_template/templates/admin/base_site.html:27
|
||||||
msgid "Language"
|
msgid "Language"
|
||||||
msgstr "Taal"
|
msgstr "Taal"
|
||||||
|
|
||||||
#: apps/RUG_template/templates/admin/base_site.html:28
|
#: apps/RUG_template/templates/admin/base_site.html:35
|
||||||
msgid "Documentation"
|
msgid "Documentation"
|
||||||
msgstr "Documentatie"
|
msgstr "Documentatie"
|
||||||
|
|
||||||
#: apps/RUG_template/templates/admin/base_site.html:32
|
#: apps/RUG_template/templates/admin/base_site.html:39
|
||||||
msgid "Change password"
|
msgid "Change password"
|
||||||
msgstr "Verander wachtwoord"
|
msgstr "Verander wachtwoord"
|
||||||
|
|
||||||
#: apps/RUG_template/templates/admin/base_site.html:34
|
#: apps/RUG_template/templates/admin/base_site.html:41
|
||||||
msgid "Log out"
|
msgid "Log out"
|
||||||
msgstr "Logouit"
|
msgstr "Logouit"
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ msgstr ""
|
|||||||
"We hebben u een e-mail gestuurd met instructies voor het instellen van uw "
|
"We hebben u een e-mail gestuurd met instructies voor het instellen van uw "
|
||||||
"wachtwoord. U ontvangt de e-mail binnenkort!"
|
"wachtwoord. U ontvangt de e-mail binnenkort!"
|
||||||
|
|
||||||
#: apps/RUG_template/templates/registration/password_reset_email.html:6
|
#: apps/RUG_template/templates/registration/password_reset_email.html:2
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"You're receiving this email because you requested a password reset for your "
|
"You're receiving this email because you requested a password reset for your "
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
img.i18n_flag {
|
img.i18n_flag {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
|
}
|
||||||
|
|
||||||
|
form#language_form {
|
||||||
|
display: inline;
|
||||||
}
|
}
|
@ -3,25 +3,28 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<!-- custom filter module -->
|
|
||||||
{% load i18n_switcher %}
|
|
||||||
|
|
||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
<link rel="shortcut icon" href="{% static 'RUG_template/images/favicon.ico' %}" />
|
<link rel="shortcut icon" href="{% static 'RUG_template/images/favicon.ico' %}" />
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'RUG_template/css/custom_admin.css' %}"/>
|
<link rel="stylesheet" type="text/css" href="{% static 'RUG_template/css/custom_admin.css' %}"/>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block userlinks %}
|
{% block userlinks %}
|
||||||
|
{% comment %} Language choice. Should be put somewhere else when finale designs are done. {% endcomment %}
|
||||||
|
<form action="{% url 'set_language' %}" method="post" id="language_form" name="language_form">
|
||||||
|
{% csrf_token %}
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
{% get_current_language as LANGUAGE_CODE %}
|
||||||
{% get_available_languages as LANGUAGES %}
|
{% get_available_languages as LANGUAGES %}
|
||||||
{% get_language_info_list for LANGUAGES as languages %}
|
{% get_language_info_list for LANGUAGES as languages %}
|
||||||
{% for language in languages %}
|
<input name="next" type="hidden" value="{% if redirect_to %}{{ redirect_to }}{% endif %}">
|
||||||
<a href="{{ request|switch_i18n:language.code}}">
|
<input type="hidden" name="language" id="language" value="{{LANGUAGE_CODE}}">
|
||||||
{% with 'RUG_template/images/flag-'|add:language.code|add:'.png' as image_static %}
|
{% for language in languages %}
|
||||||
<img class="i18n_flag" src="{% static image_static %}" title="{% trans 'Language' %} {{ language.name_translated }}"/>
|
<a onclick="document.getElementById('language').value='{{ language.code }}'; document.forms['language_form'].submit(); return false;" href="#">
|
||||||
{% endwith %}
|
{% with 'RUG_template/images/flag-'|add:language.code|add:'.png' as image_static %}
|
||||||
|
<img class="i18n_flag" src="{% static image_static %}" title="{% trans 'Language' %} {{ language.name_translated }}"/>
|
||||||
|
{% endwith %}
|
||||||
</a> /
|
</a> /
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</form>
|
||||||
{% if user.is_active and user.is_staff %}
|
{% if user.is_active and user.is_staff %}
|
||||||
{% url 'django-admindocs-docroot' as docsroot %}
|
{% url 'django-admindocs-docroot' as docsroot %}
|
||||||
{% if docsroot %}
|
{% if docsroot %}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}{% url 'password_reset_confirm' uidb64=uid token=token as reset_url%}
|
||||||
{% url 'password_reset_confirm' uidb64=uid token=token as reset_url%}
|
{% autoescape off %}{% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.
|
||||||
{% autoescape off %}
|
|
||||||
{% blocktrans %}You're receiving this email because you requested a password reset for your user account at {{ site_name }}.
|
|
||||||
|
|
||||||
Please go to the following page and choose a new password:
|
Please go to the following page and choose a new password:
|
||||||
|
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
from django import template
|
|
||||||
from django.template.defaultfilters import stringfilter
|
|
||||||
from django.conf import settings
|
|
||||||
|
|
||||||
def switch_lang_code(path, language):
|
|
||||||
|
|
||||||
# Get the supported language codes
|
|
||||||
lang_codes = [c for (c, name) in settings.LANGUAGES]
|
|
||||||
|
|
||||||
# Validate the inputs
|
|
||||||
if path == '':
|
|
||||||
raise Exception('URL path for language switch is empty')
|
|
||||||
elif path[0] != '/':
|
|
||||||
raise Exception('URL path for language switch does not start with "/"')
|
|
||||||
elif language not in lang_codes:
|
|
||||||
raise Exception('%s is not a supported language code' % language)
|
|
||||||
|
|
||||||
# Split the parts of the path
|
|
||||||
parts = path.split('/')
|
|
||||||
|
|
||||||
# Add or substitute the new language prefix
|
|
||||||
if parts[1] in lang_codes:
|
|
||||||
parts[1] = language
|
|
||||||
else:
|
|
||||||
parts[0] = "/" + language
|
|
||||||
|
|
||||||
# Return the full new path
|
|
||||||
return '/'.join(parts)
|
|
||||||
|
|
||||||
register = template.Library()
|
|
||||||
|
|
||||||
@register.filter
|
|
||||||
@stringfilter
|
|
||||||
def switch_i18n_prefix(path, language):
|
|
||||||
"""takes in a string path"""
|
|
||||||
return switch_lang_code(path, language)
|
|
||||||
|
|
||||||
@register.filter
|
|
||||||
def switch_i18n(request, language):
|
|
||||||
"""takes in a request object and gets the path from it"""
|
|
||||||
return switch_lang_code(request.get_full_path(), language)
|
|
@ -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: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\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,14 +18,22 @@ 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"
|
||||||
|
|
||||||
#: apps/employee/apps.py:7 apps/employee/models.py:13
|
#: apps/employee/apps.py:7
|
||||||
msgid "Employee"
|
msgid "Employee"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: apps/employee/apps.py:8 apps/employee/models.py:14
|
#: apps/employee/apps.py:8
|
||||||
msgid "Employees"
|
msgid "Employees"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/employee/models.py:13
|
||||||
|
msgid "employee"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/employee/models.py:14
|
||||||
|
msgid "employees"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: apps/employee/models.py:16
|
#: apps/employee/models.py:16
|
||||||
msgid "Django user"
|
msgid "Django user"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,8 +7,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\n"
|
||||||
"PO-Revision-Date: 2020-05-14 19:48+0200\n"
|
"PO-Revision-Date: 2020-05-15 12:46+0200\n"
|
||||||
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: nl\n"
|
"Language: nl\n"
|
||||||
@ -18,14 +18,22 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: Poedit 2.0.6\n"
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
|
||||||
#: apps/employee/apps.py:7 apps/employee/models.py:13
|
#: apps/employee/apps.py:7
|
||||||
msgid "Employee"
|
msgid "Employee"
|
||||||
msgstr "Medewerker"
|
msgstr "Medewerker"
|
||||||
|
|
||||||
#: apps/employee/apps.py:8 apps/employee/models.py:14
|
#: apps/employee/apps.py:8
|
||||||
msgid "Employees"
|
msgid "Employees"
|
||||||
msgstr "Medewerkers"
|
msgstr "Medewerkers"
|
||||||
|
|
||||||
|
#: apps/employee/models.py:13
|
||||||
|
msgid "employee"
|
||||||
|
msgstr "medewerker"
|
||||||
|
|
||||||
|
#: apps/employee/models.py:14
|
||||||
|
msgid "employees"
|
||||||
|
msgstr "medewerkers"
|
||||||
|
|
||||||
#: apps/employee/models.py:16
|
#: apps/employee/models.py:16
|
||||||
msgid "Django user"
|
msgid "Django user"
|
||||||
msgstr "Django gebruiker"
|
msgstr "Django gebruiker"
|
||||||
|
@ -10,8 +10,8 @@ from apps.polyclinic.models import Polyclinic
|
|||||||
class Employee(MetaDataModel):
|
class Employee(MetaDataModel):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _('Employee')
|
verbose_name = _('employee')
|
||||||
verbose_name_plural = _('Employees')
|
verbose_name_plural = _('employees')
|
||||||
|
|
||||||
user = models.OneToOneField(User, on_delete=models.CASCADE, help_text=_('Django user'))
|
user = models.OneToOneField(User, on_delete=models.CASCADE, help_text=_('Django user'))
|
||||||
|
|
||||||
|
@ -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: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\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,14 +18,22 @@ 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"
|
||||||
|
|
||||||
#: apps/hospital/apps.py:7 apps/hospital/models.py:10
|
#: apps/hospital/apps.py:7
|
||||||
msgid "Hospital"
|
msgid "Hospital"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: apps/hospital/apps.py:8 apps/hospital/models.py:11
|
#: apps/hospital/apps.py:8
|
||||||
msgid "Hospitals"
|
msgid "Hospitals"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/hospital/models.py:10
|
||||||
|
msgid "hospital"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/hospital/models.py:11
|
||||||
|
msgid "hospitals"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: apps/hospital/models.py:13
|
#: apps/hospital/models.py:13
|
||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,8 +7,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\n"
|
||||||
"PO-Revision-Date: 2020-05-15 10:20+0200\n"
|
"PO-Revision-Date: 2020-05-15 12:43+0200\n"
|
||||||
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: nl\n"
|
"Language: nl\n"
|
||||||
@ -18,14 +18,22 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: Poedit 2.0.6\n"
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
|
||||||
#: apps/hospital/apps.py:7 apps/hospital/models.py:10
|
#: apps/hospital/apps.py:7
|
||||||
msgid "Hospital"
|
msgid "Hospital"
|
||||||
msgstr "Ziekenhuis"
|
msgstr "Ziekenhuis"
|
||||||
|
|
||||||
#: apps/hospital/apps.py:8 apps/hospital/models.py:11
|
#: apps/hospital/apps.py:8
|
||||||
msgid "Hospitals"
|
msgid "Hospitals"
|
||||||
msgstr "Ziekenhuizen"
|
msgstr "Ziekenhuizen"
|
||||||
|
|
||||||
|
#: apps/hospital/models.py:10
|
||||||
|
msgid "hospital"
|
||||||
|
msgstr "ziekenhuis"
|
||||||
|
|
||||||
|
#: apps/hospital/models.py:11
|
||||||
|
msgid "hospitals"
|
||||||
|
msgstr "ziekenhuizen"
|
||||||
|
|
||||||
#: apps/hospital/models.py:13
|
#: apps/hospital/models.py:13
|
||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr "Naam"
|
msgstr "Naam"
|
||||||
|
@ -7,8 +7,8 @@ from lib.models.base import MetaDataModel
|
|||||||
class Hospital(MetaDataModel):
|
class Hospital(MetaDataModel):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _('Hospital')
|
verbose_name = _('hospital')
|
||||||
verbose_name_plural = _('Hospitals')
|
verbose_name_plural = _('hospitals')
|
||||||
|
|
||||||
name = models.CharField(_('Name'), max_length=200, help_text=_('The name of this hospital'))
|
name = models.CharField(_('Name'), max_length=200, help_text=_('The name of this hospital'))
|
||||||
address = models.CharField(_('Address'), max_length=200, blank=True, help_text=_('The address of this hospital'))
|
address = models.CharField(_('Address'), max_length=200, blank=True, help_text=_('The address of this hospital'))
|
||||||
|
@ -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: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\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,14 +18,22 @@ 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"
|
||||||
|
|
||||||
#: apps/polyclinic/apps.py:7 apps/polyclinic/models.py:11
|
#: apps/polyclinic/apps.py:7
|
||||||
msgid "Polyclinic"
|
msgid "Polyclinic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: apps/polyclinic/apps.py:8 apps/polyclinic/models.py:12
|
#: apps/polyclinic/apps.py:8
|
||||||
msgid "Polyclinics"
|
msgid "Polyclinics"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/polyclinic/models.py:11
|
||||||
|
msgid "polyclinic"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/polyclinic/models.py:12
|
||||||
|
msgid "polyclinics"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: apps/polyclinic/models.py:14
|
#: apps/polyclinic/models.py:14
|
||||||
msgid "To which hospital belongs this polyclinic"
|
msgid "To which hospital belongs this polyclinic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,8 +7,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\n"
|
||||||
"PO-Revision-Date: 2020-05-15 10:20+0200\n"
|
"PO-Revision-Date: 2020-05-15 12:47+0200\n"
|
||||||
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: nl\n"
|
"Language: nl\n"
|
||||||
@ -18,14 +18,22 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: Poedit 2.0.6\n"
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
|
||||||
#: apps/polyclinic/apps.py:7 apps/polyclinic/models.py:11
|
#: apps/polyclinic/apps.py:7
|
||||||
msgid "Polyclinic"
|
msgid "Polyclinic"
|
||||||
msgstr "Polikliniek"
|
msgstr "Polikliniek"
|
||||||
|
|
||||||
#: apps/polyclinic/apps.py:8 apps/polyclinic/models.py:12
|
#: apps/polyclinic/apps.py:8
|
||||||
msgid "Polyclinics"
|
msgid "Polyclinics"
|
||||||
msgstr "Poliklinieken"
|
msgstr "Poliklinieken"
|
||||||
|
|
||||||
|
#: apps/polyclinic/models.py:11
|
||||||
|
msgid "polyclinic"
|
||||||
|
msgstr "polikliniek"
|
||||||
|
|
||||||
|
#: apps/polyclinic/models.py:12
|
||||||
|
msgid "polyclinics"
|
||||||
|
msgstr "poliklinieken"
|
||||||
|
|
||||||
#: apps/polyclinic/models.py:14
|
#: apps/polyclinic/models.py:14
|
||||||
msgid "To which hospital belongs this polyclinic"
|
msgid "To which hospital belongs this polyclinic"
|
||||||
msgstr "Bij welke ziekenhuis hoort deze polikliniek"
|
msgstr "Bij welke ziekenhuis hoort deze polikliniek"
|
||||||
|
@ -8,8 +8,8 @@ from apps.hospital.models import Hospital
|
|||||||
class Polyclinic(MetaDataModel):
|
class Polyclinic(MetaDataModel):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _('Polyclinic')
|
verbose_name = _('polyclinic')
|
||||||
verbose_name_plural = _('Polyclinics')
|
verbose_name_plural = _('polyclinics')
|
||||||
|
|
||||||
hospital = models.ForeignKey(Hospital, on_delete=models.CASCADE, help_text=_('To which hospital belongs this polyclinic'))
|
hospital = models.ForeignKey(Hospital, on_delete=models.CASCADE, help_text=_('To which hospital belongs this polyclinic'))
|
||||||
name = models.CharField(_('Name'), max_length=200, blank=True, help_text=_('The name of this polyclinic'))
|
name = models.CharField(_('Name'), max_length=200, blank=True, help_text=_('The name of this polyclinic'))
|
||||||
|
@ -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: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\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,11 +18,11 @@ 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"
|
||||||
|
|
||||||
#: apps/schedule/apps.py:7 apps/schedule/models.py:14
|
#: apps/schedule/apps.py:7
|
||||||
msgid "Schedule"
|
msgid "Schedule"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: apps/schedule/apps.py:8 apps/schedule/models.py:15
|
#: apps/schedule/apps.py:8
|
||||||
msgid "Schedules"
|
msgid "Schedules"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -42,6 +42,14 @@ msgstr ""
|
|||||||
msgid "When the job is done, the results will be sent to this email address"
|
msgid "When the job is done, the results will be sent to this email address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/schedule/models.py:14
|
||||||
|
msgid "schedule"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: apps/schedule/models.py:15
|
||||||
|
msgid "schedules"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: apps/schedule/models.py:18
|
#: apps/schedule/models.py:18
|
||||||
msgid "Select the employee that is responsible for this schedule request"
|
msgid "Select the employee that is responsible for this schedule request"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,8 +7,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\n"
|
||||||
"PO-Revision-Date: 2020-05-15 10:27+0200\n"
|
"PO-Revision-Date: 2020-05-15 12:47+0200\n"
|
||||||
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: nl\n"
|
"Language: nl\n"
|
||||||
@ -18,11 +18,11 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: Poedit 2.0.6\n"
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
|
||||||
#: apps/schedule/apps.py:7 apps/schedule/models.py:14
|
#: apps/schedule/apps.py:7
|
||||||
msgid "Schedule"
|
msgid "Schedule"
|
||||||
msgstr "Rooster"
|
msgstr "Rooster"
|
||||||
|
|
||||||
#: apps/schedule/apps.py:8 apps/schedule/models.py:15
|
#: apps/schedule/apps.py:8
|
||||||
msgid "Schedules"
|
msgid "Schedules"
|
||||||
msgstr "Roosters"
|
msgstr "Roosters"
|
||||||
|
|
||||||
@ -43,6 +43,14 @@ msgid "When the job is done, the results will be sent to this email address"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Als de klus geklaard is, worden de resultaten naar dit e-mailadres gestuurd"
|
"Als de klus geklaard is, worden de resultaten naar dit e-mailadres gestuurd"
|
||||||
|
|
||||||
|
#: apps/schedule/models.py:14
|
||||||
|
msgid "schedule"
|
||||||
|
msgstr "rooster"
|
||||||
|
|
||||||
|
#: apps/schedule/models.py:15
|
||||||
|
msgid "schedules"
|
||||||
|
msgstr "roosters"
|
||||||
|
|
||||||
#: apps/schedule/models.py:18
|
#: apps/schedule/models.py:18
|
||||||
msgid "Select the employee that is responsible for this schedule request"
|
msgid "Select the employee that is responsible for this schedule request"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -11,8 +11,8 @@ import collections
|
|||||||
class Schedule(MetaDataModel):
|
class Schedule(MetaDataModel):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _('Schedule')
|
verbose_name = _('schedule')
|
||||||
verbose_name_plural = _('Schedules')
|
verbose_name_plural = _('schedules')
|
||||||
|
|
||||||
|
|
||||||
employee = models.ForeignKey(Employee, on_delete=models.CASCADE, help_text=_('Select the employee that is responsible for this schedule request'))
|
employee = models.ForeignKey(Employee, on_delete=models.CASCADE, help_text=_('Select the employee that is responsible for this schedule request'))
|
||||||
|
@ -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: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\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"
|
||||||
@ -34,22 +34,6 @@ msgstr ""
|
|||||||
msgid "The date and time this model has been updated"
|
msgid "The date and time this model has been updated"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: polyclinic_scheduling/settings.py:129
|
|
||||||
msgid "Dutch"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: polyclinic_scheduling/settings.py:130
|
|
||||||
msgid "English"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: polyclinic_scheduling/urls.py:23 polyclinic_scheduling/urls.py:24
|
|
||||||
msgid "University of Groningen Polyclinic planning tool"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: polyclinic_scheduling/urls.py:25
|
|
||||||
msgid "Polyclinic planning tool"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: templates/menu.html:4
|
#: templates/menu.html:4
|
||||||
msgid "Menu"
|
msgid "Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-05-15 08:29+0000\n"
|
"POT-Creation-Date: 2020-05-15 10:51+0000\n"
|
||||||
"PO-Revision-Date: 2020-05-15 10:22+0200\n"
|
"PO-Revision-Date: 2020-05-15 10:22+0200\n"
|
||||||
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -34,22 +34,6 @@ msgstr "Datum bijwerking"
|
|||||||
msgid "The date and time this model has been updated"
|
msgid "The date and time this model has been updated"
|
||||||
msgstr "De datum en tijd waarop dit model is bijgewerkt"
|
msgstr "De datum en tijd waarop dit model is bijgewerkt"
|
||||||
|
|
||||||
#: polyclinic_scheduling/settings.py:129
|
|
||||||
msgid "Dutch"
|
|
||||||
msgstr "Nederlands"
|
|
||||||
|
|
||||||
#: polyclinic_scheduling/settings.py:130
|
|
||||||
msgid "English"
|
|
||||||
msgstr "Engels"
|
|
||||||
|
|
||||||
#: polyclinic_scheduling/urls.py:23 polyclinic_scheduling/urls.py:24
|
|
||||||
msgid "University of Groningen Polyclinic planning tool"
|
|
||||||
msgstr "RUG Poliklinieken planning tool"
|
|
||||||
|
|
||||||
#: polyclinic_scheduling/urls.py:25
|
|
||||||
msgid "Polyclinic planning tool"
|
|
||||||
msgstr "Poliklinieken planning tool"
|
|
||||||
|
|
||||||
#: templates/menu.html:4
|
#: templates/menu.html:4
|
||||||
msgid "Menu"
|
msgid "Menu"
|
||||||
msgstr "Menu"
|
msgstr "Menu"
|
||||||
@ -73,3 +57,15 @@ msgstr "Aanmelden"
|
|||||||
#: templates/singup.html:10
|
#: templates/singup.html:10
|
||||||
msgid "Please contact x@y.z"
|
msgid "Please contact x@y.z"
|
||||||
msgstr "Neem contact o met x@y.z"
|
msgstr "Neem contact o met x@y.z"
|
||||||
|
|
||||||
|
#~ msgid "Dutch"
|
||||||
|
#~ msgstr "Nederlands"
|
||||||
|
|
||||||
|
#~ msgid "English"
|
||||||
|
#~ msgstr "Engels"
|
||||||
|
|
||||||
|
#~ msgid "University of Groningen Polyclinic planning tool"
|
||||||
|
#~ msgstr "RUG Poliklinieken planning tool"
|
||||||
|
|
||||||
|
#~ msgid "Polyclinic planning tool"
|
||||||
|
#~ msgstr "Poliklinieken planning tool"
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2020-05-15 10:51+0000\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"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: polyclinic_scheduling/settings.py:129
|
||||||
|
msgid "Dutch"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: polyclinic_scheduling/settings.py:130
|
||||||
|
msgid "English"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: polyclinic_scheduling/urls.py:22 polyclinic_scheduling/urls.py:23
|
||||||
|
msgid "University of Groningen Polyclinic planning tool"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: polyclinic_scheduling/urls.py:24
|
||||||
|
msgid "Polyclinic planning tool"
|
||||||
|
msgstr ""
|
@ -0,0 +1,35 @@
|
|||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: \n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2020-05-15 10:51+0000\n"
|
||||||
|
"PO-Revision-Date: 2020-05-15 12:49+0200\n"
|
||||||
|
"Last-Translator: Joshua Rubingh <j.g.rubingh@rug.nl>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"Language: nl\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
"X-Generator: Poedit 2.0.6\n"
|
||||||
|
|
||||||
|
#: polyclinic_scheduling/settings.py:129
|
||||||
|
msgid "Dutch"
|
||||||
|
msgstr "Nederlands"
|
||||||
|
|
||||||
|
#: polyclinic_scheduling/settings.py:130
|
||||||
|
msgid "English"
|
||||||
|
msgstr "Engels"
|
||||||
|
|
||||||
|
#: polyclinic_scheduling/urls.py:22 polyclinic_scheduling/urls.py:23
|
||||||
|
msgid "University of Groningen Polyclinic planning tool"
|
||||||
|
msgstr "RUG Poliklinieken planning tool"
|
||||||
|
|
||||||
|
#: polyclinic_scheduling/urls.py:24
|
||||||
|
msgid "Polyclinic planning tool"
|
||||||
|
msgstr "Poliklinieken planning tool"
|
@ -17,7 +17,6 @@ from django.conf import settings
|
|||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import include, path
|
from django.urls import include, path
|
||||||
from django.conf.urls.static import static
|
from django.conf.urls.static import static
|
||||||
from django.conf.urls.i18n import i18n_patterns
|
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
admin.site.index_title = _('University of Groningen Polyclinic planning tool')
|
admin.site.index_title = _('University of Groningen Polyclinic planning tool')
|
||||||
@ -27,17 +26,12 @@ admin.site.site_title = _('Polyclinic planning tool')
|
|||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('i18n/', include('django.conf.urls.i18n')),
|
path('i18n/', include('django.conf.urls.i18n')),
|
||||||
path('accounts/', include('django.contrib.auth.urls')),
|
path('accounts/', include('django.contrib.auth.urls')),
|
||||||
|
path('admin/', admin.site.urls),
|
||||||
|
|
||||||
path('', include('apps.RUG_template.urls')),
|
path('', include('apps.RUG_template.urls')),
|
||||||
path('schedule/', include('apps.schedule.urls')),
|
path('schedule/', include('apps.schedule.urls')),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Use language prefix option for admin translations
|
|
||||||
urlpatterns += i18n_patterns (
|
|
||||||
path('admin/', admin.site.urls),
|
|
||||||
prefix_default_language=False
|
|
||||||
)
|
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
import debug_toolbar
|
import debug_toolbar
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
Loading…
Reference in New Issue
Block a user