Skip to content

Traduction de cookbook/form-validation.md #168

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 12 commits into from
Dec 13, 2018

Conversation

cedlemo
Copy link

@cedlemo cedlemo commented Oct 23, 2018

No description provided.

@MachinisteWeb
Copy link
Member

Cette page est prête pour une revue @cedlemo ?

@MachinisteWeb MachinisteWeb changed the title Proposition de traduction de la page form-validation [WIP] Traduction de form-validation Nov 5, 2018
@MachinisteWeb MachinisteWeb changed the title [WIP] Traduction de form-validation [WIP] Traduction de cookbook/form-validation.md Nov 5, 2018
@cedlemo
Copy link
Author

cedlemo commented Nov 5, 2018

@haeresis ,

oui, je l'ai "pushée" dès qu'elle était prête.

@MachinisteWeb MachinisteWeb changed the title [WIP] Traduction de cookbook/form-validation.md Traduction de cookbook/form-validation.md Nov 5, 2018
@@ -323,14 +324,14 @@ const app = new Vue({
})
```

We set up the total value as a computed value, and outside of that bug I ran into, it was simple enough to setup. My checkForm method now just needs to see if the total is 100 and that's it. You can play with this here:
Copy link

Choose a reason for hiding this comment

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

Il faut éviter les mots comme "simple", "juste", qui peuvent être décourageants pour des débutants qui ne trouvent pas ça simple et intuitif.

Copy link
Author

Choose a reason for hiding this comment

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

@rsp, fait.


In my final example, we built something that makes use of Ajax to validate at the server. The form will ask you to name a new product and will then check to ensure that the name is unique. We wrote a quick [OpenWhisk](http://openwhisk.apache.org/) serverless action to do the validation. While it isn't terribly important, here is the logic:
Dans mon dernier exemple, nous contruisons quelquechose qui utilise Ajax afin de valider via le serveur. Le formulaire va vous demander de nommer un nouveau produit et ensuite s'assurer que ce nom est unique. Nous avons écrit une rapide [OpenWhisk](http://openwhisk.apache.org/) action sans serveur pour gèrer la validation, voici la logique de cette action.
Copy link

Choose a reason for hiding this comment

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

Suggested change
Dans mon dernier exemple, nous contruisons quelquechose qui utilise Ajax afin de valider via le serveur. Le formulaire va vous demander de nommer un nouveau produit et ensuite s'assurer que ce nom est unique. Nous avons écrit une rapide [OpenWhisk](http://openwhisk.apache.org/) action sans serveur pour gèrer la validation, voici la logique de cette action.
Dans mon dernier exemple, nous construisons quelque chose qui utilise Ajax afin de valider via le serveur. Le formulaire va vous demander de nommer un nouveau produit et ensuite s'assurer que ce nom est unique. Nous avons écrit une rapide [OpenWhisk](http://openwhisk.apache.org/) action sans serveur pour gérer la validation, voici la logique de cette action.

Copy link
Author

@cedlemo cedlemo Nov 8, 2018

Choose a reason for hiding this comment

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

En relisant je trouve l'utilisation de 'quelque chose' et même la phrase un peu lourde. Ne serait-il pas mieux d'écrire:

Dans mon dernier exemple, nous allons construire une application vuejs qui utilise Ajax pour valider des données via le serveur.'

Copy link

Choose a reason for hiding this comment

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

Oui c'est effectivement mieux :)

Copy link

Choose a reason for hiding this comment

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

Quid du coup de ce paragraphe?

rspt and others added 9 commits November 8, 2018 18:55
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
@MachinisteWeb
Copy link
Member

On en est ou ici @cedlemo et @rspt ? :)


<p>Cette page est en cours de traduction. Pour nous aider, vous pouvez participer sur <a href="https://github.com/vuejs-fr/vuejs.org" target="_blank">le dépôt GitHub dédié de Vuejs-FR</a>.</p><p>Form validation is natively supported by the browser, but sometimes different browsers will handle things in a manner which makes relying on it a bit tricky. Even when validation is supported perfectly, there may be times when custom validations are needed and a more manual, Vue-based solution may be more appropriate. Let's begin with a simple example.</p>
<p>Cette page est en cours de traduction. Pour nous aider, vous pouvez participer sur <a href="https://github.com/vuejs-fr/vuejs.org" target="_blank">le dépôt GitHub dédié de Vuejs-FR</a>.</p><p>
Copy link
Member

Choose a reason for hiding this comment

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

À supprimer non ?

@@ -347,7 +348,7 @@ function main(args) {
}
```

Basically any name but "vista", "empire", and "mbp" are acceptable. Ok, so let's look at the form.
En gros, tous les noms excepté "vista", "empire", and "mbp" sont valides. Bien, regardons donc le formulaire.
Copy link

Choose a reason for hiding this comment

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

  • exceptés


In my final example, we built something that makes use of Ajax to validate at the server. The form will ask you to name a new product and will then check to ensure that the name is unique. We wrote a quick [OpenWhisk](http://openwhisk.apache.org/) serverless action to do the validation. While it isn't terribly important, here is the logic:
Dans mon dernier exemple, nous contruisons quelquechose qui utilise Ajax afin de valider via le serveur. Le formulaire va vous demander de nommer un nouveau produit et ensuite s'assurer que ce nom est unique. Nous avons écrit une rapide [OpenWhisk](http://openwhisk.apache.org/) action sans serveur pour gèrer la validation, voici la logique de cette action.
Copy link

Choose a reason for hiding this comment

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

Quid du coup de ce paragraphe?


While this cookbook entry focused on doing form validation "by hand", there are, of course, some great Vue libraries that will handle a lot of this for you. Switching to a prepackage library may impact the final size of your application, but the benefits could be tremendous. You have code that is (most likely) heavily tested and also updated on a regular basis. Some examples of form validation libraries for Vue include:
Bien que cette partie se focalise essentiellement sur une validation "manuelle", il y a bien sûr, de très bonnes bibliothèques permettant de gèrer cela pour vous. Opter pour une bibliothèque pré-packagée pourrait avoir un impact sur la taille finale de votre application, mais les bénéfices pourraient être énormes. Vous avez à votre disposition du code qui est (très probablement) très bien testé et aussi mis à jour régulièrement. Quelques exemples de bibliothèques de validation pour Vue:
Copy link

Choose a reason for hiding this comment

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

  • "gérer"

@rspt
Copy link

rspt commented Dec 1, 2018

On en est ou ici @cedlemo et @rspt ? :)

@haeresis Pour moi il manque un paragraphe à réécrire et je viens de trouver deux fautes. Ensuite c'est ok :)

@cedlemo
Copy link
Author

cedlemo commented Dec 1, 2018

@haeresis , @rspt ,

j'ai fait les corrections suggérées.

@MachinisteWeb MachinisteWeb merged commit 2e8fd37 into vuejs-fr:master Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants