mirror of
https://framagit.org/tom79/fediplan.git
synced 2025-04-06 06:01:50 +02:00
Fix translations
This commit is contained in:
parent
d3d4fbe396
commit
b984f2bd50
2 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
{% trans_default_domain 'fediplan' %}
|
||||||
<header>
|
<header>
|
||||||
<!-- Fixed navbar -->
|
<!-- Fixed navbar -->
|
||||||
<nav class="navbar navbar-expand-md navbar-light fixed-top bg-light">
|
<nav class="navbar navbar-expand-md navbar-light fixed-top bg-light">
|
||||||
|
@ -9,20 +10,20 @@
|
||||||
<ul class="navbar-nav mr-auto">
|
<ul class="navbar-nav mr-auto">
|
||||||
{% if not is_granted('ROLE_USER') %}
|
{% if not is_granted('ROLE_USER') %}
|
||||||
<li class="nav-item {% if app.request.attributes.get('_route') == 'index' %} active {% endif %}">
|
<li class="nav-item {% if app.request.attributes.get('_route') == 'index' %} active {% endif %}">
|
||||||
<a class="nav-link" href="{{ path('index') }}">Login <span class="sr-only">(current)</span></a>
|
<a class="nav-link" href="{{ path('index') }}">{{ 'common.login'|trans }} <span class="sr-only">(current)</span></a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if is_granted('ROLE_USER') %}
|
{% if is_granted('ROLE_USER') %}
|
||||||
<li class="nav-item {% if "articles" in app.request.attributes.get('schedule') %} active {% endif %}">
|
<li class="nav-item {% if "articles" in app.request.attributes.get('schedule') %} active {% endif %}">
|
||||||
<a class="nav-link" href="{{ path('schedule') }}">Shedule</a>
|
<a class="nav-link" href="{{ path('schedule') }}">{{ 'common.schedule'|trans }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item {% if app.request.attributes.get('_route') == 'scheduled' %} active {% endif %}">
|
<li class="nav-item {% if app.request.attributes.get('_route') == 'scheduled' %} active {% endif %}">
|
||||||
<a class="nav-link" href="{{ path('scheduled') }}">scheduled</a>
|
<a class="nav-link" href="{{ path('scheduled') }}">{{ 'common.scheduled'|trans }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ path('logout') }}" tabindex="-1" >Logout</a>
|
<a class="nav-link" href="{{ path('logout') }}" tabindex="-1" >{{ 'common.logout'|trans }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
|
|
@ -5,6 +5,7 @@ common:
|
||||||
login: Login
|
login: Login
|
||||||
schedule: Schedule
|
schedule: Schedule
|
||||||
scheduled: Scheduled
|
scheduled: Scheduled
|
||||||
|
logout: Logout
|
||||||
status:
|
status:
|
||||||
visibility:
|
visibility:
|
||||||
public: Public
|
public: Public
|
||||||
|
|
Loading…
Add table
Reference in a new issue