Skip to content

Commit

Permalink
Add turkish translations for encouragement and praise (#554)
Browse files Browse the repository at this point in the history
Co-authored-by: Garrick Aden-Buie <garrick@adenbuie.com>
Co-authored-by: hyigit2 <hyigit2@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 7, 2021
1 parent 6cd5694 commit 1ead1ac
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ learnr (development version)
* Added Spanish language support (@yabellini [#483](https://github.com/rstudio/learnr/pull/483))
* Added Portuguese language support (@beatrizmilz [#488](https://github.com/rstudio/learnr/pull/488))
* Added Basque language support (@mikelmadina [#489](https://github.com/rstudio/learnr/pull/489))
* Added Turkish language support (@hyigit2, @coatless [#493](https://github.com/rstudio/learnr/pull/493))
* Added Turkish language support (@hyigit2, @coatless [#493](https://github.com/rstudio/learnr/pull/493), [#554](https://github.com/rstudio/learnr/pull/554))
* Added option for quickly restoring a tutorial without re-evaluating the last stored exercise submission. This feature is enabled by setting the global option `tutorial.quick_restore = TRUE` or the environment variable `TUTORIAL_QUICK_RESTORE=1` (thanks @mstackhouse, [#509](https://github.com/rstudio/learnr/pull/509)).
* Clicking "Run Code" or using the keyboard shortcut (Cmd/Ctrl + Enter) now runs the selected code only, if any code is selected ([#512](https://github.com/rstudio/learnr/issues/512)).
* `exercise_result()` no longer combines the code output and feedback; this now happens just before presenting the exercise result to the user ([#522](https://github.com/rstudio/learnr/pull/522)).
Expand Down
2 changes: 1 addition & 1 deletion R/praise.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' quiz experience.
#'
#' @param language The language for the random phrase. The currently supported
#' languages include: `en`, `es`, `emo`, and `testing` (static phrases).
#' languages include: `en`, `es`, `tr`, `emo`, and `testing` (static phrases).
#'
#' @return Character string with a random saying
#' @export
Expand Down
49 changes: 49 additions & 0 deletions data-raw/i18n_random-phrases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,44 @@ praise:
- ¡Lo superaste!
- ¡Excelente respuesta!
- Deberias sentir mucho orgullo.
tr:
- Kesinlikle muhteşem!
- Inanilmaz!
- Harika!
- Güzel!
- Aferin!
- Iyi iş!
- Keyifli!
- Mükemmel!
- Fantastik!
- Harika iş!
- Daha iyisini yapamazdım.
- Etkileyici çalışma!
- Harika iş!
- Fevkalade!
- Aferin!
- Harikulade!
- Çok etkileyici!
- Harika iş çikardin!
- Yaptigin işi cok iyi biliyorsun :)
- Çok iyi iş çikardin!
- Çok basarili!
- Basari!
- Super iş!
- Harika iş!
- Iyi iş çikardin!
- Harika!
- Bu harika bir cevap!
- Çok harika!
- Olağanüstü !
- Çok iyi!
- Çok iyi yaptin!
- Çok mükemmel çalisma!
- Çok zekisin
- Harika!
- Başaracaksın!
- Çok iyisin!
- Gurur duymalısın.
emo:
- 😀
- 😁
Expand Down Expand Up @@ -112,6 +150,17 @@ encouragement:
- Intenta otra vez. Mejoras cada vez.
- Inténtalo nuevamente. La perseverancia es la clave del éxito.
- "Está bien: se aprende más de los errores que de los éxitos. Hagámoslo una vez más."
tr:
- Lütfen bir daha deneyin.
- Bir kez daha dene!
- Hadi bir daha deneyelim!
- Bir kez daha dene. Bu kez başaracaksın .
- Sakın bırakma. Bir kez daha dene
- Endişe etmeye gerek yok. Hadi bir daha dene.
- Bir kez daha dene. Bu kez olacak hissediyorum.
- Bir kez daha dene. Herseferinde daha iyi gelistiryorsun.
- Bir kez daha dene. Pes etmemek olayin sirri
- Sorun Degil. Basarılarına gore hatalarından cok daha fazla öğrenirsin
emo:
- 🤗
- 🤘
Expand Down
Binary file modified inst/internals/i18n_random_phrases.rds
Binary file not shown.
2 changes: 1 addition & 1 deletion man/random_praise.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ead1ac

Please sign in to comment.