You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately it looks like that gettext caches translations between calls making it difficult to switch languages back and forth in a single session. I'll go back to skip_if_translated()
Activity
hadley commentedon Oct 1, 2017
Or we could add a language parameter to
expect_error()? That's more likely to affect existing code, but it might be easy to discover.hadley commentedon Oct 2, 2017
Hmmm, how do we know if you're localised?
gaborcsardi commentedon Oct 2, 2017
Maybe
Sys.getenv("LANGUAGE")based on?"environment variables"?gaborcsardi commentedon Oct 2, 2017
This should be better I guess: https://github.com/wch/r-source/blob/0af92cb369681f3ef666451a6eeb895988c04113/tests/reg-tests-1d.R#L13-L29
hadley commentedon Oct 3, 2017
Something like
hadley commentedon Oct 4, 2017
We need a different name because of localized vs localised. Maybe
skip_if_not_en()?hadley commentedon Oct 4, 2017
This feels awkward - I'd rather add a lang parameter to
expect_error()hadley commentedon Oct 9, 2017
Unfortunately it looks like that gettext caches translations between calls making it difficult to switch languages back and forth in a single session. I'll go back to
skip_if_translated()Implement skip_if_translated
Override error message translations