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,52 +1096,57 @@ msgid "Main Navigation"
msgstr "Haupmenü" msgstr "Haupmenü"
#: stock/templates/registered/base.html:106 #: stock/templates/registered/base.html:106
msgid " Dashboard" #: stock/templates/registered/dashboard.html:5
msgstr " Dashboard" #: stock/templates/registered/dashboard.html:9
msgid "Dashboard"
msgstr "Dashboard"
#: stock/templates/registered/base.html:113 #: stock/templates/registered/base.html:113
msgid " Groups" #: stock/templates/registered/dashboard.html:52
msgstr " Gruppen" msgid "Groups"
msgstr "Gruppen"
#: stock/templates/registered/base.html:120 #: stock/templates/registered/base.html:120
msgid " Help" msgid "Help"
msgstr " Hilfe" msgstr "Hilfe"
#: stock/templates/registered/base.html:126 #: stock/templates/registered/base.html:126
msgid "Aux Navigation" msgid "Aux Navigation"
msgstr "Zusatz Navigation" msgstr "Zusatz Navigation"
#: stock/templates/registered/base.html:131 #: stock/templates/registered/base.html:131
msgid " Services" msgid "Services"
msgstr " Dienste" msgstr "Dienste"
#: stock/templates/registered/base.html:140 #: stock/templates/registered/base.html:140
msgid " Applications" msgid "Applications"
msgstr " Bewerbungen" msgstr "Bewerbungen"
#: stock/templates/registered/base.html:148 #: stock/templates/registered/base.html:148
msgid " Corporation Stats" msgid "Corporation Stats"
msgstr " Korporationsstatistiken" msgstr "Korporationsstatistiken"
#: stock/templates/registered/base.html:156 #: stock/templates/registered/base.html:156
msgid " Group Management" #: stock/templates/registered/groupmanagementmenu.html:14
msgstr " Gruppenverwaltung" msgid "Group Management"
msgstr "Gruppenverwaltung"
#: stock/templates/registered/base.html:174 #: stock/templates/registered/base.html:174
msgid " Fleet Operations" msgid "Fleet Operations"
msgstr " Flottenoperationen" msgstr "Flottenoperationen"
#: stock/templates/registered/base.html:181 #: stock/templates/registered/base.html:181
msgid " Structure Timers" #: stock/templates/registered/timermanagement.html:13
msgstr " Strukturen Timer" msgid "Structure Timers"
msgstr "Strukturen Timer"
#: stock/templates/registered/base.html:188 #: stock/templates/registered/base.html:188
msgid " Fleet Activity Tracking" msgid "Fleet Activity Tracking"
msgstr " Flottenaktivitäts-Tracking" msgstr "Flottenaktivitäts-Tracking"
#: stock/templates/registered/base.html:194 #: stock/templates/registered/base.html:194
msgid " Ship Replacement" msgid "Ship Replacement"
msgstr " Schiffs erstattung" msgstr "Schiffs erstattung"
#: stock/templates/registered/base.html:200 #: stock/templates/registered/base.html:200
msgid "Util" msgid "Util"
@ -1156,7 +1161,7 @@ msgid "Change Password"
msgstr "Passwort ändern" msgstr "Passwort ändern"
#: stock/templates/registered/base.html:211 #: stock/templates/registered/base.html:211
msgid " Fleet Broadcast Formatter" msgid "Fleet Broadcast Formatter"
msgstr "Flottenübertragungen Formatierer " msgstr "Flottenübertragungen Formatierer "
#: stock/templates/public/login.html:57 #: stock/templates/public/login.html:57
@ -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">

View File

@ -7,12 +7,12 @@
<li> <li>
<a class="{% navactive request 'authentication:dashboard' %}" <a class="{% navactive request 'authentication:dashboard' %}"
href="{% url 'authentication:dashboard' %}"> href="{% url 'authentication:dashboard' %}">
<i class="fa fa-dashboard fa-fw"></i>{% trans " Dashboard" %} <i class="fa fa-dashboard fa-fw"></i> {% trans "Dashboard" %}
</a> </a>
</li> </li>
<li> <li>
<a class="{% navactive request 'groupmanagement:groups' %}" href="{% url 'groupmanagement:groups' %}"> <a class="{% navactive request 'groupmanagement:groups' %}" href="{% url 'groupmanagement:groups' %}">
<i class="fa fa-cogs fa-fw fa-sitemap"></i>{% trans " Groups" %} <i class="fa fa-cogs fa-fw fa-sitemap"></i> {% trans "Groups" %}
</a> </a>
</li> </li>
@ -20,7 +20,7 @@
<li> <li>
<a class="{% navactive request 'groupmanagement:management groupmanagement:membership groupmanagement:membership_list' %}" <a class="{% navactive request 'groupmanagement:management groupmanagement:membership groupmanagement:membership_list' %}"
href="{% url 'groupmanagement:management' %}"> href="{% url 'groupmanagement:management' %}">
<i class="fa fa-lock fa-sitemap fa-fw"></i>{% trans " Group Management" %} <i class="fa fa-lock fa-sitemap fa-fw"></i> {% trans "Group Management" %}
</a> </a>
</li> </li>
{% endif %} {% endif %}
@ -30,7 +30,7 @@
<li> <li>
<a class="{% navactive request 'authentication:help' %}" <a class="{% navactive request 'authentication:help' %}"
href="{% url 'authentication:help' %}"> href="{% url 'authentication:help' %}">
<i class="fa fa-question fa-fw"></i>{% trans " Help" %} <i class="fa fa-question fa-fw"></i> {% trans "Help" %}
</a> </a>
</li> </li>
</ul> </ul>