Update translations
This commit is contained in:
@ -0,0 +1,178 @@
|
||||
# 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 08:29+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"
|
||||
|
||||
#: apps/RUG_template/apps.py:7 apps/RUG_template/apps.py:8
|
||||
msgid "RUG_template"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/admin/base_site.html:21
|
||||
msgid "Language"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/admin/base_site.html:28
|
||||
msgid "Documentation"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/admin/base_site.html:32
|
||||
msgid "Change password"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/admin/base_site.html:34
|
||||
msgid "Log out"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/base.html:7
|
||||
msgid "Welcome at RUG"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/base.html:85
|
||||
msgid "Language selection"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/index.html:4
|
||||
#: apps/RUG_template/templates/index.html:5
|
||||
msgid "Welcome to the RUG Template page"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/index.html:7
|
||||
msgid "Simple RUG Template"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/index.html:8
|
||||
msgid "Some more text"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/menu.html:4
|
||||
msgid "Section"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/menu.html:7
|
||||
msgid "Menu item"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/pager.html:13
|
||||
msgid "previous"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/pager.html:21
|
||||
msgid "next"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/login.html:4
|
||||
#: apps/RUG_template/templates/registration/login.html:5
|
||||
#: apps/RUG_template/templates/registration/login.html:8
|
||||
#: apps/RUG_template/templates/registration/login.html:18
|
||||
msgid "Login"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/login.html:10
|
||||
msgid ""
|
||||
"You can login here to create your schedules. If you do not have a login, "
|
||||
"please contact: some_one@rug.nl"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/login.html:24
|
||||
msgid "Lost password?"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_complete.html:4
|
||||
#: apps/RUG_template/templates/registration/password_reset_complete.html:5
|
||||
#: apps/RUG_template/templates/registration/password_reset_complete.html:7
|
||||
msgid "Password reset complete"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_complete.html:9
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Your new password has been set. You can log in now on the <a href="
|
||||
"\"%(login_url)s\">log in page</a>."
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:4
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:5
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:7
|
||||
msgid "Set a new password!"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:9
|
||||
msgid "Here you can set a new password."
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:17
|
||||
msgid "Change my password"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:23
|
||||
msgid ""
|
||||
"The password reset link was invalid, possibly because it has already been "
|
||||
"used. Please request a new password reset."
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_done.html:4
|
||||
#: apps/RUG_template/templates/registration/password_reset_done.html:5
|
||||
#: apps/RUG_template/templates/registration/password_reset_done.html:8
|
||||
msgid "Reset password, email sent"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_done.html:11
|
||||
msgid ""
|
||||
"We've emailed you instructions for setting your password. You should receive "
|
||||
"the email shortly!"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_email.html:6
|
||||
#, python-format
|
||||
msgid ""
|
||||
"You're receiving this email because you requested a password reset for your "
|
||||
"user account at %(site_name)s.\n"
|
||||
"\n"
|
||||
"Please go to the following page and choose a new password:\n"
|
||||
"\n"
|
||||
"%(protocol)s://%(domain)s%(reset_url)s\n"
|
||||
"\n"
|
||||
"Your username, in case you’ve forgotten: %(user)s\n"
|
||||
"\n"
|
||||
"Thanks for using our site!\n"
|
||||
"\n"
|
||||
"The %(site_name)s team"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:4
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:5
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:8
|
||||
msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:10
|
||||
msgid ""
|
||||
"Here you can request a password reset. Please enter your email address that "
|
||||
"is used for registration."
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:17
|
||||
msgid "Reset my password"
|
||||
msgstr ""
|
||||
|
||||
#: apps/RUG_template/templates/singup.html:4
|
||||
#: apps/RUG_template/templates/singup.html:5
|
||||
#: apps/RUG_template/templates/singup.html:7
|
||||
#: apps/RUG_template/templates/singup.html:14
|
||||
msgid "Singup"
|
||||
msgstr ""
|
@ -0,0 +1,203 @@
|
||||
# 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 08:29+0000\n"
|
||||
"PO-Revision-Date: 2020-05-15 10:20+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"
|
||||
|
||||
#: apps/RUG_template/apps.py:7 apps/RUG_template/apps.py:8
|
||||
msgid "RUG_template"
|
||||
msgstr "RUG_template"
|
||||
|
||||
#: apps/RUG_template/templates/admin/base_site.html:21
|
||||
msgid "Language"
|
||||
msgstr "Taal"
|
||||
|
||||
#: apps/RUG_template/templates/admin/base_site.html:28
|
||||
msgid "Documentation"
|
||||
msgstr "Documentatie"
|
||||
|
||||
#: apps/RUG_template/templates/admin/base_site.html:32
|
||||
msgid "Change password"
|
||||
msgstr "Verander wachtwoord"
|
||||
|
||||
#: apps/RUG_template/templates/admin/base_site.html:34
|
||||
msgid "Log out"
|
||||
msgstr "Logouit"
|
||||
|
||||
#: apps/RUG_template/templates/base.html:7
|
||||
msgid "Welcome at RUG"
|
||||
msgstr "Welkom bij de RUG"
|
||||
|
||||
#: apps/RUG_template/templates/base.html:85
|
||||
msgid "Language selection"
|
||||
msgstr "Taal keuze"
|
||||
|
||||
#: apps/RUG_template/templates/index.html:4
|
||||
#: apps/RUG_template/templates/index.html:5
|
||||
msgid "Welcome to the RUG Template page"
|
||||
msgstr "Welkom bij de RUG Template pagina"
|
||||
|
||||
#: apps/RUG_template/templates/index.html:7
|
||||
msgid "Simple RUG Template"
|
||||
msgstr "Simpel RUG Template"
|
||||
|
||||
#: apps/RUG_template/templates/index.html:8
|
||||
msgid "Some more text"
|
||||
msgstr "Nog wat tekst"
|
||||
|
||||
#: apps/RUG_template/templates/menu.html:4
|
||||
msgid "Section"
|
||||
msgstr "Sectie"
|
||||
|
||||
#: apps/RUG_template/templates/menu.html:7
|
||||
msgid "Menu item"
|
||||
msgstr "Menu item"
|
||||
|
||||
#: apps/RUG_template/templates/pager.html:13
|
||||
msgid "previous"
|
||||
msgstr "vorige"
|
||||
|
||||
#: apps/RUG_template/templates/pager.html:21
|
||||
msgid "next"
|
||||
msgstr "volgende"
|
||||
|
||||
#: apps/RUG_template/templates/registration/login.html:4
|
||||
#: apps/RUG_template/templates/registration/login.html:5
|
||||
#: apps/RUG_template/templates/registration/login.html:8
|
||||
#: apps/RUG_template/templates/registration/login.html:18
|
||||
msgid "Login"
|
||||
msgstr "Login"
|
||||
|
||||
#: apps/RUG_template/templates/registration/login.html:10
|
||||
msgid ""
|
||||
"You can login here to create your schedules. If you do not have a login, "
|
||||
"please contact: some_one@rug.nl"
|
||||
msgstr ""
|
||||
"Hier kunt u inloggen om nieuwe roosters te maken. Als je geen login hebt "
|
||||
"neem dan contact op met iemand@rug.nl"
|
||||
|
||||
#: apps/RUG_template/templates/registration/login.html:24
|
||||
msgid "Lost password?"
|
||||
msgstr "Wachtwoord kwijt?"
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_complete.html:4
|
||||
#: apps/RUG_template/templates/registration/password_reset_complete.html:5
|
||||
#: apps/RUG_template/templates/registration/password_reset_complete.html:7
|
||||
msgid "Password reset complete"
|
||||
msgstr "Wachtwoord reset is kompleet"
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_complete.html:9
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Your new password has been set. You can log in now on the <a href="
|
||||
"\"%(login_url)s\">log in page</a>."
|
||||
msgstr ""
|
||||
"Je nieuwe wachtwoord is ingesteld. Je kunt nu inloggen via de <a href="
|
||||
"\"%(login_url)s\">inlog pagina</a>."
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:4
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:5
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:7
|
||||
msgid "Set a new password!"
|
||||
msgstr "Stel een nieuw wachtwoord in!"
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:9
|
||||
msgid "Here you can set a new password."
|
||||
msgstr "Hier kun je een nieuw wachtwoord instellen."
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:17
|
||||
msgid "Change my password"
|
||||
msgstr "Verander mijn wachtwoord"
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_confirm.html:23
|
||||
msgid ""
|
||||
"The password reset link was invalid, possibly because it has already been "
|
||||
"used. Please request a new password reset."
|
||||
msgstr ""
|
||||
"De link voor het opnieuw instellen van het wachtwoord was ongeldig, mogelijk "
|
||||
"omdat deze al is gebruikt. Vraag een nieuwe reset van het wachtwoord aan."
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_done.html:4
|
||||
#: apps/RUG_template/templates/registration/password_reset_done.html:5
|
||||
#: apps/RUG_template/templates/registration/password_reset_done.html:8
|
||||
msgid "Reset password, email sent"
|
||||
msgstr "Wachtwoord is gereset, email is verstuurd"
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_done.html:11
|
||||
msgid ""
|
||||
"We've emailed you instructions for setting your password. You should receive "
|
||||
"the email shortly!"
|
||||
msgstr ""
|
||||
"We hebben u een e-mail gestuurd met instructies voor het instellen van uw "
|
||||
"wachtwoord. U ontvangt de e-mail binnenkort!"
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_email.html:6
|
||||
#, python-format
|
||||
msgid ""
|
||||
"You're receiving this email because you requested a password reset for your "
|
||||
"user account at %(site_name)s.\n"
|
||||
"\n"
|
||||
"Please go to the following page and choose a new password:\n"
|
||||
"\n"
|
||||
"%(protocol)s://%(domain)s%(reset_url)s\n"
|
||||
"\n"
|
||||
"Your username, in case you’ve forgotten: %(user)s\n"
|
||||
"\n"
|
||||
"Thanks for using our site!\n"
|
||||
"\n"
|
||||
"The %(site_name)s team"
|
||||
msgstr ""
|
||||
"Je ontvangt deze e-mail omdat je een wachtwoord reset hebt aangevraagd voor "
|
||||
"je gebruikersaccount op%(site_name)s.\n"
|
||||
"\n"
|
||||
"Ga naar de volgende pagina en kies een nieuw wachtwoord:\n"
|
||||
"\n"
|
||||
"%(protocol)s://%(domain)s%(reset_url)s\n"
|
||||
"\n"
|
||||
"Uw gebruikersnaam, voor het geval u het bent vergeten:%(user)s\n"
|
||||
"\n"
|
||||
"Bedankt voor het gebruiken van onze site!\n"
|
||||
"\n"
|
||||
"Het team van %(site_name)s"
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:4
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:5
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:8
|
||||
msgid "Reset password"
|
||||
msgstr "Reset wachtwoord"
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:10
|
||||
msgid ""
|
||||
"Here you can request a password reset. Please enter your email address that "
|
||||
"is used for registration."
|
||||
msgstr ""
|
||||
"Hier kunt u een wachtwoord reset aanvragen. Voer uw e-mailadres in dat wordt "
|
||||
"gebruikt voor registratie."
|
||||
|
||||
#: apps/RUG_template/templates/registration/password_reset_form.html:17
|
||||
msgid "Reset my password"
|
||||
msgstr "Reset mijn wachtwoord"
|
||||
|
||||
#: apps/RUG_template/templates/singup.html:4
|
||||
#: apps/RUG_template/templates/singup.html:5
|
||||
#: apps/RUG_template/templates/singup.html:7
|
||||
#: apps/RUG_template/templates/singup.html:14
|
||||
msgid "Singup"
|
||||
msgstr "Opgeven"
|
||||
|
||||
#~ msgid "Password reset"
|
||||
#~ msgstr "Wachtwoord reset"
|
@ -0,0 +1,4 @@
|
||||
img.i18n_flag {
|
||||
width: 16px;
|
||||
vertical-align: text-top;
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 124 B |
@ -0,0 +1,35 @@
|
||||
{% extends "admin/base_site.html" %}
|
||||
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
<!-- custom filter module -->
|
||||
{% load i18n_switcher %}
|
||||
|
||||
{% block extrahead %}
|
||||
<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' %}"/>
|
||||
{% endblock %}
|
||||
|
||||
{% block userlinks %}
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{% get_available_languages as LANGUAGES %}
|
||||
{% get_language_info_list for LANGUAGES as languages %}
|
||||
{% for language in languages %}
|
||||
<a href="{{ request|switch_i18n:language.code}}">
|
||||
{% 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> /
|
||||
{% endfor %}
|
||||
{% if user.is_active and user.is_staff %}
|
||||
{% url 'django-admindocs-docroot' as docsroot %}
|
||||
{% if docsroot %}
|
||||
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if user.has_usable_password %}
|
||||
<a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
|
||||
{% endif %}
|
||||
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
|
||||
{% endblock %}
|
@ -7,9 +7,7 @@
|
||||
<p>
|
||||
<strong>{% trans "Login" %}</strong>
|
||||
<br />
|
||||
{% blocktrans %}
|
||||
You can login here to create your schedules. If you do not have a login, please contact: some_one@rug.nl
|
||||
{% endblocktrans %}
|
||||
{% blocktrans %}You can login here to create your schedules. If you do not have a login, please contact: some_one@rug.nl{% endblocktrans %}
|
||||
</p>
|
||||
<form method="post" action="{% url 'login' %}">
|
||||
{% csrf_token %}
|
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,41 @@
|
||||
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)
|
Reference in New Issue
Block a user