-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Début i18n #250
Merged
Merged
Début i18n #250
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block title %}Espace utilisateur{% endblock %} | ||
{% block title %}{{ 'nav.section.volunteer' | trans }}{% endblock %} | ||
|
||
{% block body %} | ||
{{ include('misc/flash-messages.html.twig') }} | ||
<h1>Bienvenue, {{ app.user.fullName }}</h1> | ||
<p>NIVOL : {{ app.user.identificationNumber }}</p> | ||
<p><a class="btn btn-primary" href="{{ path('user_edit') }}" role="button">Modifier mes informations</a></p> | ||
<h1>{{ 'nav.welcome' | trans }}, {{ app.user.fullName }}</h1> | ||
<p>{{ 'user.identificationNumber' | trans }} : {{ app.user.identificationNumber }}</p> | ||
<p><a class="btn btn-primary" href="{{ path('user_edit') }}" role="button">{{ 'user.editMyInfo' | trans }}</a></p> | ||
|
||
<p>Semaine actuelle : du {{ 'this week' | date('d/m/Y') }} au {{ 'sunday this week' | date('d/m/Y') }}</p> | ||
<p><a class="btn btn-outline-primary" href="{{ path('user_availability') }}" role="button">Mes disponibilités pour la semaine courante</a></p> | ||
<p>{{ 'calendar.week.current' | trans }} : {{ 'calendar.from' | trans }} {{ 'this week' | date('d/m/Y') }} {{ 'calendar.to' | trans }} {{ 'sunday this week' | date('d/m/Y') }}</p> | ||
<p><a class="btn btn-outline-primary" href="{{ path('user_availability') }}" role="button">{{ 'user.availabilityCurrentWeek' | trans }}</a></p> | ||
|
||
<p>Semaine prochaine : du {{ 'next week' | date('d/m/Y') }} au {{ 'sunday next week' | date('d/m/Y') }}</p> | ||
<p><a class="btn btn-outline-primary" href="{{ path('user_availability', { week: 'next week'|date('o-\\WW') }) }}" role="button">Mes disponibilités pour la semaine prochaine</a></p> | ||
<p>{{ 'calendar.week.next' | trans }} : {{ 'calendar.from' | trans }} {{ 'next week' | date('d/m/Y') }} {{ 'calendar.to' | trans }} {{ 'sunday next week' | date('d/m/Y') }}</p> | ||
vincentchalamon marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<p><a class="btn btn-outline-primary" href="{{ path('user_availability', { week: 'next week'|date('o-\\WW') }) }}" role="button">{{ 'user.availabilityNextWeek' | trans }}</a></p> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
Submit: Enregistrer | ||
action.login: Connexion | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. on yaml files, you can use objects: action:
login:
connect: Connexion
submit: Je me connecte
logout: Déconnexion
... |
||
action.loginSubmit: Je me connecte | ||
action.logout: Déconnexion | ||
action.rememberMe: Se souvenir de moi | ||
action.submit: Enregistrer | ||
calendar.week: | ||
current: Semaine actuelle | ||
next: Semaine prochaine | ||
calendar.from: du | ||
calendar.to: au | ||
nav.home: Accueil | ||
nav.section: | ||
volunteer: Espace bénévole | ||
organization: Espace structure | ||
nav.welcome: Bienvenue | ||
project.contribute: Contribuez au projet | ||
project.description: Réserve opérationnelle - Croix-Rouge Française à Paris | ||
project.name: ResOP | ||
user.availabilityCurrentWeek: Mes disponibilités pour la semaine courante | ||
user.availabilityNextWeek: Mes disponibilités pour la semaine prochaine | ||
user.createMyAccount: Créer mon compte | ||
user.dob: Date de naissance | ||
user.editMyInfo: Modifier mes informations | ||
user.login: Numéro NIVOL ou Adresse e-mail | ||
user.identificationNumber: NIVOL |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here you should use a parameter with a
%name%
parameter, as we won't always haveword
+,
+name
.For example :
nav.welcome: Hello %name%
.{{ 'nav.welcome'|trans({'%name%': app.user.fullName)) }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://symfony.com/doc/current/translation/templates.html