translation files and menu

This commit is contained in:
Baptiste Lemoine 2018-09-18 16:36:14 +02:00
parent 3501cf503f
commit 774eb41cf7
22 changed files with 49 additions and 31 deletions

View File

@ -1,4 +1,4 @@
{% trans_default_domain 'FOSUserBundle' %}
{{ form_start(form, { 'action': path('fos_user_change_password'), 'attr': { 'class': 'fos_user_change_password' } }) }}
{{ form_widget(form) }}

View File

@ -1,6 +1,5 @@
{% extends "@FOSUser/layout.html.twig" %}
{% trans_default_domain 'FOSUserBundle' %}
{% block fos_user_content %}
<p>{{ 'registration.check_email'|trans({'%email%': user.email}) }}</p>

View File

@ -1,6 +1,5 @@
{% extends "@FOSUser/layout.html.twig" %}
{% trans_default_domain 'FOSUserBundle' %}
{% block fos_user_content %}
<p>{{ 'registration.confirmed'|trans({'%username%': user.username}) }}</p>

View File

@ -1,4 +1,3 @@
{% trans_default_domain 'FOSUserBundle' %}
{% block subject %}
{%- autoescape false -%}
{{ 'registration.email.subject'|trans({'%username%': user.username, '%confirmationUrl%': confirmationUrl}) }}

View File

@ -1,4 +1,3 @@
{% trans_default_domain 'FOSUserBundle' %}
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
{{ form_widget(form) }}

View File

@ -1,5 +1,4 @@
{% extends "@FOSUser/layout.html.twig" %}
{% trans_default_domain 'FOSUserBundle' %}
{% block fos_user_content %}
<div class="row">
<div class="col-xs-6">

View File

@ -1,5 +1,4 @@
{% extends "@FOSUser/layout.html.twig" %}
{% trans_default_domain 'FOSUserBundle' %}
{% block fos_user_content %}
<div class="row">
<div class="col-xs-12 col-sm-6">

View File

@ -1,5 +1,3 @@
{% trans_default_domain 'FOSUserBundle' %}
{% if error %}
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}

View File

@ -1,5 +1,4 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'FOSUserBundle' %}
{% block title %}Caisse{% endblock %}
{% block bigMain %}

View File

@ -1,4 +1,3 @@
{% trans_default_domain 'FOSUserBundle' %}
{% extends '@HWIOAuth/layout.html.twig' %}
{% block bigMain %}
{% include 'default/header.html.twig' %}

View File

@ -5,7 +5,6 @@
<h2>Le login</h2>
<div class="row">
<div class="col-xs-6">
{% trans_default_domain 'FOSUserBundle' %}
{% if error %}
<div>{{ error|trans }}</div>

View File

@ -1,6 +1,4 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'FOSUserBundle' %}
{% block bigMain %}
{% include 'default/main-screen.html.twig' %}

View File

@ -1,4 +1,3 @@
{% trans_default_domain 'FOSUserBundle' %}
{% block loginchoices %}
<div class="loginland ">
@ -12,7 +11,8 @@
<li>
<a href="{{ path('homepage') }}" class="btn btn-default logo-home pull-left">
<i class="fa fa-home"></i>
Caisse Bliss
{% trans %}menu.title{% endtrans %}
</a>
</li>
<li>
@ -22,7 +22,7 @@
btn-default
{% endif %}" href="{{ path('dashboard') }}">
<i class="fa fa-list"></i>
Dashboard
{% trans %}menu.dashboard{% endtrans %}
</a>
</li>
<li>
@ -33,8 +33,7 @@
{% endif %} "
href="{{ path('productcategory_index') }}">
<i class="fa fa-file-archive-o"></i>
Catégories
{% trans %}menu.categories{% endtrans %}
<span class="badge">
{{ app.user.categories|length }}
</span>
@ -49,7 +48,7 @@
href="{{ path('product_index') }}"
>
<i class="fa fa-gears"></i>
Produits
{% trans %}menu.products{% endtrans %}
<span class="badge">
{{ app.user.products|length }}
</span>
@ -64,7 +63,8 @@
" href='{{ path('festival_index') }}'
>
<i class="fa fa-th-large"></i>
Festivals
{% trans %}menu.festivals{% endtrans %}
<span class="badge">
{{ app.user.festivals|length }}
</span>
@ -78,7 +78,7 @@
{% endif %}" href="{{ path('history') }}"
>
<i class="fa fa-clock-o"></i>
Historique
{% trans %}menu.history{% endtrans %}
</a>
</li>
<li>
@ -90,7 +90,8 @@
{% endif %}" href="{{ path('import') }}"
>
<i class="fa fa-arrow-circle-o-up"></i>
Import
{% trans %}menu.import{% endtrans %}
</a>
</li>
<li>
@ -102,14 +103,16 @@
{% endif %}" href="{{ path('previsionnel') }}"
>
<i class="fa fa-arrow-circle-o-up"></i>
Prévisionnel
{% trans %}menu.future{% endtrans %}
</a>
</li>
</ul>
</div>
</div>
<div class="col-xs-3 text-right">
Bonjour
{% trans %}user.greet{% endtrans %}
<a href="{{ path('fos_user_profile_edit') }}">
<i class="fa fa-user"></i>
@ -118,7 +121,8 @@
</a>
|
<a class="btn btn-default" href="{{ path('fos_user_security_logout') }}">
Déconnexion
{% trans %}layout.logout{% endtrans %}
</a>
</div>
</div>

View File

@ -1,5 +1,4 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'FOSUserBundle' %}
{% block body %}
<div id="wrapper">
<div id="container" class="container">

View File

@ -1,5 +1,4 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'FOSUserBundle' %}
{% block body %}
<div id="wrapper">
<div id="container" class="container">

View File

@ -1,5 +1,4 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'FOSUserBundle' %}
{% block body %}
<h1>Importation, création en masse</h1>

View File

@ -1,5 +1,4 @@
{% extends 'base.html.twig' %}
{% trans_default_domain 'FOSUserBundle' %}
{% block body %}
{% verbatim %}

View File

@ -1,2 +1,3 @@
layout.logout: __layout.logout
layout.register: __layout.register
layout.login: __layout.login

View File

@ -0,0 +1,15 @@
layout.login: login
layout.logout: logout
layout.register: subscribe
'Symfony is great': 'J''aime Symfony'
menu:
title: Caisse Bliss
dashboard: Dashboard
history: History
import: Import
festival: Festivals
products: Products
categories: Categories
future: Forecast
user:
greet: Hi

0
translations/de → translations/messages.en.yml~ Executable file → Normal file
View File

15
translations/messages.fr.yaml Executable file
View File

@ -0,0 +1,15 @@
layout.login: Connexion
layout.logout: Déconnexion
layout.register: Inscription
'Symfony is great': 'J''aime Symfony'
menu:
title: Caisse Bliss
dashboard: Dashboard
history: Historique
import: Importer
festival: Festivals
products: Produits
categories: Catégories
future: Prévisionnel
user:
greet: Bonjour

2
translations/en → translations/messages.fr.yml~ Executable file → Normal file
View File

@ -1,3 +1,3 @@
---
layout.logout: __layout.logout
layout.register: __layout.register
'Symfony is great': 'J''aime Symfony'