Skip to content

Traduction transitions.md #47

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

Merged
merged 8 commits into from
Jun 16, 2017

Conversation

forresst
Copy link

Cette page est en cours de traduction.

@MachinisteWeb
Copy link
Member

Dis nous quand tu es prèt pour la review ;)

@MachinisteWeb
Copy link
Member

Transition a été mis à jour « Toggle » devient « Toggle Render », n'oubli pas de faire le changement.

@MachinisteWeb
Copy link
Member

MachinisteWeb commented May 10, 2017

Actuellement transition.md est le prochain fichier à traduire pour lire le guide en FR

Il faut mettre à jour ta version de travail @forresst vis à vis de la master.

Tu as besoin d'aide ?

@MachinisteWeb
Copy link
Member

@forresst est tu parmis nous :)

@forresst
Copy link
Author

Oui "toujours vivant, rassurez-vous", mais très peu dispo en ce moment. Désolé, j'espère une fin de mois plus calme.

@MachinisteWeb
Copy link
Member

Ça avance :)

@forresst
Copy link
Author

forresst commented Jun 2, 2017

Oui, j'ai un peu plus de disponibilité, mais j'ai encore au moins 50% à faire. Désolé !

@forresst
Copy link
Author

forresst commented Jun 6, 2017

J'ai encore une relecture générale à faire et vous pourrez commencer la relecture. Je vous tiens au courant.

@forresst
Copy link
Author

forresst commented Jun 6, 2017

Traduction terminée, merci pour vos relectures

Copy link
Member

@MachinisteWeb MachinisteWeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pas énormément de fautes. Belle review. J'ai laissé mes commentaires. Je te laisse traiter ce qui fait du sens et me faire des retours sur ce qui t'ennui.

Bien joué !

