Remove flask-menu, make navbar translatable

This commit is contained in:
rubenwardy 2022-01-07 21:08:56 +00:00
parent b40bc8c20d
commit a175162186
12 changed files with 423 additions and 333 deletions

View File

@ -17,7 +17,6 @@
from flask import * from flask import *
from flask_gravatar import Gravatar from flask_gravatar import Gravatar
import flask_menu as menu
from flask_mail import Mail from flask_mail import Mail
from flask_github import GitHub from flask_github import GitHub
from flask_wtf.csrf import CSRFProtect from flask_wtf.csrf import CSRFProtect
@ -43,7 +42,6 @@ app.config.from_pyfile(os.environ["FLASK_CONFIG"])
r = redis.Redis.from_url(app.config["REDIS_URL"]) r = redis.Redis.from_url(app.config["REDIS_URL"])
menu.Menu(app=app)
github = GitHub(app) github = GitHub(app)
csrf = CSRFProtect(app) csrf = CSRFProtect(app)
mail = Mail(app) mail = Mail(app)
@ -88,7 +86,6 @@ create_blueprints(app)
def send_upload(path): def send_upload(path):
return send_from_directory(app.config["UPLOAD_DIR"], path) return send_from_directory(app.config["UPLOAD_DIR"], path)
@menu.register_menu(app, ".help", "Help", order=19, endpoint_arguments_constructor=lambda: { "path": "help" })
@app.route("/<path:path>/") @app.route("/<path:path>/")
def flatpage(path): def flatpage(path):
page = pages.get_or_404(path) page = pages.get_or_404(path)

View File

@ -3,13 +3,11 @@ from flask import Blueprint, render_template, redirect
bp = Blueprint("homepage", __name__) bp = Blueprint("homepage", __name__)
from app.models import * from app.models import *
import flask_menu as menu
from sqlalchemy.orm import joinedload from sqlalchemy.orm import joinedload
from sqlalchemy.sql.expression import func from sqlalchemy.sql.expression import func
@bp.route("/") @bp.route("/")
@menu.register_menu(bp, ".", "Home")
def home(): def home():
def join(query): def join(query):
return query.options( return query.options(

View File

@ -17,7 +17,6 @@
from urllib.parse import quote as urlescape from urllib.parse import quote as urlescape
import flask_menu as menu
from flask import render_template from flask import render_template
from flask_wtf import FlaskForm from flask_wtf import FlaskForm
from flask_login import login_required from flask_login import login_required
@ -38,10 +37,6 @@ from app.models.packages import PackageProvides
from app.tasks.webhooktasks import post_discord_webhook from app.tasks.webhooktasks import post_discord_webhook
@menu.register_menu(bp, ".mods", "Mods", order=11, endpoint_arguments_constructor=lambda: { 'type': 'mod' })
@menu.register_menu(bp, ".games", "Games", order=12, endpoint_arguments_constructor=lambda: { 'type': 'game' })
@menu.register_menu(bp, ".txp", "Texture Packs", order=13, endpoint_arguments_constructor=lambda: { 'type': 'txp' })
@menu.register_menu(bp, ".random", "Random", order=14, endpoint_arguments_constructor=lambda: { 'random': '1', 'lucky': '1' })
@bp.route("/packages/") @bp.route("/packages/")
def list_all(): def list_all():
qb = QueryBuilder(request.args) qb = QueryBuilder(request.args)

View File

@ -20,7 +20,6 @@ from app.tasks.webhooktasks import post_discord_webhook
bp = Blueprint("threads", __name__) bp = Blueprint("threads", __name__)
from flask_login import current_user, login_required from flask_login import current_user, login_required
from app import menu
from app.models import * from app.models import *
from app.utils import addNotification, isYes, addAuditLog, get_system_user from app.utils import addNotification, isYes, addAuditLog, get_system_user
from flask_wtf import FlaskForm from flask_wtf import FlaskForm
@ -29,7 +28,6 @@ from wtforms.validators import *
from app.utils import get_int_or_abort from app.utils import get_int_or_abort
@menu.register_menu(bp, ".threads", "Threads", order=20)
@bp.route("/threads/") @bp.route("/threads/")
def list_all(): def list_all():
query = Thread.query query = Thread.query

View File

@ -23,34 +23,31 @@
<div class="collapse navbar-collapse" id="navbarColor01"> <div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav mr-auto">
{% for item in current_menu.children recursive %} <li class="nav-item">
{% if item.visible %} <a class="nav-link" href="{{ url_for('packages.list_all', type='mod') }}">{{ _("Mods") }}</a>
<li class="nav-item {% if item.children %} dropdown{% endif %}"> </li>
<a class="nav-link" href="{{ item.url }}" <li class="nav-item">
{% if item.children %} <a class="nav-link" href="{{ url_for('packages.list_all', type='game') }}">{{ _("Games") }}</a>
class="dropdown-toggle" </li>
data-toggle="dropdown" <li class="nav-item">
role="button" <a class="nav-link" href="{{ url_for('packages.list_all', type='txp') }}">{{ _("Texture Packs") }}</a>
aria-expanded="false" </li>
{% endif %}> <li class="nav-item">
{{ item.text }} <a class="nav-link" href="{{ url_for('packages.list_all', random=1, lucky=1) }}">{{ _("Random") }}</a>
{% if item.children %} </li>
<span class="caret"></span> <li class="nav-item">
{% endif %} <a class="nav-link" href="{{ url_for('flatpage', path='help') }}">{{ _("Help") }}</a>
</a> </li>
{% if item.children %} <li class="nav-item">
<ul class="dropdown-menu" role="menu"> <a class="nav-link" href="{{ url_for('threads.list_all') }}">{{ _("Threads") }}</a>
{{ loop(item.children) }} </li>
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul> </ul>
<form class="form-inline my-2 my-lg-0" method="GET" action="/packages/"> <form class="form-inline my-2 my-lg-0" method="GET" action="/packages/">
{% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %} {% if type %}<input type="hidden" name="type" value="{{ type }}" />{% endif %}
<input class="form-control mr-sm-2" name="q" type="text" placeholder="Search {{ title | lower or 'all packages' }}" value="{{ query or ''}}"> <input class="form-control" name="q" type="text"
<input class="btn btn-secondary my-2 my-sm-0 mr-sm-2" type="submit" value="Search" /> placeholder="{{ _('Search %(type)s', type=title | lower or 'all packages') }}"
value="{{ query or ''}}">
<input class="btn btn-secondary my-2 my-sm-0 mr-sm-2" type="submit" value="{{ _('Search') }}" />
<!-- <input class="btn btn-secondary my-2 my-sm-0" <!-- <input class="btn btn-secondary my-2 my-sm-0"
data-toggle="tooltip" data-placement="bottom" data-toggle="tooltip" data-placement="bottom"
title="Go to the first found result for this query." title="Go to the first found result for this query."

View File

@ -24,7 +24,6 @@ Flask-FlatPages==0.7.2
Flask-Gravatar==0.5.0 Flask-Gravatar==0.5.0
Flask-Login==0.5.0 Flask-Login==0.5.0
Flask-Mail==0.9.1 Flask-Mail==0.9.1
Flask-Menu==0.7.2
Flask-Migrate==2.6.0 Flask-Migrate==2.6.0
Flask-SQLAlchemy==2.4.4 Flask-SQLAlchemy==2.4.4
Flask-WTF==0.14.3 Flask-WTF==0.14.3

View File

@ -2,7 +2,6 @@ Flask
Flask-FlatPages Flask-FlatPages
Flask-Gravatar Flask-Gravatar
Flask-Login Flask-Login
Flask-Menu
Flask-Migrate Flask-Migrate
Flask-SQLAlchemy Flask-SQLAlchemy
Flask-Babel Flask-Babel

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-01-07 20:58+0000\n" "POT-Creation-Date: 2022-01-07 21:08+0000\n"
"PO-Revision-Date: 2022-01-06 19:53+0000\n" "PO-Revision-Date: 2022-01-06 19:53+0000\n"
"Last-Translator: Joaquín Villalba <joaco-mono@hotmail.com>\n" "Last-Translator: Joaquín Villalba <joaco-mono@hotmail.com>\n"
"Language: es\n" "Language: es\n"
@ -120,91 +120,120 @@ msgid ""
"been deleted, or you may not have access to it." "been deleted, or you may not have access to it."
msgstr "" msgstr ""
#: app/templates/base.html:65 #: app/templates/base.html:27
msgid "Work Queue" msgid "Mods"
msgstr "" msgstr ""
#: app/templates/base.html:78 app/templates/base.html:130 #: app/templates/base.html:30
msgid "To do list" msgid "Games"
msgstr "" msgstr ""
#: app/templates/base.html:87 #: app/templates/base.html:33
msgid "Notifications" msgid "Texture Packs"
msgstr "" msgstr ""
#: app/templates/base.html:108 #: app/templates/base.html:36
msgid "Add Package" msgid "Random"
msgstr "" msgstr ""
#: app/templates/base.html:125 #: app/templates/base.html:39 app/templates/base.html:239
msgid "Profile"
msgstr ""
#: app/templates/base.html:139
msgid "Audit Log"
msgstr ""
#: app/templates/base.html:143
msgid "Admin"
msgstr ""
#: app/templates/base.html:146
msgid "License Editor"
msgstr ""
#: app/templates/base.html:151
msgid "Restore Package"
msgstr ""
#: app/templates/base.html:154
msgid "Tag Editor"
msgstr ""
#: app/templates/base.html:156
msgid "Create Tag"
msgstr ""
#: app/templates/base.html:161 app/templates/packages/release_new.html:12
msgid "Settings"
msgstr ""
#: app/templates/base.html:164
msgid "Sign out"
msgstr ""
#: app/templates/base.html:168
msgid "Sign in"
msgstr ""
#: app/templates/base.html:242
msgid "Help" msgid "Help"
msgstr "" msgstr ""
#: app/templates/base.html:243 #: app/templates/base.html:42 app/templates/packages/view.html:123
msgid "Threads"
msgstr ""
#: app/templates/base.html:48
#, python-format
msgid "Search %(type)s"
msgstr ""
#: app/templates/base.html:50 app/templates/todo/tags.html:15
msgid "Search"
msgstr ""
#: app/templates/base.html:62
msgid "Work Queue"
msgstr ""
#: app/templates/base.html:75 app/templates/base.html:127
msgid "To do list"
msgstr ""
#: app/templates/base.html:84
msgid "Notifications"
msgstr ""
#: app/templates/base.html:105
msgid "Add Package"
msgstr ""
#: app/templates/base.html:122
msgid "Profile"
msgstr ""
#: app/templates/base.html:136
msgid "Audit Log"
msgstr ""
#: app/templates/base.html:140
msgid "Admin"
msgstr ""
#: app/templates/base.html:143
msgid "License Editor"
msgstr ""
#: app/templates/base.html:148
msgid "Restore Package"
msgstr ""
#: app/templates/base.html:151
msgid "Tag Editor"
msgstr ""
#: app/templates/base.html:153
msgid "Create Tag"
msgstr ""
#: app/templates/base.html:158 app/templates/packages/release_new.html:12
msgid "Settings"
msgstr ""
#: app/templates/base.html:161
msgid "Sign out"
msgstr ""
#: app/templates/base.html:165
msgid "Sign in"
msgstr ""
#: app/templates/base.html:240
msgid "Policy and Guidance" msgid "Policy and Guidance"
msgstr "" msgstr ""
#: app/templates/base.html:244 #: app/templates/base.html:241
msgid "API" msgid "API"
msgstr "" msgstr ""
#: app/templates/base.html:245 app/templates/users/register.html:43 #: app/templates/base.html:242 app/templates/users/register.html:43
msgid "Privacy Policy" msgid "Privacy Policy"
msgstr "" msgstr ""
#: app/templates/base.html:246 #: app/templates/base.html:243
msgid "Report / DMCA" msgid "Report / DMCA"
msgstr "" msgstr ""
#: app/templates/base.html:247 #: app/templates/base.html:244
msgid "Stats / Monitoring" msgid "Stats / Monitoring"
msgstr "" msgstr ""
#: app/templates/base.html:248 #: app/templates/base.html:245
msgid "User List" msgid "User List"
msgstr "" msgstr ""
#: app/templates/base.html:249 #: app/templates/base.html:246
msgid "Source Code" msgid "Source Code"
msgstr "" msgstr ""
@ -967,10 +996,6 @@ msgstr ""
msgid "Downloads" msgid "Downloads"
msgstr "" msgstr ""
#: app/templates/packages/view.html:123
msgid "Threads"
msgstr ""
#: app/templates/packages/view.html:138 app/templates/users/profile.html:73 #: app/templates/packages/view.html:138 app/templates/users/profile.html:73
msgid "Website" msgid "Website"
msgstr "" msgstr ""
@ -1111,10 +1136,6 @@ msgstr ""
msgid "Search all packages" msgid "Search all packages"
msgstr "" msgstr ""
#: app/templates/todo/tags.html:15
msgid "Search"
msgstr ""
#: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27 #: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27
msgid "Missing tags only" msgid "Missing tags only"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-01-07 20:58+0000\n" "POT-Creation-Date: 2022-01-07 21:08+0000\n"
"PO-Revision-Date: 2022-01-04 21:25+0000\n" "PO-Revision-Date: 2022-01-04 21:25+0000\n"
"Last-Translator: AFCMS <afcm.contact@gmail.com>\n" "Last-Translator: AFCMS <afcm.contact@gmail.com>\n"
"Language: fr\n" "Language: fr\n"
@ -120,93 +120,124 @@ msgid ""
"been deleted, or you may not have access to it." "been deleted, or you may not have access to it."
msgstr "" msgstr ""
#: app/templates/base.html:65 #: app/templates/base.html:27
msgid "Mods"
msgstr ""
#: app/templates/base.html:30
#, fuzzy
msgid "Games"
msgstr "Nom"
#: app/templates/base.html:33
#, fuzzy
msgid "Texture Packs"
msgstr "Top des Packs de textures"
#: app/templates/base.html:36
msgid "Random"
msgstr ""
#: app/templates/base.html:39 app/templates/base.html:239
msgid "Help"
msgstr "Aide"
#: app/templates/base.html:42 app/templates/packages/view.html:123
msgid "Threads"
msgstr "Fils"
#: app/templates/base.html:48
#, fuzzy, python-format
msgid "Search %(type)s"
msgstr "Top %(type)s"
#: app/templates/base.html:50 app/templates/todo/tags.html:15
msgid "Search"
msgstr "Rechercher"
#: app/templates/base.html:62
msgid "Work Queue" msgid "Work Queue"
msgstr "File d'attente" msgstr "File d'attente"
#: app/templates/base.html:78 app/templates/base.html:130 #: app/templates/base.html:75 app/templates/base.html:127
msgid "To do list" msgid "To do list"
msgstr "À faire" msgstr "À faire"
#: app/templates/base.html:87 #: app/templates/base.html:84
msgid "Notifications" msgid "Notifications"
msgstr "Notifications" msgstr "Notifications"
#: app/templates/base.html:108 #: app/templates/base.html:105
msgid "Add Package" msgid "Add Package"
msgstr "Créer un paquet" msgstr "Créer un paquet"
#: app/templates/base.html:125 #: app/templates/base.html:122
#, fuzzy #, fuzzy
msgid "Profile" msgid "Profile"
msgstr "Modifier le profil" msgstr "Modifier le profil"
#: app/templates/base.html:139 #: app/templates/base.html:136
msgid "Audit Log" msgid "Audit Log"
msgstr "Journal d'audit" msgstr "Journal d'audit"
#: app/templates/base.html:143 #: app/templates/base.html:140
msgid "Admin" msgid "Admin"
msgstr "Admin" msgstr "Admin"
#: app/templates/base.html:146 #: app/templates/base.html:143
#, fuzzy #, fuzzy
msgid "License Editor" msgid "License Editor"
msgstr "Éditeur de licences" msgstr "Éditeur de licences"
#: app/templates/base.html:151 #: app/templates/base.html:148
msgid "Restore Package" msgid "Restore Package"
msgstr "Restaurer le paquet" msgstr "Restaurer le paquet"
#: app/templates/base.html:154 #: app/templates/base.html:151
msgid "Tag Editor" msgid "Tag Editor"
msgstr "Éditeur d'étiquettes" msgstr "Éditeur d'étiquettes"
#: app/templates/base.html:156 #: app/templates/base.html:153
msgid "Create Tag" msgid "Create Tag"
msgstr "Créer une étiquette" msgstr "Créer une étiquette"
#: app/templates/base.html:161 app/templates/packages/release_new.html:12 #: app/templates/base.html:158 app/templates/packages/release_new.html:12
msgid "Settings" msgid "Settings"
msgstr "Paramètres" msgstr "Paramètres"
#: app/templates/base.html:164 #: app/templates/base.html:161
msgid "Sign out" msgid "Sign out"
msgstr "Se déconnecter" msgstr "Se déconnecter"
#: app/templates/base.html:168 #: app/templates/base.html:165
msgid "Sign in" msgid "Sign in"
msgstr "Se connecter" msgstr "Se connecter"
#: app/templates/base.html:242 #: app/templates/base.html:240
msgid "Help"
msgstr "Aide"
#: app/templates/base.html:243
msgid "Policy and Guidance" msgid "Policy and Guidance"
msgstr "Règles et Recommandations" msgstr "Règles et Recommandations"
#: app/templates/base.html:244 #: app/templates/base.html:241
msgid "API" msgid "API"
msgstr "API" msgstr "API"
#: app/templates/base.html:245 app/templates/users/register.html:43 #: app/templates/base.html:242 app/templates/users/register.html:43
msgid "Privacy Policy" msgid "Privacy Policy"
msgstr "Politique de confidentialité" msgstr "Politique de confidentialité"
#: app/templates/base.html:246 #: app/templates/base.html:243
msgid "Report / DMCA" msgid "Report / DMCA"
msgstr "Signaler / DMCA" msgstr "Signaler / DMCA"
#: app/templates/base.html:247 #: app/templates/base.html:244
msgid "Stats / Monitoring" msgid "Stats / Monitoring"
msgstr "Statistiques / Monitoring" msgstr "Statistiques / Monitoring"
#: app/templates/base.html:248 #: app/templates/base.html:245
msgid "User List" msgid "User List"
msgstr "Liste des utilisateurs" msgstr "Liste des utilisateurs"
#: app/templates/base.html:249 #: app/templates/base.html:246
msgid "Source Code" msgid "Source Code"
msgstr "Code source" msgstr "Code source"
@ -1010,10 +1041,6 @@ msgstr "Auteur"
msgid "Downloads" msgid "Downloads"
msgstr "Téléchargements" msgstr "Téléchargements"
#: app/templates/packages/view.html:123
msgid "Threads"
msgstr "Fils"
#: app/templates/packages/view.html:138 app/templates/users/profile.html:73 #: app/templates/packages/view.html:138 app/templates/users/profile.html:73
msgid "Website" msgid "Website"
msgstr "Site web" msgstr "Site web"
@ -1155,10 +1182,6 @@ msgstr "Étiquettes de paquet"
msgid "Search all packages" msgid "Search all packages"
msgstr "Rechercher dans tous les paquets" msgstr "Rechercher dans tous les paquets"
#: app/templates/todo/tags.html:15
msgid "Search"
msgstr "Rechercher"
#: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27 #: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27
msgid "Missing tags only" msgid "Missing tags only"
msgstr "Étiquettes manquantes uniquement" msgstr "Étiquettes manquantes uniquement"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-01-07 20:58+0000\n" "POT-Creation-Date: 2022-01-07 21:08+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"
@ -118,91 +118,120 @@ msgid ""
"been deleted, or you may not have access to it." "been deleted, or you may not have access to it."
msgstr "" msgstr ""
#: app/templates/base.html:65 #: app/templates/base.html:27
msgid "Work Queue" msgid "Mods"
msgstr "" msgstr ""
#: app/templates/base.html:78 app/templates/base.html:130 #: app/templates/base.html:30
msgid "To do list" msgid "Games"
msgstr "" msgstr ""
#: app/templates/base.html:87 #: app/templates/base.html:33
msgid "Notifications" msgid "Texture Packs"
msgstr "" msgstr ""
#: app/templates/base.html:108 #: app/templates/base.html:36
msgid "Add Package" msgid "Random"
msgstr "" msgstr ""
#: app/templates/base.html:125 #: app/templates/base.html:39 app/templates/base.html:239
msgid "Profile"
msgstr ""
#: app/templates/base.html:139
msgid "Audit Log"
msgstr ""
#: app/templates/base.html:143
msgid "Admin"
msgstr ""
#: app/templates/base.html:146
msgid "License Editor"
msgstr ""
#: app/templates/base.html:151
msgid "Restore Package"
msgstr ""
#: app/templates/base.html:154
msgid "Tag Editor"
msgstr ""
#: app/templates/base.html:156
msgid "Create Tag"
msgstr ""
#: app/templates/base.html:161 app/templates/packages/release_new.html:12
msgid "Settings"
msgstr ""
#: app/templates/base.html:164
msgid "Sign out"
msgstr ""
#: app/templates/base.html:168
msgid "Sign in"
msgstr ""
#: app/templates/base.html:242
msgid "Help" msgid "Help"
msgstr "" msgstr ""
#: app/templates/base.html:243 #: app/templates/base.html:42 app/templates/packages/view.html:123
msgid "Threads"
msgstr ""
#: app/templates/base.html:48
#, python-format
msgid "Search %(type)s"
msgstr ""
#: app/templates/base.html:50 app/templates/todo/tags.html:15
msgid "Search"
msgstr ""
#: app/templates/base.html:62
msgid "Work Queue"
msgstr ""
#: app/templates/base.html:75 app/templates/base.html:127
msgid "To do list"
msgstr ""
#: app/templates/base.html:84
msgid "Notifications"
msgstr ""
#: app/templates/base.html:105
msgid "Add Package"
msgstr ""
#: app/templates/base.html:122
msgid "Profile"
msgstr ""
#: app/templates/base.html:136
msgid "Audit Log"
msgstr ""
#: app/templates/base.html:140
msgid "Admin"
msgstr ""
#: app/templates/base.html:143
msgid "License Editor"
msgstr ""
#: app/templates/base.html:148
msgid "Restore Package"
msgstr ""
#: app/templates/base.html:151
msgid "Tag Editor"
msgstr ""
#: app/templates/base.html:153
msgid "Create Tag"
msgstr ""
#: app/templates/base.html:158 app/templates/packages/release_new.html:12
msgid "Settings"
msgstr ""
#: app/templates/base.html:161
msgid "Sign out"
msgstr ""
#: app/templates/base.html:165
msgid "Sign in"
msgstr ""
#: app/templates/base.html:240
msgid "Policy and Guidance" msgid "Policy and Guidance"
msgstr "" msgstr ""
#: app/templates/base.html:244 #: app/templates/base.html:241
msgid "API" msgid "API"
msgstr "" msgstr ""
#: app/templates/base.html:245 app/templates/users/register.html:43 #: app/templates/base.html:242 app/templates/users/register.html:43
msgid "Privacy Policy" msgid "Privacy Policy"
msgstr "" msgstr ""
#: app/templates/base.html:246 #: app/templates/base.html:243
msgid "Report / DMCA" msgid "Report / DMCA"
msgstr "" msgstr ""
#: app/templates/base.html:247 #: app/templates/base.html:244
msgid "Stats / Monitoring" msgid "Stats / Monitoring"
msgstr "" msgstr ""
#: app/templates/base.html:248 #: app/templates/base.html:245
msgid "User List" msgid "User List"
msgstr "" msgstr ""
#: app/templates/base.html:249 #: app/templates/base.html:246
msgid "Source Code" msgid "Source Code"
msgstr "" msgstr ""
@ -965,10 +994,6 @@ msgstr ""
msgid "Downloads" msgid "Downloads"
msgstr "" msgstr ""
#: app/templates/packages/view.html:123
msgid "Threads"
msgstr ""
#: app/templates/packages/view.html:138 app/templates/users/profile.html:73 #: app/templates/packages/view.html:138 app/templates/users/profile.html:73
msgid "Website" msgid "Website"
msgstr "" msgstr ""
@ -1109,10 +1134,6 @@ msgstr ""
msgid "Search all packages" msgid "Search all packages"
msgstr "" msgstr ""
#: app/templates/todo/tags.html:15
msgid "Search"
msgstr ""
#: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27 #: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27
msgid "Missing tags only" msgid "Missing tags only"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-01-07 20:58+0000\n" "POT-Creation-Date: 2022-01-07 21:08+0000\n"
"PO-Revision-Date: 2022-01-06 19:53+0000\n" "PO-Revision-Date: 2022-01-06 19:53+0000\n"
"Last-Translator: rubenwardy <rw@rubenwardy.com>\n" "Last-Translator: rubenwardy <rw@rubenwardy.com>\n"
"Language: ms\n" "Language: ms\n"
@ -120,91 +120,120 @@ msgid ""
"been deleted, or you may not have access to it." "been deleted, or you may not have access to it."
msgstr "" msgstr ""
#: app/templates/base.html:65 #: app/templates/base.html:27
msgid "Work Queue" msgid "Mods"
msgstr "" msgstr ""
#: app/templates/base.html:78 app/templates/base.html:130 #: app/templates/base.html:30
msgid "To do list" msgid "Games"
msgstr "" msgstr ""
#: app/templates/base.html:87 #: app/templates/base.html:33
msgid "Notifications" msgid "Texture Packs"
msgstr "" msgstr ""
#: app/templates/base.html:108 #: app/templates/base.html:36
msgid "Add Package" msgid "Random"
msgstr "" msgstr ""
#: app/templates/base.html:125 #: app/templates/base.html:39 app/templates/base.html:239
msgid "Profile"
msgstr ""
#: app/templates/base.html:139
msgid "Audit Log"
msgstr ""
#: app/templates/base.html:143
msgid "Admin"
msgstr ""
#: app/templates/base.html:146
msgid "License Editor"
msgstr ""
#: app/templates/base.html:151
msgid "Restore Package"
msgstr ""
#: app/templates/base.html:154
msgid "Tag Editor"
msgstr ""
#: app/templates/base.html:156
msgid "Create Tag"
msgstr ""
#: app/templates/base.html:161 app/templates/packages/release_new.html:12
msgid "Settings"
msgstr ""
#: app/templates/base.html:164
msgid "Sign out"
msgstr ""
#: app/templates/base.html:168
msgid "Sign in"
msgstr ""
#: app/templates/base.html:242
msgid "Help" msgid "Help"
msgstr "" msgstr ""
#: app/templates/base.html:243 #: app/templates/base.html:42 app/templates/packages/view.html:123
msgid "Threads"
msgstr ""
#: app/templates/base.html:48
#, python-format
msgid "Search %(type)s"
msgstr ""
#: app/templates/base.html:50 app/templates/todo/tags.html:15
msgid "Search"
msgstr ""
#: app/templates/base.html:62
msgid "Work Queue"
msgstr ""
#: app/templates/base.html:75 app/templates/base.html:127
msgid "To do list"
msgstr ""
#: app/templates/base.html:84
msgid "Notifications"
msgstr ""
#: app/templates/base.html:105
msgid "Add Package"
msgstr ""
#: app/templates/base.html:122
msgid "Profile"
msgstr ""
#: app/templates/base.html:136
msgid "Audit Log"
msgstr ""
#: app/templates/base.html:140
msgid "Admin"
msgstr ""
#: app/templates/base.html:143
msgid "License Editor"
msgstr ""
#: app/templates/base.html:148
msgid "Restore Package"
msgstr ""
#: app/templates/base.html:151
msgid "Tag Editor"
msgstr ""
#: app/templates/base.html:153
msgid "Create Tag"
msgstr ""
#: app/templates/base.html:158 app/templates/packages/release_new.html:12
msgid "Settings"
msgstr ""
#: app/templates/base.html:161
msgid "Sign out"
msgstr ""
#: app/templates/base.html:165
msgid "Sign in"
msgstr ""
#: app/templates/base.html:240
msgid "Policy and Guidance" msgid "Policy and Guidance"
msgstr "" msgstr ""
#: app/templates/base.html:244 #: app/templates/base.html:241
msgid "API" msgid "API"
msgstr "" msgstr ""
#: app/templates/base.html:245 app/templates/users/register.html:43 #: app/templates/base.html:242 app/templates/users/register.html:43
msgid "Privacy Policy" msgid "Privacy Policy"
msgstr "" msgstr ""
#: app/templates/base.html:246 #: app/templates/base.html:243
msgid "Report / DMCA" msgid "Report / DMCA"
msgstr "" msgstr ""
#: app/templates/base.html:247 #: app/templates/base.html:244
msgid "Stats / Monitoring" msgid "Stats / Monitoring"
msgstr "" msgstr ""
#: app/templates/base.html:248 #: app/templates/base.html:245
msgid "User List" msgid "User List"
msgstr "" msgstr ""
#: app/templates/base.html:249 #: app/templates/base.html:246
msgid "Source Code" msgid "Source Code"
msgstr "" msgstr ""
@ -967,10 +996,6 @@ msgstr ""
msgid "Downloads" msgid "Downloads"
msgstr "" msgstr ""
#: app/templates/packages/view.html:123
msgid "Threads"
msgstr ""
#: app/templates/packages/view.html:138 app/templates/users/profile.html:73 #: app/templates/packages/view.html:138 app/templates/users/profile.html:73
msgid "Website" msgid "Website"
msgstr "" msgstr ""
@ -1111,10 +1136,6 @@ msgstr ""
msgid "Search all packages" msgid "Search all packages"
msgstr "" msgstr ""
#: app/templates/todo/tags.html:15
msgid "Search"
msgstr ""
#: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27 #: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27
msgid "Missing tags only" msgid "Missing tags only"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2022-01-07 20:58+0000\n" "POT-Creation-Date: 2022-01-07 21:08+0000\n"
"PO-Revision-Date: 2022-01-06 19:53+0000\n" "PO-Revision-Date: 2022-01-06 19:53+0000\n"
"Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n" "Last-Translator: Allan Nordhøy <epost@anotheragency.no>\n"
"Language: nb_NO\n" "Language: nb_NO\n"
@ -120,91 +120,120 @@ msgid ""
"been deleted, or you may not have access to it." "been deleted, or you may not have access to it."
msgstr "" msgstr ""
#: app/templates/base.html:65 #: app/templates/base.html:27
msgid "Work Queue" msgid "Mods"
msgstr "" msgstr ""
#: app/templates/base.html:78 app/templates/base.html:130 #: app/templates/base.html:30
msgid "To do list" msgid "Games"
msgstr "" msgstr ""
#: app/templates/base.html:87 #: app/templates/base.html:33
msgid "Notifications" msgid "Texture Packs"
msgstr "" msgstr ""
#: app/templates/base.html:108 #: app/templates/base.html:36
msgid "Add Package" msgid "Random"
msgstr "" msgstr ""
#: app/templates/base.html:125 #: app/templates/base.html:39 app/templates/base.html:239
msgid "Profile"
msgstr ""
#: app/templates/base.html:139
msgid "Audit Log"
msgstr ""
#: app/templates/base.html:143
msgid "Admin"
msgstr ""
#: app/templates/base.html:146
msgid "License Editor"
msgstr ""
#: app/templates/base.html:151
msgid "Restore Package"
msgstr ""
#: app/templates/base.html:154
msgid "Tag Editor"
msgstr ""
#: app/templates/base.html:156
msgid "Create Tag"
msgstr ""
#: app/templates/base.html:161 app/templates/packages/release_new.html:12
msgid "Settings"
msgstr ""
#: app/templates/base.html:164
msgid "Sign out"
msgstr ""
#: app/templates/base.html:168
msgid "Sign in"
msgstr "Logg inn"
#: app/templates/base.html:242
msgid "Help" msgid "Help"
msgstr "Hjelp" msgstr "Hjelp"
#: app/templates/base.html:243 #: app/templates/base.html:42 app/templates/packages/view.html:123
msgid "Threads"
msgstr ""
#: app/templates/base.html:48
#, python-format
msgid "Search %(type)s"
msgstr ""
#: app/templates/base.html:50 app/templates/todo/tags.html:15
msgid "Search"
msgstr ""
#: app/templates/base.html:62
msgid "Work Queue"
msgstr ""
#: app/templates/base.html:75 app/templates/base.html:127
msgid "To do list"
msgstr ""
#: app/templates/base.html:84
msgid "Notifications"
msgstr ""
#: app/templates/base.html:105
msgid "Add Package"
msgstr ""
#: app/templates/base.html:122
msgid "Profile"
msgstr ""
#: app/templates/base.html:136
msgid "Audit Log"
msgstr ""
#: app/templates/base.html:140
msgid "Admin"
msgstr ""
#: app/templates/base.html:143
msgid "License Editor"
msgstr ""
#: app/templates/base.html:148
msgid "Restore Package"
msgstr ""
#: app/templates/base.html:151
msgid "Tag Editor"
msgstr ""
#: app/templates/base.html:153
msgid "Create Tag"
msgstr ""
#: app/templates/base.html:158 app/templates/packages/release_new.html:12
msgid "Settings"
msgstr ""
#: app/templates/base.html:161
msgid "Sign out"
msgstr ""
#: app/templates/base.html:165
msgid "Sign in"
msgstr "Logg inn"
#: app/templates/base.html:240
msgid "Policy and Guidance" msgid "Policy and Guidance"
msgstr "" msgstr ""
#: app/templates/base.html:244 #: app/templates/base.html:241
msgid "API" msgid "API"
msgstr "API" msgstr "API"
#: app/templates/base.html:245 app/templates/users/register.html:43 #: app/templates/base.html:242 app/templates/users/register.html:43
msgid "Privacy Policy" msgid "Privacy Policy"
msgstr "Personvernspraksis" msgstr "Personvernspraksis"
#: app/templates/base.html:246 #: app/templates/base.html:243
msgid "Report / DMCA" msgid "Report / DMCA"
msgstr "" msgstr ""
#: app/templates/base.html:247 #: app/templates/base.html:244
msgid "Stats / Monitoring" msgid "Stats / Monitoring"
msgstr "" msgstr ""
#: app/templates/base.html:248 #: app/templates/base.html:245
msgid "User List" msgid "User List"
msgstr "Brukerliste" msgstr "Brukerliste"
#: app/templates/base.html:249 #: app/templates/base.html:246
msgid "Source Code" msgid "Source Code"
msgstr "Kildekode" msgstr "Kildekode"
@ -967,10 +996,6 @@ msgstr ""
msgid "Downloads" msgid "Downloads"
msgstr "" msgstr ""
#: app/templates/packages/view.html:123
msgid "Threads"
msgstr ""
#: app/templates/packages/view.html:138 app/templates/users/profile.html:73 #: app/templates/packages/view.html:138 app/templates/users/profile.html:73
msgid "Website" msgid "Website"
msgstr "" msgstr ""
@ -1111,10 +1136,6 @@ msgstr ""
msgid "Search all packages" msgid "Search all packages"
msgstr "" msgstr ""
#: app/templates/todo/tags.html:15
msgid "Search"
msgstr ""
#: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27 #: app/templates/todo/tags.html:23 app/templates/todo/tags.html:27
msgid "Missing tags only" msgid "Missing tags only"
msgstr "" msgstr ""