Skip to content

Commit 5981a22

Browse files
olivierlacanidrista
authored andcommitted
French translation by Olivier Lacun
1 parent 682391e commit 5981a22

60 files changed

Lines changed: 1490 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Ukrainian translation by [_Andrii Palchik_](https://github.com/andriipalchik)
2222
Macedonian translation by [_Violeta Pavleska_](https://github.com/violeta-p)
2323
Chinese translation by [_Ye Junzhe_](https://github.com/McF4r) & [_Bitfox_](https://github.com/bitfoxtop) & [_Heng Li_](https://github.com/iheng)
2424
Turkish translation by [_Ali Rıza Şahin_](https://github.com/ARS-coding)
25+
French translation by _Olivier Lacan_
2526

2627
Suggestions to improve translations are welcome.
2728
If you submit a pull request updating a translation please
@@ -77,7 +78,7 @@ for more background information on how and why this website was created.
7778

7879
## The MIT License
7980

80-
Copyright (C) 2014-2019 Ivo Herweijer
81+
Copyright (C) 2014-2024 Ivo Herweijer
8182

8283
Permission is hereby granted, free of charge, to any person obtaining a copy
8384
of this software and associated documentation files (the "Software"), to deal

collector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def initialize(app, options_hash={}, &block)
158158
Collector.new('translations/zh/try_ruby_*.md', 'source/try_ruby_zh.json').collect
159159
Collector.new('translations/de/try_ruby_*.md', 'source/try_ruby_de.json').collect
160160
Collector.new('translations/tr/try_ruby_*.md', 'source/try_ruby_tr.json').collect
161+
Collector.new('translations/fr/try_ruby_*.md', 'source/try_ruby_fr.json').collect
161162
# TODO: add any new translations here
162163

163164
true

source/articles/2015-01-01-try-ruby-version-4.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ I had to make some alterations to the TryRuby lesson content. Also updated some
3838
- Removed mousehole stuff
3939
- Improved the feedback given to the user based on the program's output a bit
4040
- Added support for lesson content in multiple languages. The Spanish, Brazilian Portuguese,
41-
Japanese, Russian, Ukrainian, Macedonian and Dutch translations are available.
41+
Japanese, Russian, Ukrainian, Macedonian, Dutch, Turkish and French translations are available.
4242
__If YOU would like to add a translation to TryRuby you are most welcome !__
4343
- Added explanation of if/else statements
4444
- Changed the subject of the "Class" tutorials from building a blog (so last decade) to making an

translations/fr/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Copyright (C)
2+
Try Ruby version 4 French translation, 2018, _Olivier Lacan_
3+
4+
## The MIT License
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

translations/fr/try_ruby_10.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
lang: FR
3+
title: 30 minutes de libre ? Essaie Ruby !
4+
answer:
5+
class: stretcher chapmark
6+
ok:
7+
error:
8+
---
9+
10+
Ruby est un language de programmation originaire du Japon et qui a
11+
revolutionné le développement logiciel.
12+
13+
La beauté de Ruby se situe dans sa balance entre simplicité et puissance.
14+
15+
Tu peux saisir du code Ruby dans l'éditeur et utiliser les boutons suivants pour naviguer :
16+
17+
- __Run__ → Execute le code dans l'éditeur
18+
- __Copy__ → Copie l'example de code dans l'éditeur
19+
- __Next__ → Vous permet de sauter à la leçon suivante
20+
- __Back__ → Vous permet de revenir à la leçon précédente
21+
- __Clear__ → Remets l'éditeur à zéro
22+
23+
Utilise le bouton « planête » <span aria-hidden="true" class="glyphicon glyphicon-globe"></span>
24+
ci-dessus pour changer le language de TryRuby.
25+
26+
### Clique sur __Next__ pour commencer à apprendre.

translations/fr/try_ruby_100.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
lang: FR
3+
title: Stop, t'es barge !
4+
answer: ^\d{1,}$
5+
ok: Seuls les strings peuvent être inversés
6+
error:
7+
---
8+
9+
On ne peut pas inverser le nombre quarante. J'imagine que tu
10+
pourrais tenir ton moniteur en face d'un mirroir, mais inverser un
11+
nombre n'est pas franchement très logique.
12+
13+
Ruby a lancé un message d'erreur. Ruby t'explique qu'il n'y a pas de
14+
méthode pour inverser des nombres.
15+
16+
Tu pourrais peut-être transformer ce nombre en string pour commencer :
17+
18+
40.to_s.reverse

translations/fr/try_ruby_110.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
lang: FR
3+
title: Les garçons sont différents des filles
4+
answer: \[\]
5+
ok: Bon, d'accord, voilà une liste vide.
6+
error:
7+
---
8+
9+
Et les nombres sont différents des strings.
10+
11+
Bien qu'il soit possible d'utiliser des méthodes sur n'importe quel
12+
objet avec Ruby, certaines méthodes ne fonctionnent qu'avec certains
13+
types de choses. Mais il est toujours possible de passer d'un type à un
14+
autre avec les méthodes "to" to Ruby.
15+
16+
- __to_s__ convertit les choses en __s__trings
17+
- __to_i__ convertit les choses en __i__ntegers (nombres entiers)
18+
- __to_a__ convertit les choses en __a__rrays
19+
20+
__Qu'est-ce qu'un array ?!__
21+
22+
C'est une liste. Saisis une paire de crochets :
23+
24+
[]

translations/fr/try_ruby_120.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
lang: FR
3+
title: Faire la queue
4+
answer: ^\[(\d+)(,\s*\d+){3,}\]$
5+
ok: Excellent
6+
error: Essaye d'ajouter un quatrième nombre à la liste
7+
---
8+
9+
Les listes (arrays) stockent des choses __dans un ordre défini__.
10+
11+
C'est un peu comme faire la queue pour acheter une baguette. Tu es
12+
derrière quelqu'un et ce sera impensable de les pousser pour passer
13+
devant, non? Et le mec derrière toi, tu gardes un œil sur lui, juste au
14+
cas où ?
15+
16+
Voilà une liste pour toi. Des numéros de lotterie :
17+
18+
[12, 47, 35]
19+
20+
Essaie d'ajouter un nombre à cette liste: saisis une virgule après 35
21+
suivie d'un nombre. L'espace est facultatif.

translations/fr/try_ruby_130.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
lang: FR
3+
title: Un d'entre eux lève la main
4+
answer: ^47$
5+
ok: D'accord
6+
error:
7+
---
8+
9+
Une liste de numéros de lotterie. Lequel est le plus grand ?
10+
11+
Essaye:
12+
13+
[12, 47, 35].max

translations/fr/try_ruby_140.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
lang: FR
3+
title: Ranger une liste proprement
4+
answer: ^\[(\d+)(,\s*\d+){2,}\]$
5+
ok: Sauvegardé !
6+
error:
7+
---
8+
9+
Bien, bien. Cela dit c'est ennuyant d'avoir à retaper cette liste chaque
10+
fois que tu en as besoin, non ?
11+
12+
Sauvegardons nos numéros dans un ticket comme ça :
13+
14+
ticket = [12, 47, 35]

0 commit comments

Comments
 (0)