Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tblcheck messages translatable #31

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

Make tblcheck messages translatable #31

wants to merge 12 commits into from

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
2 participants