Skip to content

Commit 8b3793c

Browse files
authored
Merge pull request #176 from idrista/french
French translation complete
2 parents 631e226 + 68743e6 commit 8b3793c

Some content is hidden

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

63 files changed

+1513
-2
lines changed

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_](https://github.com/olivierlacan) & [_Idris TAKERBOUST_](https://github.com/idrista)
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

app/try_ruby.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def get_language
124124
language = 'de'
125125
when 'tr'
126126
language = 'tr'
127+
when 'fr'
128+
language = 'fr'
127129
else
128130
language = 'en'
129131
end

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/about.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Ukrainian translation by _Andrii Palchik_
5252
Macedonian translation by _Violeta Pavleska_
5353
Chinese translation by _Ye Junzhe_ & _Heng Li_ & _Bitfox_
5454
Turkish translation by _Ali Rıza Şahin_
55+
French translation by _Olivier Lacan_ & _Idris TAKERBOUST_
56+
5557

5658
### Privacy
5759

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

source/layouts/_navbar.html.erb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@
139139
>
140140
Türkçe
141141
</button>
142+
<button
143+
class="dropdown-item"
144+
data-change-lang="fr"
145+
aria-controls="tryruby-content"
146+
>
147+
Français
148+
</button>
142149
</div>
143150
</li>
144151
</ul>

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_, 2024, _Idris TAKERBOUST_
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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 qui a
11+
révolutionné le développement logiciel.
12+
13+
La beauté de Ruby réside dans son équilibre 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__ &rarr; Executer le code dans l'éditeur
18+
- __Copy__ &rarr; Copier le code d'exemple dans l'éditeur
19+
- __Next__ &rarr; Basculer à la leçon suivante
20+
- __Back__ &rarr; Revenir à la leçon précédente
21+
22+
<div class="foxes">Clique sur <strong>Next</strong> pour commencer à apprendre.</div>
23+

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 pommes ne sont pas des oranges.
4+
answer: \[\]
5+
ok: Parfait, 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 (chaîne de caractères)
17+
- __to_i__ convertit les choses en __i__ntegers (nombres entiers)
18+
- __to_a__ convertit les choses en __a__rrays (listes / tableaux)
19+
20+
__Qu'est-ce qu'un array ?!__
21+
22+
C'est une liste. Saisis une paire de crochets :
23+
24+
[]

0 commit comments

Comments
 (0)