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

View File

@ -1,12 +1,12 @@
from . import urls from . import urls
from django.utils.translation import ugettext_lazy as _
from allianceauth import hooks from allianceauth import hooks
from allianceauth.services.hooks import MenuItemHook, UrlHook from allianceauth.services.hooks import MenuItemHook, UrlHook
@hooks.register('menu_item_hook') @hooks.register('menu_item_hook')
def register_menu(): 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:']) navactive=['fatlink:'])

View File

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

View File

@ -1096,10 +1096,13 @@ msgid "Main Navigation"
msgstr "Haupmenü" msgstr "Haupmenü"
#: stock/templates/registered/base.html:106 #: stock/templates/registered/base.html:106
#: stock/templates/registered/dashboard.html:5
#: stock/templates/registered/dashboard.html:9
msgid "Dashboard" msgid "Dashboard"
msgstr "Dashboard" msgstr "Dashboard"
#: stock/templates/registered/base.html:113 #: stock/templates/registered/base.html:113
#: stock/templates/registered/dashboard.html:52
msgid "Groups" msgid "Groups"
msgstr "Gruppen" msgstr "Gruppen"
@ -1124,6 +1127,7 @@ msgid " Corporation Stats"
msgstr "Korporationsstatistiken" msgstr "Korporationsstatistiken"
#: stock/templates/registered/base.html:156 #: stock/templates/registered/base.html:156
#: stock/templates/registered/groupmanagementmenu.html:14
msgid "Group Management" msgid "Group Management"
msgstr "Gruppenverwaltung" msgstr "Gruppenverwaltung"
@ -1132,6 +1136,7 @@ msgid " Fleet Operations"
msgstr "Flottenoperationen" msgstr "Flottenoperationen"
#: stock/templates/registered/base.html:181 #: stock/templates/registered/base.html:181
#: stock/templates/registered/timermanagement.html:13
msgid "Structure Timers" msgid "Structure Timers"
msgstr "Strukturen Timer" msgstr "Strukturen Timer"
@ -1293,11 +1298,6 @@ msgstr "Corporation: "
msgid "Corporation Ticker: " msgid "Corporation Ticker: "
msgstr "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 #: stock/templates/registered/dashboard.html:38
msgid "Missing main character model." msgid "Missing main character model."
msgstr "Hauptcharakter model fehlt" msgstr "Hauptcharakter model fehlt"
@ -1310,10 +1310,6 @@ msgstr "API Key hinzufügen"
msgid "Change Main" msgid "Change Main"
msgstr "Hauptcharakter ändern" msgstr "Hauptcharakter ändern"
#: stock/templates/registered/dashboard.html:52
msgid "Groups"
msgstr "Gruppen"
#: stock/templates/registered/dashboard.html:71 #: stock/templates/registered/dashboard.html:71
msgid "API Key requires EVE SSO verification" msgid "API Key requires EVE SSO verification"
msgstr "API Key benötigt EVE SSO bestätigung" msgstr "API Key benötigt EVE SSO bestätigung"
@ -1601,10 +1597,6 @@ msgstr "Keine Gruppenbeitrittsanfragen."
msgid "No group leave requests." msgid "No group leave requests."
msgstr "Keine Gruppenaustrittsanfragen" msgstr "Keine Gruppenaustrittsanfragen"
#: stock/templates/registered/groupmanagementmenu.html:14
msgid "Group Management"
msgstr "Gruppenmanagement"
#: stock/templates/registered/groupmanagementmenu.html:19 #: stock/templates/registered/groupmanagementmenu.html:19
msgid "Group Requests" msgid "Group Requests"
msgstr "Gruppen anfragen" msgstr "Gruppen anfragen"
@ -2171,10 +2163,6 @@ msgstr "Server beitreten"
msgid "Structure Timer Management" msgid "Structure Timer Management"
msgstr "Struktur-Timer Verwaltung" msgstr "Struktur-Timer Verwaltung"
#: stock/templates/registered/timermanagement.html:13
msgid "Structure Timers"
msgstr "Struktur-Timer"
#: stock/templates/registered/timermanagement.html:26 #: stock/templates/registered/timermanagement.html:26
msgid "Corp Timers" msgid "Corp Timers"
msgstr "Corp Timer" 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 allianceauth.services.hooks import MenuItemHook, UrlHook
from django.utils.translation import ugettext_lazy as _
from allianceauth import hooks from allianceauth import hooks
from . import urls from . import urls
class OpTimerboardMenu(MenuItemHook): class OpTimerboardMenu(MenuItemHook):
def __init__(self): def __init__(self):
MenuItemHook.__init__(self, 'Fleet Operations', MenuItemHook.__init__(self, _('Fleet Operations'),
'fa fa-exclamation fa-fw', 'fa fa-exclamation fa-fw',
'optimer:view', 'optimer:view',
navactive=['optimer:']) navactive=['optimer:'])

View File

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

View File

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

View File

@ -1,11 +1,12 @@
{% extends "allianceauth/base.html" %} {% extends "allianceauth/base.html" %}
{% load i18n %}
{% block page_title %}Help{% endblock page_title %} {% block page_title %}{% trans "Help" %}{% endblock page_title %}
{% block content %} {% block content %}
<div class="col-lg-12"> <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="container-fluid">
<div class="embed-responsive embed-responsive-16by9"> <div class="embed-responsive embed-responsive-16by9">