Skip to content

Commit

Permalink
Fixed some translation errors and added flag to language button (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
njal3001 committed Mar 21, 2023
1 parent 829884b commit 193ca6c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 115 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ env/
venv/
.vscode/
**/__pycache__

/static/

*.html.py
Expand Down
60 changes: 1 addition & 59 deletions website/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
# 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: 2023-03-21 19:54+0100\n"
"POT-Creation-Date: 2023-03-21 19:59+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -101,60 +100,3 @@ msgstr "Recent news"
#: templates/website/index.html:90
msgid "Siste arrangementer"
msgstr "Recent events"

#, fuzzy
#~| msgid "creator-header"
#~ msgid "arena-text"
#~ msgstr ""
#~ "Hackerspace offers an arena for projects, whether it's IoT gadgets,"
#~ "software, 3D printing, or other cool stuff."

#, fuzzy
#~| msgid "creator-header"
#~ msgid "creator-text"
#~ msgstr ""
#~ "We have the necessary equipment, premises and knowledge to assist in your "
#~ "next project."

#~ msgid "curious-text"
#~ msgstr ""
#~ "Whether you just want to test it out, or are a veteran of VR-development, "
#~ "we have both equipment and expertise in Virtual Reality onHackerspace."

#~ msgid "who1"
#~ msgstr ""
#~ "Hackerspace NTNU is a student-run project open to all students regardless "
#~ "of field of study."

#~ msgid "who2"
#~ msgstr ""
#~ "With us you will find new technology at your disposal, including drones, "
#~ "3D-printers and Virtual Reality equipment."

#~ msgid "who3"
#~ msgstr ""
#~ "Whether you want to make an LED light flash or make a 3D model of "
#~ "itTrondheim, the members of Hackerspace can offer varied and good "
#~ "expertise andhelp you with that, regardless of your Hackerspace "
#~ "membership."

#~ msgid "who4"
#~ msgstr ""
#~ "If you're wondering about something, have a project you want help with, "
#~ "or just want to comeby for a chat, we warmly welcome you"

#~ msgid "og"
#~ msgstr "and"

#~ msgid "who5"
#~ msgstr ""
#~ "The on-call system ensures that you always meet someone in the workshop "
#~ "ready todemonstrate equipment or help you."

#~ msgid " og "
#~ msgstr " and "

#, fuzzy
#~| msgid "creator-header"
#~ msgid "who-header"
#~ msgstr "Are you a creator?"
53 changes: 1 addition & 52 deletions website/locale/nb/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-21 19:54+0100\n"
"POT-Creation-Date: 2023-03-21 19:59+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -101,54 +101,3 @@ msgstr ""
#: templates/website/index.html:90
msgid "Siste arrangementer"
msgstr ""

#, fuzzy
#~| msgid "creator-header"
#~ msgid "arena-text"
#~ msgstr ""
#~ "Hackerspace tilbyr en arena for prosjekter, enten det er IoT-dingser, "
#~ "programvare, 3D-printing, eller andre kule ting."

#, fuzzy
#~| msgid "creator-header"
#~ msgid "creator-text"
#~ msgstr ""
#~ "Vi disponerer nødvendig utstyr, lokaler og ikke minst kunnskap for å "
#~ "bistå i ditt neste prosjekt."

#~ msgid "curious-text"
#~ msgstr ""
#~ "Uansett om du bare har lyst til å teste det ut, eller er en veteran på VR-"
#~ "utvikling, har vi både utstyr og kompetanse innenfor Virtual Reality på "
#~ "Hackerspace."

#~ msgid "who1"
#~ msgstr ""
#~ "Hackerspace NTNU er et studentdrevet prosjekt fra IDI og er åpent for "
#~ "alle studenter uavhengig av studieretning."

#~ msgid "who2"
#~ msgstr ""
#~ "Hos oss finner du ny teknologi til din disposisjon, blant annet 3D-"
#~ "printere og Virtual Reality-utstyr."

#~ msgid "who3"
#~ msgstr ""
#~ "Enten du ønsker å få en LED-lampe til å blinke eller lage en 3D-modell av "
#~ "Trondheim, kan medlemmene i Hackerspace tilby variert og god kompetanse "
#~ "og hjelpe deg med det, uavhengig av ditt medlemsskap i Hackerspace."

#~ msgid "who4"
#~ msgstr ""
#~ "Om du lurer på noe, har et prosjekt du ønsker hjelp med, eller bare vil "
#~ "slå av en prat, tar vi deg varmt imot på"

#~ msgid "who5"
#~ msgstr ""
#~ "Vaktordningen sørger for at du alltid møter noen på verkstedet klare til "
#~ "å demonstrere utstyr eller hjelpe deg."

#, fuzzy
#~| msgid "creator-header"
#~ msgid "who-header"
#~ msgstr "Hvem er vi?"
Binary file added website/static/website/img/icon/GB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/website/img/icon/NO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion website/templates/website/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
{% else %}
<li><a class="dropdown-trigger-user" href="{% url 'social:begin' 'dataporten_feide' %}?next={{ request.path }}" data-target="userdropdown"><i class="material-icons">account_circle</i></a> </li>
{% endif %}
<li>
{% include "website/lang_toggle.html" with style="margin: 3px 10px"%}
</li>
</ul>
<!-- Mobil dynamisk meny -->
<ul class="sidenav" id="mobile-sidebar">
Expand Down Expand Up @@ -230,7 +233,6 @@
</ul>

</div>
{% include "website/lang_toggle.html" %}
</div>
</nav>
</div>
Expand Down
11 changes: 9 additions & 2 deletions website/templates/website/lang_toggle.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% load i18n %}
{% load static %}

<form action="{% url 'set_language' %}" method="post">{% csrf_token %}
<form action="{% url 'set_language' %}" method="post" style="{{ style }}">{% csrf_token %}
{% get_current_language as LANGUAGE_CODE %}
<input name="next" type="hidden" value="{{ redirect_to }}">
<input name="language" type="hidden"
Expand All @@ -11,5 +12,11 @@
"nb"
{% endif %}
>
<input type="submit" value={{ LANGUAGE_CODE }}>
<input type="image" src=
{% if LANGUAGE_CODE == "nb" %}
"{% static 'website/img/icon/GB.png' %}"
{% else %}
"{% static 'website/img/icon/NO.png' %}"
{% endif %}
>
</form>

0 comments on commit 193ca6c

Please sign in to comment.