Skip to content

Commit

Permalink
Translation of header (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
njal3001 committed Mar 21, 2023
1 parent 193ca6c commit 2b402e1
Show file tree
Hide file tree
Showing 4 changed files with 187 additions and 36 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ venv/
*.html.py
*.txt.py
*.mo
*.html.py
*.txt.py
76 changes: 75 additions & 1 deletion website/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-21 19:59+0100\n"
"POT-Creation-Date: 2023-03-21 20:13+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 All @@ -17,6 +17,78 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: templates/website/header.html:30 templates/website/header.html:91
msgid "Nyheter"
msgstr "News"

#: templates/website/header.html:31 templates/website/header.html:96
msgid "Arrangementer"
msgstr "Events"

#: templates/website/header.html:32
msgid "Søk i hele siden"
msgstr ""

#: templates/website/header.html:81
msgid "Hjem"
msgstr "Home"

#: templates/website/header.html:86
msgid "Søk"
msgstr ""

#: templates/website/header.html:101 templates/website/header.html:185
msgid "Kart"
msgstr "Map"

#: templates/website/header.html:106 templates/website/header.html:190
msgid "Medlemmer"
msgstr "Members"

#: templates/website/header.html:111 templates/website/header.html:195
msgid "Vaktliste"
msgstr "Roster"

#: templates/website/header.html:116 templates/website/header.html:200
msgid "Lager"
msgstr "Storage"

#: templates/website/header.html:121 templates/website/header.html:205
msgid "Reservasjoner"
msgstr "Reservations"

#: templates/website/header.html:126 templates/website/header.html:210
msgid "Regler"
msgstr "Rules"

#: templates/website/header.html:131 templates/website/header.html:215
msgid "Opptak"
msgstr "Admission"

#: templates/website/header.html:136 templates/website/header.html:220
msgid "Prosjektarkiv"
msgstr "Project archive"

#: templates/website/header.html:141 templates/website/header.html:225
msgid "Om oss"
msgstr "About us"

#: templates/website/header.html:147 templates/website/header.html:231
msgid "Internportal"
msgstr "Internal portal"

#: templates/website/header.html:156 templates/website/header.html:173
msgid "Logg ut"
msgstr "Sign out"

#: templates/website/header.html:162 templates/website/header.html:177
msgid "Logg inn"
msgstr "Sign in"

#: templates/website/header.html:170
msgid "Profil"
msgstr "Profile"

#: templates/website/index.html:24
msgid "Har du en skaper i magen?"
msgstr "Are you a creator?"
Expand All @@ -37,6 +109,8 @@ msgid ""
"utvikling, har vi både utstyr og kompetanse innenfor Virtual Reality på "
"Hackerspace."
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 on Hackerspace."

#: templates/website/index.html:38
msgid "Kreativt, innovativt og ikke minst sosialt"
Expand Down
74 changes: 73 additions & 1 deletion 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:59+0100\n"
"POT-Creation-Date: 2023-03-21 20:13+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 All @@ -18,6 +18,78 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: templates/website/header.html:30 templates/website/header.html:91
msgid "Nyheter"
msgstr ""

#: templates/website/header.html:31 templates/website/header.html:96
msgid "Arrangementer"
msgstr ""

#: templates/website/header.html:32
msgid "Søk i hele siden"
msgstr ""

#: templates/website/header.html:81
msgid "Hjem"
msgstr ""

#: templates/website/header.html:86
msgid "Søk"
msgstr ""

#: templates/website/header.html:101 templates/website/header.html:185
msgid "Kart"
msgstr ""

#: templates/website/header.html:106 templates/website/header.html:190
msgid "Medlemmer"
msgstr ""

#: templates/website/header.html:111 templates/website/header.html:195
msgid "Vaktliste"
msgstr ""

#: templates/website/header.html:116 templates/website/header.html:200
msgid "Lager"
msgstr ""

#: templates/website/header.html:121 templates/website/header.html:205
msgid "Reservasjoner"
msgstr ""

#: templates/website/header.html:126 templates/website/header.html:210
msgid "Regler"
msgstr ""

#: templates/website/header.html:131 templates/website/header.html:215
msgid "Opptak"
msgstr ""

#: templates/website/header.html:136 templates/website/header.html:220
msgid "Prosjektarkiv"
msgstr ""

#: templates/website/header.html:141 templates/website/header.html:225
msgid "Om oss"
msgstr ""

#: templates/website/header.html:147 templates/website/header.html:231
msgid "Internportal"
msgstr ""

#: templates/website/header.html:156 templates/website/header.html:173
msgid "Logg ut"
msgstr ""

#: templates/website/header.html:162 templates/website/header.html:177
msgid "Logg inn"
msgstr ""

#: templates/website/header.html:170
msgid "Profil"
msgstr ""

#: templates/website/index.html:24
msgid "Har du en skaper i magen?"
msgstr ""
Expand Down
71 changes: 37 additions & 34 deletions website/templates/website/header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% load static %}
{% load i18n %}
{% if request.user.is_authenticated and not request.user.profile.has_accepted_most_recent_tos %}
<!-- Checks if path should display TOS prompt. Slice check disables TOS display for all tos-related pages -->
{% if request.path != "/tos/returning-user/" and request.path|slice:":5" != "/tos/" %}
Expand Down Expand Up @@ -26,9 +27,9 @@
</a>
<!-- Hovedmeny -->
<ul class="right hide-on-med-and-down">
<li id="news"><a class="waves-effect" href="{% url 'news:all' %}">Nyheter</a></li>
<li id="events"><a class="waves-effect" href="{% url 'events:all' %}">Arrangementer</a></li>
<li id="search" class="tooltipped" data-position="bottom" data-tooltip="Søk i hele siden">
<li id="news"><a class="waves-effect" href="{% url 'news:all' %}">{% trans "Nyheter" %}</a></li>
<li id="events"><a class="waves-effect" href="{% url 'events:all' %}">{% trans "Arrangementer" %}</a></li>
<li id="search" class="tooltipped" data-position="bottom" data-tooltip="{% trans "Søk i hele siden" %}">
<a class="waves-effect" href="{% url 'search' %}"><i class="material-icons">search</i></a>
</li>
<li id="resources"><a class="trigger-resources" href="#" data-target="resourcedropdown"><i class="material-icons">apps</i></a></li>
Expand Down Expand Up @@ -77,73 +78,73 @@
</li>
<li>
<a class="waves-effect" href="/">
<i class="material-icons">home</i>Hjem
<i class="material-icons">home</i>{% trans "Hjem" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'search' %}">
<i class="material-icons small">search</i>Søk
<i class="material-icons small">search</i>{% trans "Søk" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'news:all' %}">
<i class="material-icons small">newspaper</i>Nyheter
<i class="material-icons small">newspaper</i>{% trans "Nyheter" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'events:all' %}">
<i class="material-icons small">event</i>Arrangementer
<i class="material-icons small">event</i>{% trans "Arrangementer" %}
</a>
</li>
<li>
<a class="waves-effect" target="_blank" href="{{ mazemap_link }}">
<i class="material-icons small">map</i>Kart
<i class="material-icons small">map</i>{% trans "Kart" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'member-list' %}">
<i class="material-icons small">groups</i>Medlemmer
<i class="material-icons small">groups</i>{% trans "Medlemmer" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'watchlist:vaktliste' %}">
<i class="material-icons small">free_breakfast</i>Vaktliste
<i class="material-icons small">free_breakfast</i>{% trans "Vaktliste" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'inventory:inventory' %}">
<i class="material-icons">inbox</i>Lager
<i class="material-icons">inbox</i>{% trans "Lager" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'reservations:queue_list' %}">
<i class="material-icons">calendar_month</i>Reservasjoner
<i class="material-icons">calendar_month</i>{% trans "Reservasjoner" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'rules' %}">
<i class="material-icons">gavel</i>Regler
<i class="material-icons">gavel</i>{% trans "Regler" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'application:application_info' %}">
<i class="material-icons">group_add</i>Opptak
<i class="material-icons">group_add</i>{% trans "Opptak" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'projectarchive:Article_List' %}">
<i class="material-icons">inventory_2</i>Prosjektarkiv
<i class="material-icons">inventory_2</i>{% trans "Prosjektarkiv" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'about' %}">
<i class="material-icons">info</i>Om oss
<i class="material-icons">info</i>{% trans "Om oss" %}
</a>
</li>
{% if user.is_authenticated and perms.userprofile.is_active_member %}
<li>
<a class="waves-effect" href="{% url 'internalportal' %}">
<i class="material-icons">dashboard</i>Internportal
<i class="material-icons">dashboard</i>{% trans "Internportal" %}
</a>
</li>
{% endif %}
Expand All @@ -152,80 +153,82 @@
{% if user.is_authenticated %}
<li>
<a class="waves-effect" href="{% url 'auth:logout' %}">
<i class="material-icons small">logout</i>Logg ut
<i class="material-icons small">logout</i>{% trans "Logg ut" %}
</a>
</li>
{% else %}
<li><a class="waves-effect" href="{% url 'social:begin' 'dataporten_feide' %}?next={{ request.path }}">
<i class="material-icons small">login</i>Logg inn
</a></li>
<li>
<a class="waves-effect" href="{% url 'social:begin' 'dataporten_feide' %}?next={{ request.path }}">
<i class="material-icons small">login</i>{% trans "Logg inn" %}
</a>
</li>
{% endif %}
<!-- Dropdown user list for desktop-->
<ul id="userdropdown" class="dropdown-content">
{% if user.is_authenticated %}
<li><a href="{% url 'userprofile:profile' %}">
<i class="material-icons small">account_circle</i>Profil
<i class="material-icons small">account_circle</i>{% trans "Profil" %}
</a></li>
<li><a href="{% url 'auth:logout' %}">
<i class="material-icons small">login</i>Logg ut
<i class="material-icons small">login</i>{% trans "Logg ut" %}
</a></li>
{% else %}
<li><a class="modal-trigger" href="{% url 'social:begin' 'dataporten_feide' %}?next={{ request.path }}">
<i class="material-icons small">login</i>Logg inn
<i class="material-icons small">login</i>{% trans "Logg inn" %}
</a></li>
{% endif %}
</ul>
<!-- Dropdown for ressurser -->
<ul id="resourcedropdown" class="dropdown-content">
<li class="tooltipped" data-position="left" data-tooltip="Se hvor vi befinner oss">
<a class="modal-trigger waves-effect hs-green-text" target="_blank" href="{{ mazemap_link }}">
<i class="material-icons small">map</i>Kart
<i class="material-icons small">map</i>{% trans "Kart" %}
</a>
</li>
<li class="tooltipped" data-position="left" data-tooltip="Se liste over medlemmer">
<a href="{% url 'member-list' %}">
<i class="material-icons small">groups</i>Medlemmer
<i class="material-icons small">groups</i>{% trans "Medlemmer" %}
</a>
</li>
<li class="tooltipped" data-position="left" data-tooltip="Se vaktlista vår">
<a class="waves-effect" href="{% url 'watchlist:vaktliste' %}">
<i class="material-icons small">free_breakfast</i>Vaktliste
<i class="material-icons small">free_breakfast</i>{% trans "Vaktliste" %}
</a>
</li>
<li class="tooltipped" data-position="left" data-tooltip="Se lagerbeholdningen vår">
<a href="{% url 'inventory:inventory' %}">
<i class="material-icons">inbox</i>Lager
<i class="material-icons">inbox</i>{% trans "Lager" %}
</a>
</li>
<li class="tooltipped" data-position="left" data-tooltip="Se utstyr og reserver tid">
<a href="{% url 'reservations:queue_list' %}">
<i class="material-icons small">calendar_month</i>Reservasjoner
<i class="material-icons small">calendar_month</i>{% trans "Reservasjoner" %}
</a>
</li>
<li class="tooltipped" data-position="left" data-tooltip="Se regler">
<a href="{% url 'rules' %}">
<i class="material-icons small">gavel</i>Regler
<i class="material-icons small">gavel</i>{% trans "Regler" %}
</a>
</li>
<li>
<a class="waves-effect" href="{% url 'application:application_info' %}">
<i class="material-icons small">group_add</i>Opptak
<i class="material-icons small">group_add</i>{% trans "Opptak" %}
</a>
</li>
<li class="tooltipped" data-position="left" data-tooltip="Les om våres tidligere prosjekter her">
<a href="{% url 'projectarchive:Article_List' %}">
<i class="material-icons small">inventory_2</i>Prosjektarkiv
<i class="material-icons small">inventory_2</i>{% trans "Prosjektarkiv" %}
</a>
</li>
<li class="tooltipped" data-position="left" data-tooltip="Les om vår organisasjon og grupper her">
<a href="{% url 'about' %}">
<i class="material-icons small">info</i>Om oss
<i class="material-icons small">info</i>{% trans "Om oss" %}
</a>
</li>
{% if user.is_authenticated and perms.userprofile.is_active_member %}
<li class="tooltipped" data-position="left" data-tooltip="Dashbord for medlemmer av Hackerspace">
<a href="{% url 'internalportal' %}">
<i class="material-icons small">dashboard</i>Internportal
<i class="material-icons small">dashboard</i>{% trans "Internportal" %}
</a>
</li>
{% endif %}
Expand Down

0 comments on commit 2b402e1

Please sign in to comment.