diff --git a/NEWS.md b/NEWS.md index 912961d0c..fd120694b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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)). diff --git a/R/praise.R b/R/praise.R index e340a7cdc..59a622da8 100644 --- a/R/praise.R +++ b/R/praise.R @@ -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 diff --git a/data-raw/i18n_random-phrases.yml b/data-raw/i18n_random-phrases.yml index 34931f802..b0ab0b37a 100644 --- a/data-raw/i18n_random-phrases.yml +++ b/data-raw/i18n_random-phrases.yml @@ -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: - 😀 - 😁 @@ -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: - 🤗 - 🤘 diff --git a/inst/internals/i18n_random_phrases.rds b/inst/internals/i18n_random_phrases.rds index 060ca2d52..c399ac390 100644 Binary files a/inst/internals/i18n_random_phrases.rds and b/inst/internals/i18n_random_phrases.rds differ diff --git a/man/random_praise.Rd b/man/random_praise.Rd index 34b1e662c..5a08d2451 100644 --- a/man/random_praise.Rd +++ b/man/random_praise.Rd @@ -11,7 +11,7 @@ random_encouragement(language = NULL) } \arguments{ \item{language}{The language for the random phrase. The currently supported -languages include: \code{en}, \code{es}, \code{emo}, and \code{testing} (static phrases).} +languages include: \code{en}, \code{es}, \code{tr}, \code{emo}, and \code{testing} (static phrases).} } \value{ Character string with a random saying