Add language selection to footer
This commit is contained in:
Binary file not shown.
@@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-10-17 18:49+0300\n"
|
||||
"POT-Creation-Date: 2017-10-17 19:55+0300\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"
|
||||
@@ -538,7 +538,7 @@ msgstr "Missing \"textfield\" POST request field"
|
||||
msgid "Go"
|
||||
msgstr ""
|
||||
|
||||
#: templates/footer.html:7
|
||||
#: templates/footer.html:22
|
||||
msgid "Copyright Aalto-yliopiston Sähköinsinöörikilta ry"
|
||||
msgstr "Copyright Aalto-yliopiston Sähköinsinöörikilta ry"
|
||||
|
||||
@@ -837,9 +837,12 @@ msgid ""
|
||||
"henkilöön."
|
||||
msgstr ""
|
||||
"Express your interest in the guild for the next year.\n"
|
||||
"This list contains both board and non-board positions, categorized by area of responsibility.\n"
|
||||
"If you have anything to ask about the positions, seek out people who have held that position before or contact the board.\n"
|
||||
"Best positions to consider for English speaking people are in the International category."
|
||||
"This list contains both board and non-board positions, categorized by area "
|
||||
"of responsibility.\n"
|
||||
"If you have anything to ask about the positions, seek out people who have "
|
||||
"held that position before or contact the board.\n"
|
||||
"Best positions to consider for English speaking people are in the "
|
||||
"International category."
|
||||
|
||||
#: webapp/templates/kaehmy.html:23
|
||||
msgid ""
|
||||
@@ -847,7 +850,8 @@ msgid ""
|
||||
" eikä siis missään nimessä sitova ilmoittautumien mihinkään "
|
||||
"tehtävään!"
|
||||
msgstr ""
|
||||
"Note, that sending an application is not binding and should be considered as a gesture of interest."
|
||||
"Note, that sending an application is not binding and should be considered as "
|
||||
"a gesture of interest."
|
||||
|
||||
#: webapp/templates/kaehmy.html:26
|
||||
msgid "Päivämääriä & deadlineja"
|
||||
@@ -908,7 +912,7 @@ msgstr ""
|
||||
|
||||
#: webapp/templates/kaehmy_navigation.html:6
|
||||
msgid "List kaehmys"
|
||||
msgstr "List applications:"
|
||||
msgstr "List applications"
|
||||
|
||||
#: webapp/templates/kaehmy_navigation.html:7
|
||||
msgid "New kaehmy"
|
||||
|
||||
Binary file not shown.
@@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-10-17 18:49+0300\n"
|
||||
"POT-Creation-Date: 2017-10-17 19:55+0300\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"
|
||||
@@ -539,7 +539,7 @@ msgstr "Puuttuva \"textfield\" POST-kenttä"
|
||||
msgid "Go"
|
||||
msgstr "Vaihda"
|
||||
|
||||
#: templates/footer.html:7
|
||||
#: templates/footer.html:22
|
||||
msgid "Copyright Aalto-yliopiston Sähköinsinöörikilta ry"
|
||||
msgstr "Copyright Aalto-yliopiston Sähköinsinöörikilta ry"
|
||||
|
||||
|
||||
@@ -23,3 +23,8 @@
|
||||
margin-left: 1vh;
|
||||
margin-right: 1vh;
|
||||
}
|
||||
|
||||
.lang-select {
|
||||
width: 10rem;
|
||||
display: inline-block;
|
||||
}
|
||||
+16
-1
@@ -4,6 +4,21 @@
|
||||
<link rel="stylesheet" href="{% static "css/footer.css" %}">
|
||||
<div class="footer">
|
||||
<div>
|
||||
{% trans "Copyright Aalto-yliopiston Sähköinsinöörikilta ry" %} {% now 'Y' %}
|
||||
<form style="margin-left: auto; margin-right: auto" class="form" action="{% url 'set_language' %}" method="post">{% csrf_token %}
|
||||
<span>
|
||||
<input name="next" type="hidden" value="{{ redirect_to }}" />
|
||||
<select onchange="this.form.submit()" class="lang-select form-control" name="language">
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{% get_available_languages as LANGUAGES %}
|
||||
{% get_language_info_list for LANGUAGES as languages %}
|
||||
{% for language in languages %}
|
||||
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>
|
||||
{{ language.name_local }} ({{ language.code }})
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</span>
|
||||
</form>
|
||||
{% trans "Copyright Aalto-yliopiston Sähköinsinöörikilta ry" %} {% now 'Y' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -44,6 +44,8 @@
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% include "footer.html" %}
|
||||
{% block footer %}
|
||||
{% include "footer.html" %}
|
||||
{% endblock footer %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -90,4 +90,4 @@
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
{% endblock content %}
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user