Skip to content

Api/index.md 2ème partie sur 3 #48

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

Conversation

sylvainpolletvillard
Copy link
Member

le 2ème gros morceau, bon courage aux relecteurs

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.

Je referais une passe plus tard. J'ai vraiment du mal avec le mélange « anglais-français » du au variable de Vue en EN et au traduction FR.

Bon boulot en tout cas.

@@ -4,7 +4,7 @@ type: api

## Configuration globale

<p class="tip">**Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vuejs.org).**</p>`Vue.config` est un objet contenant les configurations globales de Vue. Vous pouvez modifier les propriétés listées ci-dessous avant de mettre en place votre application:
`Vue.config` est un objet contenant les configurations globales de Vue. Vous pouvez modifier les propriétés listées ci-dessous avant de mettre en place votre application:
Copy link
Member

Choose a reason for hiding this comment

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

espace après :

@@ -29,15 +29,15 @@ type: api
- **Utilisation :**

``` js
Vue.config.optionMergeStrategies._my_option = function (parent, child, vm) {
return child + 1
Vue.config.optionMergeStrategies._mon_option = function (parent, enfant, vm) {
Copy link
Member

Choose a reason for hiding this comment

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

Je vois que tu traduis les variables dans l'API. Aucune variable n'a été traduite dans le guide (les valeurs si, mais leur nom non).

Je vais ouvrir une issue pour des avis.

Pour ma part je les traduirais pas, mais MDN les traduits, et toi aussi donc ça fait déjà du monde contre moi haha !

Copy link
Member Author

Choose a reason for hiding this comment

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

ça présente aussi l'avantage de bien différencier les API Vue et les variables utilisateur dans les exemples


- **Arguments :**
- `{Function} [callback]`
- `{Object} [context]`
- `{Object} [contexte]`

- **Utilisation :**

Reporte l'exécution du callback au prochain cycle de mise à jour du DOM. Utilisez-le immédiatement après avoir changé des données afin d'attendre la mise à jour du DOM.
Copy link
Member

Choose a reason for hiding this comment

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

de la callback (de la fonction de rappel / fonction de retour https://fr.wikipedia.org/wiki/Fonction_de_rappel)

Copy link
Member Author

@sylvainpolletvillard sylvainpolletvillard Apr 22, 2017

Choose a reason for hiding this comment

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

Un callback est la traduction la plus courante:
image


> Also works with on Array + index in 2.2.0+.
> Fonctionne aussi avec une `Array` + index en 2.2.0+.
Copy link
Member

Choose a reason for hiding this comment

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

un Array (un tableau)


- **Arguments :**
- `{string} id`
- `{Function | Object} [definition]`
- `{Function | Object} [définition]`

- **Utilisation :**

Inscrit ou récupère un composant global. L'inscription assigne aussi automatiquement la propriété `name` du composant au paramètre `id` donné.
Copy link
Member

Choose a reason for hiding this comment

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

je crois que les termes assign doivent être traduit par affecter

Copy link
Member Author

Choose a reason for hiding this comment

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

ce sont des synonymes, on trouve les deux dans la littérature


- **Voir aussi :** [Functional Components](../guide/render-function.html#Functional-Components)
- **Voir aussi :** [Composants Fonctionnels](../guide/render-function.html#Functional-Components)
Copy link
Member

Choose a reason for hiding this comment

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

Màj

- [Content Distribution with Slots](../guide/components.html#Content-Distribution-with-Slots)
- [Render Functions: Slots](../guide/render-function.html#Slots)
- [`Composant <slot>`](#slot-1)
- [Distribution de Contenu avec des Slots](../guide/components.html#Content-Distribution-with-Slots)
Copy link
Member

Choose a reason for hiding this comment

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

Maj

- [Content Distribution with Slots](../guide/components.html#Content-Distribution-with-Slots)
- [Render Functions: Slots](../guide/render-function.html#Slots)
- [`Composant <slot>`](#slot-1)
- [Distribution de Contenu avec des Slots](../guide/components.html#Content-Distribution-with-Slots)
Copy link
Member

Choose a reason for hiding this comment

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

Maj

- [`<slot>` Component](#slot-1)
- [Scoped Slots](../guide/components.html#Scoped-Slots)
- [Render Functions: Slots](../guide/render-function.html#Slots)
- [Composant `<slot>`](#slot-1)
Copy link
Member

Choose a reason for hiding this comment

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

Idem


- **Voir aussi :** [Vue.delete](#Vue-delete)

## Instance Methods / Events
## Méthodes et Événements d'Instance
Copy link
Member

Choose a reason for hiding this comment

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

pas de majuscule au dela du premier mot pour un titre français

@sylvainpolletvillard
Copy link
Member Author

Je ne suis pas d'accord avec toi sur la question des majuscules, pour moi il faut les garder car c'est un style intentionnel dans le texte d'origine.

@MachinisteWeb
Copy link
Member

Effectivement on trouve aussi « un callback ». Jamais entendu dans mon coin. Haute-Savoie et Genève c'est une callback. Ça me gène pas plus que ça juste que j'ai du mettre « une » si je l'ai croisé dans le guide, mais j'imagine que tu l'aurais vu.

Pour les titres c'est pareil si tu veux les garder, c'est pas moi qui traduit l'API hein. Pour le guide, chaque titre a été mis en minuscule (sauf première lettre) mais encore une fois je m'en tape.

Et pour les exemples FR c'est un bon point que tu soulèves pour la différence FR - EN. Mon cerveau y est surement pas habitué alors dans les fait je m'en fou aussi.

Bon pour moi.

@MachinisteWeb
Copy link
Member

Ce fichier a été mis à jour avec la v2.4.0 !

@sylvainpolletvillard
Copy link
Member Author

Est-ce que cette PR peut être mergée pour que je puisse continuer sur la 3ème et dernière partie de ce fichier ?

@MachinisteWeb
Copy link
Member

MachinisteWeb commented May 29, 2017

Bon pour moi. Je ferrais une re-review global à la fin. Ça sera long mais plus pratique.

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.

2 participants