Translation FR

This commit is contained in:
Marc Ducobu 2014-11-19 10:33:40 +01:00
parent 92465dd639
commit bae32d28cf
7 changed files with 30 additions and 63 deletions

View File

@ -38,7 +38,7 @@ class ReportType extends AbstractType
$builder
->add('user')
->add('date', 'date',
array('required' => false, 'widget' => 'single_text', 'format' => 'dd-MM-yyyy'))
array('required' => true, 'widget' => 'single_text', 'format' => 'dd-MM-yyyy'))
//->add('scope')
->add('cFData', 'custom_field',
array('attr' => array('class' => 'only-label'), 'group' => $options['cFGroup']))

View File

@ -0,0 +1,14 @@
'Report edit': "Edition d'un rapport"
'Save report': "Enregister le rapport"
'Reset report': "Remise à zéro"
'Add a report': "Ajout d'un rapport"
'Add report': 'Ajouter le rapport'
'Create a new report': 'Créer un nouveau rapport'
'Report view': "Détails d'un rapport"
'Update the report': 'Mettre à jour le rapport'
Details: Détails
Person: Personne
Scope: Scope
Date: Date
User: Utilisateur
'Report type': 'Type de rapport'

View File

@ -18,15 +18,15 @@
{% set activeRouteKey = 'report_select_type' %}
{% block title %}{{ 'Edition du rapport' |trans() }}{% endblock title %}
{% block title %}{{ 'Report edit' |trans }}{% endblock title %}
{% block personcontent %}
{{ form_start(edit_form) }}
{{ form_widget(edit_form) }}
<div class="grid-12 centered sticky-form-buttons">
<button class="sc-button green" type="submit"><i class="fa fa-save"></i> Save</button>
<button class="sc-button red" type="reset"><i class="fa fa-eraser"></i>Reset</button>
<button class="sc-button green" type="submit"><i class="fa fa-save"></i>{{ 'Save report'|trans }}</button>
<button class="sc-button red" type="reset"><i class="fa fa-eraser"></i>{{ 'Reset report'|trans }}</button>
</div>
{{ form_end(edit_form) }}
{% endblock %}

View File

@ -1,46 +0,0 @@
{#
* Copyright (C) 2014, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{% extends "ChillPersonBundle::layout.html.twig" %}
{% set activeRouteKey = 'report_select_type' %}
{% block title %}{{ 'List des rapports' |trans() }}{% endblock title %}
{% block personcontent %}
<table class="" style="width:100%">
<thead>
<tr>
<th>{{ 'Date' | trans }}</th>
<th>{{ 'Report Type' | trans }}</th>
<th>{{ 'Report Scope' | trans }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
{% for report in reports %}
<tr>
<td>{% if report.date %}{{ report.date|date('d-m-Y') }}{% endif %}</td>
<td>{{ report.cFGroup.getName(app.request.locale) }}</td>
<td>{{ report.scope }}</td>
<td><a href="{{ path('report_view', { 'person_id': report.person.id, 'report_id': report.id }) }}">{{ 'View' | trans }}</a></td>
<td><a href="{{ path('report_edit', { 'person_id': report.person.id, 'report_id': report.id }) }}">{{ 'Update' | trans }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}

View File

@ -18,15 +18,15 @@
{% set activeRouteKey = 'report_select_type' %}
{% block title %}{{ 'Ajout d\' un rapport' |trans() }}{% endblock title %}
{% block title %}{{ 'Add a report'|trans }}{% endblock title %}
{% block personcontent %}
{{ form_start(form) }}
{{ form_widget(form) }}
<div class="grid-12 centered sticky-form-buttons">
<button class="sc-button green" type="submit"><i class="fa fa-save"></i> Save</button>
<button class="sc-button red" type="reset"><i class="fa fa-eraser"></i>Reset</button>
<button class="sc-button green" type="submit"><i class="fa fa-save"></i>{{ 'Add report'|trans }}</button>
<button class="sc-button red" type="reset"><i class="fa fa-eraser"></i>{{ 'Reset report'|trans }}t</button>
</div>
{{ form_end(form) }}
{% endblock %}

View File

@ -18,17 +18,16 @@
{% set activeRouteKey = 'report_select_type' %}
{% block title %}{{ 'Ajout d\' un rapport' |trans() }}{% endblock title %}
{% block title %}{{ 'Add a report'|trans() }}{% endblock title %}
{% block personcontent %}
{{ form_start(form) }}
{{ form_row(form.cFGroup) }}
{{ form_widget(form.cFGroup) }}
<button class="sc-button green" type="submit">
<i class="fa fa-plus"></i>
Create a new report
{{ 'Create a new report'|trans }}
</button>
{{ form_end(form) }}

View File

@ -18,25 +18,25 @@
{% set activeRouteKey = 'report_select_type' %}
{% block title %}{{ 'Details d\' un rapport' |trans() }}{% endblock title %}
{% block title %}{{ 'Report view' |trans() }}{% endblock title %}
{% block personcontent %}
<a href="{{ path('report_edit', { 'person_id': entity.person.id, 'report_id': entity.id }) }}"><i class="fa fa-pencil"></i> {{ 'Update' | trans }}</a>
<a href="{{ path('report_edit', { 'person_id': entity.person.id, 'report_id': entity.id }) }}"><i class="fa fa-pencil"></i> {{ 'Update the report'|trans }}</a>
<h2>{{ 'Details'|trans }}</h2>
<dl>
<dt class="inline">{{ 'Personne'|trans }}</dt>
<dt class="inline">{{ 'Person'|trans }}</dt>
<dd>{{ entity.person }}</dd>
<!-- <dt class="inline">{{ 'Scope'|trans }}</dt>
<dd>{{ entity.scope }}</dd> -->
<dt class="inline">{{ 'Date'|trans }}</dt>
<dd>{{ entity.date|date('d-m-Y') }}</dd>
<dt class="inline">{{ 'Agent'|trans }}</dt>
<dt class="inline">{{ 'User'|trans }}</dt>
<dd>{{ entity.user }}</dd>
<dt class="inline">{{ 'Type de rapport'|trans }}</dt>
<dt class="inline">{{ 'Report type'|trans }}</dt>
<dd>{{ entity.cFGroup.getName(app.request.locale) }}</dd>
{% for customField in entity.cFGroup.customFields %}
@ -49,6 +49,6 @@
{% endfor %}
</dl>
<a href="{{ path('report_edit', { 'person_id': entity.person.id, 'report_id': entity.id }) }}"><i class="fa fa-pencil"></i> {{ 'Update' | trans }}</a>
<a href="{{ path('report_edit', { 'person_id': entity.person.id, 'report_id': entity.id }) }}"><i class="fa fa-pencil"></i> {{ 'Update the report' | trans }}</a>
{% endblock %}