Skip to content

Conversation

@rossellhayes
Copy link
Contributor

@rossellhayes rossellhayes commented Aug 17, 2021

This PR refactors tbl_message() functions so that their messages can be translated using gettext().

tbl_grade_vector(1:10, letters[1:10])
#> <gradethis_graded: [Incorrect]
#>   Your result should be a vector of text (class `character`), but it is
#>   a vector of integers (class `integer`).
#> >
Sys.setenv("LANGUAGE" = "es")
tbl_grade_vector(1:10, letters[1:10])
#> <gradethis_graded: [Incorrect]
#>   Su resultado debe ser un vector de texto (clase `character`), pero es
#>   un vector de números enteros (clase `integer`).
#> >

Created on 2021-08-17 by the reprex package (v2.0.0)

New translations can be added in the po directory and built using tools::update_pkg_po(".").

Relies on #25.
Closes #19.

Todo:

  • Support translation of combine_words()

Merge commit '1dfd4441a6d5f52d3cd914545b09121c59a2e69d'
@CLAassistant
Copy link

CLAassistant commented Nov 8, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make tblcheck messages translatable

3 participants