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

View File

@ -7,12 +7,12 @@
<li>
<a class="{% navactive request '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>
</li>
<li>
<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>
</li>
@ -20,7 +20,7 @@
<li>
<a class="{% navactive request 'groupmanagement:management groupmanagement:membership groupmanagement:membership_list' %}"
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>
</li>
{% endif %}
@ -30,7 +30,7 @@
<li>
<a class="{% navactive request '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>
</li>
</ul>