-
Notifications
You must be signed in to change notification settings - Fork 98
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
French translation #16
base: master
Are you sure you want to change the base?
Changes from 7 commits
55cf344
af1de15
058a19b
14441f0
295a562
7ee0d54
c3c39f2
9a440a6
f3daa80
32cb5d6
5989d6d
f00fe94
a7f9159
f063dbe
87b2950
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Copyright (C) | ||
Try Ruby version 4 French translation, 2018, _Olivier Lacan_ | ||
|
||
## The MIT License | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
lang: EN | ||
title: Vous avez 30 minutes? Essayez Ruby! | ||
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. In French, a space must come before double ponctuations like 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. Perhaps we should prefer |
||
answer: | ||
class: stretcher chapmark | ||
ok: | ||
error: | ||
--- | ||
|
||
Ruby est un language de programmation originaire du Japon et qui a | ||
revolutionné le développement logiciel. | ||
|
||
La beauté de Ruby se situe dans sa balance entre simplicité et puissance. | ||
|
||
Vous pouvez saisir du code Ruby dans l'éditeur et utiliser les boutons suivants pour naviguer: | ||
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. A space is missing before the colon. 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. Oh, English has ruined me. |
||
|
||
- __Run__ → Execute le code dans l'éditeur | ||
- __Copy__ → Copie l'example de code dans l'éditeur | ||
- __Next__ → Vous permet de sauter à la leçon suivante | ||
- __Back__ → Vous permet de revenir à la leçon précédente | ||
- __Clear__ → Remets l'éditeur à zéro | ||
|
||
Utilise le bouton 'planête' <span aria-hidden="true" class="glyphicon glyphicon-globe"></span> | ||
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. Perhaps we should use double-quotes here? E.g.:
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. First one's the most correct for French "guillemets". Yet. |
||
ci-dessus pour changer le language de TryRuby. | ||
|
||
### Clique sur __Next__ pour commencer à apprendre. | ||
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. If we are to use the 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. Absolutely, I'd rather default to friendlier. Québécois-style 😸 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
lang: EN | ||
title: Stop, vous êtes barge! | ||
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. I'd suggest |
||
answer: ^\d{1,}$ | ||
ok: Seuls les strings peuvent être inversés | ||
error: | ||
--- | ||
|
||
Vous ne pouvez pas inverser le nombre quarante. J'imagine que vous | ||
pourriez tenir votre moniteur en face d'un mirroir, may inverser un | ||
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.
|
||
nombre ne fait simplement aucun sens. | ||
|
||
Ruby a lancé un message d'erreur. Ruby vous dit qu'il n'y a pas de methode | ||
pour inverser des nombres. | ||
|
||
Tu pourrais peut-être transformer ce nombre en string pour commencer: | ||
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.
|
||
|
||
40.to_s.reverse |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
lang: EN | ||
title: Les garçons sont différents des filles | ||
answer: \[\] | ||
ok: Bon, d'accord, voilà une liste vide. | ||
error: | ||
--- | ||
|
||
Et les nombres sont différents des strings. | ||
|
||
Bien qu'il soit possible d'utiliser des methodes sur n'importe quel | ||
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.
|
||
objet avec Ruby, certaines methodes ne fonctionnent qu'avec certains | ||
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.
|
||
types de choses. Mais il est toujours possible de passer d'un type à un | ||
autre avec les methodes "to" to Ruby. | ||
|
||
- __to_s__ convertit les choses en __s__trings | ||
- __to_i__ convertit les choses en __i__ntegers (nombres) | ||
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 peut peut-être précisier |
||
- __to_a__ convertit les choses en __a__rrays | ||
|
||
__Qu'est-ce qu'un array?!__ | ||
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.
|
||
|
||
Ce sont des listes. Saisi une paire de crochets: | ||
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. I would have answered the singular question by a singular answer: 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.
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. Do you have a better suggestion for a typing prompt? 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.
|
||
|
||
[] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
lang: EN | ||
title: Faire la queue | ||
answer: ^\[(\d+)(,\s*\d+){3,}\]$ | ||
ok: Excellent | ||
error: Essaye d'ajouter un quatrième nombre à la liste | ||
--- | ||
|
||
Les listes (arrays) stockent des choses __dans un ordre indéfini__. | ||
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. Here the point is actually about having 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. Yep. |
||
|
||
C'est un peu comme faire la queue pour acheter une baguette. Tu es | ||
derrière quelqu'un et ce sera impensable de les pousser pour passer | ||
devant, non? Et le mec derrière toi, tu gardes un oeil sur lui, juste au | ||
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.
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.
|
||
cas où ? | ||
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. Here I'd add a 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.
|
||
|
||
Voilà une liste pour toi. Des numéros de lotterie: | ||
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.
|
||
|
||
[12, 47, 35] | ||
|
||
Essayes d'ajouter un nombre à cette liste: saisi une virgule après 35 | ||
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.
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.
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.
|
||
suivie d'un nombre. L'espace est facultatif. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
lang: EN | ||
title: Un d'entre eux lève la main | ||
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. I would suggest |
||
answer: ^47$ | ||
ok: D'accord | ||
error: | ||
--- | ||
|
||
Une liste de numéros de lotterie. Lequel est le plus grand ? | ||
|
||
Essaye: | ||
|
||
[12, 47, 35].max |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
lang: EN | ||
title: Ranger une liste proprement | ||
answer: ^\[(\d+)(,\s*\d+){2,}\]$ | ||
ok: Sauvegardé! | ||
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. ``Sauvegardé! |
||
error: | ||
--- | ||
|
||
Bien, bien. Cela dit c'est ennuyant d'avoir à retaper cette liste chaque | ||
fois que tu en as besoin, non ? | ||
|
||
Sauvegardons nos numéros dans un ticket comme ça: | ||
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.
|
||
|
||
ticket = [12, 47, 35] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
lang: EN | ||
title: Maintenant entre ticket | ||
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. This title doesn't sound as good in french as it does in english. Perhaps |
||
answer: \[(\d+(, )?){2,}\] | ||
load: ticket = [12, 47, 35] | ||
ok: Réstoré! | ||
error: | ||
--- | ||
|
||
Maintenant, saisi: | ||
|
||
ticket |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
lang: EN | ||
title: Sauvegardé, rangé proprement | ||
answer: \[12, 35, 47\] | ||
load: ticket = [12, 47, 35] | ||
ok: Tu as organisé la liste en ordre | ||
error: | ||
--- | ||
|
||
Tu as gardé tes numéro de lotto en le rangeant dans une __variable__ | ||
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.
|
||
nommée ticket. Mais n'importe quel autre nom, comme _lalistedejimmy_, | ||
aurait aussi fait l'affaire. | ||
|
||
Comme tu découvrira, la programmation c'est surtout jongler des | ||
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.
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. What do you think about using 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. 👍 |
||
variables. | ||
|
||
Mettons les numéros de lotto dans l'ordre. | ||
|
||
Utilises: | ||
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.
|
||
|
||
ticket.sort! | ||
|
||
Tu avais une liste. Tu as organisé la liste dans l'ordre. La variable | ||
ticket a maintenant changé Est-ce que tu as remarqué que la methode | ||
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.
|
||
_sort!_ a un gros point d'exclamation à la fin ? Souvent les methodes | ||
Ruby crient comme ça lorsqu'elle modifient une variable pour de bon. | ||
C'est rien de grave, juste une ponctuation. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
lang: EN | ||
title: Élementaire | ||
answer: ^(12|35|47)$ | ||
load: ticket = [12, 47, 35] | ||
ok: D'accord | ||
error: Presque | ||
--- | ||
|
||
Donc nous avons stocké nos numéros de lotterie dans la variable ticket. | ||
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.
|
||
Comment faire pour les retrouver? | ||
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 a déjà vu qu'il est possible d'obtenir le numéro le plus élevé avec __max__. | ||
On peut également obtenir le premier (__first__) ou le dernier (__last__) | ||
élement de la liste. | ||
Mais que faire si on a besoin d'un élement specifique de la liste? | ||
|
||
### [ ] | ||
Ruby utilises des crochets droits [ ] pour viser un élement. | ||
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.
|
||
Les crochets droits sont très commun dans Ruby. | ||
Ce sont comme des lunettes de visée pour aligner une cible. Exactement. | ||
Ces crochets signifient, "Je cherche ____". Prêt, vises. | ||
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. I feel that 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. True, that was awkward. |
||
|
||
Recupèrons tous nos numéros de lotto: | ||
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.
|
||
|
||
puts ticket[0] | ||
puts ticket[1] | ||
puts ticket[2] | ||
|
||
Pourquoi utiliser [0], [1], [2]? | ||
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.
|
||
|
||
Et pourquoi pas [1], [2] and [3] ? Est-ce que c'est une éspèce de truc Zen japonais ? | ||
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.
|
||
Non, nous autre les amis des ordinateurs on préfère juste commencer à compter à | ||
partir de zéro. C'est pas juste un truc dans Ruby, ça s'appelle _l'indexation à | ||
base zéro_ et c'est utilisé dans la plupart des languages de programmation. | ||
|
||
> Un petit rappel: tu peux utiliser le bouton __Copy__ pour recopier l'exemple de code dans l'éditeur. | ||
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.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
lang: EN | ||
title: Le résumé #2 est arrivé | ||
answer: \w+ | ||
class: stretcher chapmark | ||
load: poem = "My toast has flown from my hand\nAnd my toast has gone to the moon.\nBut when I saw it on television,\nPlanting our flag on Halley's comet,\nMore still did I want to eat it.\n" | ||
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. Shouldn't the poem also be translated? 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. Didn't know if that'd work but we can. 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. I suggest translating it. This PR over your branch introduces this poem, translated: olivierlacan#2 |
||
ok: Est-ce que ça rime? | ||
error: | ||
--- | ||
|
||
Jettons un oeil à ce qui s'est passé pendant ta deuxième minute: | ||
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.
|
||
|
||
### Erreurs | ||
Si tu essayes d'inverser un nombre ou de faire des choses bizzares, Ruby | ||
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.
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.
|
||
te dira ce qui ne va pas. | ||
|
||
### Listes | ||
Les arrays sont des listes pour stocker des choses dans un ordre | ||
spécifique. On sait égaelement comment créer un array et récuperer des | ||
élement dans un array. | ||
|
||
### Variables | ||
Les variables sauvegardent une chose et lui donne un nom. Tu as utilisé | ||
le signe égal pour ça. Par example: ticket = [14, 37, 18]. | ||
|
||
### 2/8 | ||
En tout il y a huit sections. Tu as fini deux-huitièmes du chemin! C'est | ||
pas si compliqué, non? Et il y a plein de bonnes choses à suivre. | ||
|
||
Changeons de direction pour un instant. J'ai mis un petit bout de poésie | ||
pour toi dans une certaine variable. | ||
Jette un oeil. Saisi: | ||
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.
|
||
|
||
puts poem |
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.
FR
perhaps? (Samewise on the other files.)