@@ -1486,7 +1486,7 @@ Vue.component('my-special-transition', {
render: function (createElement, context) {
var data = {
props: {
name: 'very-special-transition',
name: 'very-special-transition'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remettre la virgule :)


Vue provides a `transition` wrapper component, allowing you to add entering/leaving transitions for any element or component in the following contexts:
Vue fournit un composant conteneur `transition`, vous permettant d’ajouter des transitions entrantes/sortantes pour n’importe quel élément ou composant dans les contextes suivants :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d'ajouter

(apostrophe simple)

n'importe

(apostrophe simple)


2. `v-enter-active`: Active state for enter. Applied during the entire entering phase. Added before element is inserted, removed when transition/animation finishes. This class can be used to define the duration, delay and easing curve for the entering transition.
2. `v-enter-active`: C'est l'état actif pour *enter*. Il est appliqué pendant toute la phase *enter*. Il est ajouté avant que l'élément soit inséré, il est supprimé lorsque la transition/animation est terminée. Cette classe peut être utilisée pour définir la durée, le retard et la courbe d’accélération pour la transition entrante (enter).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d'accélération

(apostrophe)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enter fait le job, on peut retirer (enter)


4. `v-leave`: Starting state for leave. Added immediately when a leaving transition is triggered, removed after one frame.
4. `v-leave`: C'est l'état de départ pour *leave*. Il est ajouté dès qu'une transition sortante (leave) est déclenchée, il est supprimé une fois faite.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

supprimé après une frame.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave fait le job, on peut retirer (leave)


`v-enter-active` and `v-leave-active` give you the ability to specify different easing curves for enter/leave transitions, which you'll see an example of in the following section.
`v-enter-active` et `v-leave-active` vous donne la possibilité de spécifier des courbes d’accélération pour les transitions enter/leave, nous allons les voir dans un exemple dans la section suivante.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transitions entrante/sortante


<p class="tip">When toggling between elements that have **the same tag name**, you must tell Vue that they are distinct elements by giving them unique `key` attributes. Otherwise, Vue's compiler will only replace the content of the element for efficiency. Even when technically unnecessary though, **it's considered good practice to always key multiple items within a `<transition>` component.**</p>
<p class="tip">Lors de la permutation entre des éléments qui ont **le même nom de balise**, vous devez indiquer à Vue qu’ils sont des éléments distincts en lui donnant des attributs `key` uniques. Sinon, le compilateur de Vue ne remplacera que le contenu de l'élément dans le but d'être efficace. Cependant, même si c'est techniquement inutile, **c'est considéré comme une bonne pratique de toujours avoir une clé pour chaque élément dans un composant `<transition>`.**</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qu'il

(apostrophe)

</button>
</transition>
```

In these cases, you can also use the `key` attribute to transition between different states of the same element. Instead of using `v-if` and `v-else`, the above example could be rewritten as:
Dans ces cas, vous pouvez aussi utiliser l'attribut `key` pour effectuer une transition entre différents états du même élément. Au lieu d’utiliser `v-if` et `v-else`, l’exemple ci-dessus pourrait être réécrit ainsi :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l'exemple

(apostrophe)


The `in-out` mode isn't used as often, but can sometimes be useful for a slightly different transition effect. Let's try combining it with the slide-fade transition we worked on earlier:
Le mode `in-out` n’est pas utilisé aussi souvent, mais peut parfois être utile pour un effet de transition un peu différent. Essayons de le combiner avec la transition diapositive sur laquelle nous avons travaillé précédemment.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n'est

(apostrophe)

@@ -1238,16 +1238,16 @@ new Vue({
</style>
{% endraw %}

<p class="tip">One important note is that these FLIP transitions do not work with elements set to `display: inline`. As an alternative, you can use `display: inline-block` or place elements in a flex context.</p>
<p class="tip">Un point important à noter, c'est que ces transitions FLIP ne fonctionnent pas si des éléments sont configurés avec `display: inline`. Comme alternative, vous pouvez utiliser `display: inline-block` ou placer des éléments dans un contexte flexible.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Un point important à noter est que

ou

Un point important est a noter : ces transitions FLIP

@@ -1303,9 +1303,9 @@ new Vue({
</style>
{% endraw %}

### Staggering List Transitions
### Echelonnage des transitions de liste
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Échelonnage

@MachinisteWeb MachinisteWeb changed the title Traduction transitions.md Traduction transitions.md Jun 12, 2017
@MachinisteWeb
Copy link
Member

Petites modifs pour moi @forresst :)

@forresst
Copy link
Author

@haeresis Done

Copy link
Member

@sylvainpolletvillard sylvainpolletvillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seconde relecture


3. If no CSS transitions/animations are detected and no JavaScript hooks are provided, the DOM operations for insertion and/or removal will be executed immediately on next frame (Note: this is a browser animation frame, different from Vue's concept of `nextTick`).
3. Si aucune transition/animation CSS n'est détectée et qu'aucun hook JavaScript n'est fourni, les opérations du DOM pour l'insertion et/ou la suppression seront exécutées immédiatement sur la frame suivante (Remarque : il s'agit d'une frame d'animation du navigateur, différente du concept de `nextTick`).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

à la frame suivante


`v-enter-active` and `v-leave-active` give you the ability to specify different easing curves for enter/leave transitions, which you'll see an example of in the following section.
`v-enter-active` et `v-leave-active` vous donne la possibilité de spécifier des courbes d'accélération pour les transitions entrantes/sortantes, nous allons les voir dans un exemple dans la section suivante.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vous donnent

ce que nous verrons en exemple dans la section suivante.

// the done callback is optional when
// used in combination with CSS
// la fonction de rappel done est facultative quand
// c'est utilisé en combinaison avec du CSS

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quand utilisée

// the done callback is optional when
// used in combination with CSS
// la fonction de rappel done est facultative quand
// c'est utilisé en combinaison avec du CSS

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quand utilisée

@@ -693,9 +693,9 @@ new Vue({
</style>
{% endraw %}

As it's transitioning between the "on" button and the "off" button, both buttons are rendered - one transitioning out while the other transitions in. This is the default behavior of `<transition>` - entering and leaving happens simultaneously.
Comme c'est une transition entre le bouton « on » et le bouton « off », les deux boutons sont rendus (La transition en fait apparaître un pendant qu'elle fait disparaître l'autre). Il s'agit du comportement par défaut de `<transition>` (l'entrée et la sortie se font simultanément).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

les deux boutons sont rendus - l'un est en transition sortante pendant que l'autre est en transition entrante


- `in-out`: New element transitions in first, then when complete, the current element transitions out.
- `in-out`: Les transitions du nouvel élément se passent en premier, puis quand elles sont terminées, les transitions de l'élément actuel s'effectuent.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(note: transitions n'est ici pas le nom pluriel mais la conjugaison du verbe to transition, "transitionner" en français. C'est un néologisme mais on peut se débrouiller pour ne pas l'utiliser)

La transition entrante du nouvel élément s'effectue en premier, puis une fois terminée, déclenche la transition sortante de l'élément courant

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci j'avoue avoir eu du mal à traduire cette partie. Avec ton explication cela devient limpide.


- `out-in`: Current element transitions out first, then when complete, the new element transitions in.
- `out-in`: Les transitions de l'élément actuel se passent en premier, puis quand elles sont terminées, les transitions du nouvel élément s'effectuent.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La transition sortante de l'élément courant s'effectue en premier, puis une fois terminée, déclenche la transition entrante du nouvel élément


```html
<transition v-bind:name="transitionName">
<!-- ... -->
</transition>
```

This can be useful when you've defined CSS transitions/animations using Vue's transition class conventions and simply want to switch between them.
Cela peut être utile quand vous avez défini des transitions/animations CSS à l'aide des conventions de classe de transition de Vue et que vous souhaitez simplement basculer entre elles.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

de classes


Really though, any transition attribute can be dynamically bound. And it's not just attributes. Since event hooks are just methods, they have access to any data in the context. That means depending on the state of your component, your JavaScript transitions can behave differently.
Vraiment bien, tout attribut de transition peut être dynamiquement lié. Et ce ne sont pas seulement des attributs. Étant donné que les hooks d'événements ne sont que des méthodes, ils ont accès à toutes les données dans le contexte. Cela signifie que selon l'état de votre composant, le JavaScript de vos transitions peuvent se comporter différemment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really through =>En vérité / En réalité

Et il ne s'agit pas seulement des attributs

, vos transitions JavaScript peuvent

@@ -1645,5 +1645,4 @@ new Vue({
</script>
{% endraw %}

Finally, the ultimate way of creating dynamic transitions is through components that accept props to change the nature of the transition(s) to be used. It may sound cheesy, but the only limit really is your imagination.

Finalement, le meilleur moyen de créer des transitions dynamiques, c'est par le biais de composants qui acceptent des props pour changer la nature de la transition(s) à utiliser. Cela peut sembler ringard, mais la seule limite est votre imagination.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

de ou des transitions à utiliser

cheesy => "mielleux" dans ce contexte ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Génial le « mielleux ». »

@forresst
Copy link
Author

@sylvainpolletvillard Done

@sylvainpolletvillard
Copy link
Member

2 relectures OK, bon pour merge

@sylvainpolletvillard sylvainpolletvillard merged commit bbbef6a into vuejs-fr:master Jun 16, 2017
@forresst forresst deleted the translate-transitions branch June 16, 2017 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants