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

Translation: Make it possible to translate errors, warnings, and other messages #202

Open
HenrikBengtsson opened this issue May 3, 2021 · 0 comments

Comments

@HenrikBengtsson
Copy link
Owner

HenrikBengtsson commented May 3, 2021

Wish

Add support translation of error and warning messages.

Tasks

  1. Update all stop(msg) and warning(msg) calls to use stop(gettext(msg)) and warning(gettext(msg)), or possibly gettextf(fmtstr, ...) and ngettext(n, msg1, msg2)

  2. For native code, update all error(msg) to error(_(msg))

  3. Create a po/R-matrixStats.pot with msgid and msgstr entries

  4. Harmonize messages, if possible, to lower the number of unique messages that need translation

  5. Ask community for help to translate to other languages

References

The potools package looks like a useful tool, e.g. rstudio::globals(2021) talk on 'Making .pot-ery with R: Translations in R Packages' and upcoming useR! 2021 workshop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant