Spanish translations courtesy of @frank1210

Fixed a few problems with translating the menu links - they had leading spaces.
This commit is contained in:
Adarnof 2018-05-02 20:49:21 -04:00
parent 7212a7a328
commit 22bda62e59
10 changed files with 2089 additions and 56 deletions

View File

@ -1,5 +1,5 @@
from allianceauth.services.hooks import MenuItemHook, UrlHook
from django.utils.translation import ugettext_lazy as _
from allianceauth import hooks
from allianceauth.corputils import urls
@ -7,7 +7,7 @@ from allianceauth.corputils import urls
class CorpStats(MenuItemHook):
def __init__(self):
MenuItemHook.__init__(self,
'Corporation Stats',
_('Corporation Stats'),
'fa fa-share-alt fa-fw',
'corputils:view',
navactive=['corputils:'])

View File

@ -1,12 +1,12 @@
from . import urls
from django.utils.translation import ugettext_lazy as _
from allianceauth import hooks
from allianceauth.services.hooks import MenuItemHook, UrlHook
@hooks.register('menu_item_hook')
def register_menu():
return MenuItemHook('Fleet Activity Tracking', 'fa fa-users fa-lightbulb-o fa-fw', 'fatlink:view',
return MenuItemHook(_('Fleet Activity Tracking'), 'fa fa-users fa-lightbulb-o fa-fw', 'fatlink:view',
navactive=['fatlink:'])

View File

@ -1,5 +1,5 @@
from allianceauth.services.hooks import MenuItemHook, UrlHook
from django.utils.translation import ugettext_lazy as _
from allianceauth import hooks
from allianceauth.hrapplications import urls
@ -7,7 +7,7 @@ from allianceauth.hrapplications import urls
class ApplicationsMenu(MenuItemHook):
def __init__(self):
MenuItemHook.__init__(self,
'Applications',
_('Applications'),
'fa fa-file-o fa-fw',
'hrapplications:index',
navactive=['hrapplications:'])

View File

@ -1096,10 +1096,13 @@ msgid "Main Navigation"
msgstr "Haupmenü"
#: stock/templates/registered/base.html:106
#: stock/templates/registered/dashboard.html:5
#: stock/templates/registered/dashboard.html:9
msgid "Dashboard"
msgstr "Dashboard"
#: stock/templates/registered/base.html:113
#: stock/templates/registered/dashboard.html:52
msgid "Groups"
msgstr "Gruppen"
@ -1124,6 +1127,7 @@ msgid " Corporation Stats"
msgstr "Korporationsstatistiken"
#: stock/templates/registered/base.html:156
#: stock/templates/registered/groupmanagementmenu.html:14
msgid "Group Management"
msgstr "Gruppenverwaltung"
@ -1132,6 +1136,7 @@ msgid " Fleet Operations"
msgstr "Flottenoperationen"
#: stock/templates/registered/base.html:181
#: stock/templates/registered/timermanagement.html:13
msgid "Structure Timers"
msgstr "Strukturen Timer"
@ -1293,11 +1298,6 @@ msgstr "Corporation: "
msgid "Corporation Ticker: "
msgstr "Corporation Ticker: "
#: stock/templates/registered/dashboard.html:5
#: stock/templates/registered/dashboard.html:9
msgid "Dashboard"
msgstr "Dashboard"
#: stock/templates/registered/dashboard.html:38
msgid "Missing main character model."
msgstr "Hauptcharakter model fehlt"
@ -1310,10 +1310,6 @@ msgstr "API Key hinzufügen"
msgid "Change Main"
msgstr "Hauptcharakter ändern"
#: stock/templates/registered/dashboard.html:52
msgid "Groups"
msgstr "Gruppen"
#: stock/templates/registered/dashboard.html:71
msgid "API Key requires EVE SSO verification"
msgstr "API Key benötigt EVE SSO bestätigung"
@ -1601,10 +1597,6 @@ msgstr "Keine Gruppenbeitrittsanfragen."
msgid "No group leave requests."
msgstr "Keine Gruppenaustrittsanfragen"
#: stock/templates/registered/groupmanagementmenu.html:14
msgid "Group Management"
msgstr "Gruppenmanagement"
#: stock/templates/registered/groupmanagementmenu.html:19
msgid "Group Requests"
msgstr "Gruppen anfragen"
@ -2171,10 +2163,6 @@ msgstr "Server beitreten"
msgid "Structure Timer Management"
msgstr "Struktur-Timer Verwaltung"
#: stock/templates/registered/timermanagement.html:13
msgid "Structure Timers"
msgstr "Struktur-Timer"
#: stock/templates/registered/timermanagement.html:26
msgid "Corp Timers"
msgstr "Corp Timer"

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,12 @@
from allianceauth.services.hooks import MenuItemHook, UrlHook
from django.utils.translation import ugettext_lazy as _
from allianceauth import hooks
from . import urls
class OpTimerboardMenu(MenuItemHook):
def __init__(self):
MenuItemHook.__init__(self, 'Fleet Operations',
MenuItemHook.__init__(self, _('Fleet Operations'),
'fa fa-exclamation fa-fw',
'optimer:view',
navactive=['optimer:'])

View File

@ -82,6 +82,7 @@ ugettext = lambda s: s
LANGUAGES = (
('en', ugettext('English')),
('de', ugettext('German')),
('es', ugettext('Spanish')),
)
TEMPLATES = [

View File

@ -1,12 +1,12 @@
from allianceauth.services.hooks import MenuItemHook, UrlHook
from django.utils.translation import ugettext_lazy as _
from allianceauth import hooks
from . import urls
class SrpMenu(MenuItemHook):
def __init__(self):
MenuItemHook.__init__(self, 'Ship Replacement',
MenuItemHook.__init__(self, _('Ship Replacement'),
'fa fa-money fa-fw',
'srp:management',
navactive=['srp:'])

View File

@ -1,11 +1,12 @@
{% extends "allianceauth/base.html" %}
{% load i18n %}
{% block page_title %}Help{% endblock page_title %}
{% block page_title %}{% trans "Help" %}{% endblock page_title %}
{% block content %}
<div class="col-lg-12">
<h1 class="page-header text-center">Help</h1>
<h1 class="page-header text-center">{% trans "Help" %}</h1>
<div class="container-fluid">
<div class="embed-responsive embed-responsive-16by9">