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
Add support translation of error and warning messages.
Tasks
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)
For native code, update all error(msg) to error(_(msg))
Create a po/R-matrixStats.pot with msgid and msgstr entries
Harmonize messages, if possible, to lower the number of unique messages that need translation
Ask community for help to translate to other languages
Wish
Add support translation of error and warning messages.
Tasks
Update all
stop(msg)
andwarning(msg)
calls to usestop(gettext(msg))
andwarning(gettext(msg))
, or possiblygettextf(fmtstr, ...)
andngettext(n, msg1, msg2)
For native code, update all
error(msg)
toerror(_(msg))
Create a
po/R-matrixStats.pot
withmsgid
andmsgstr
entriesHarmonize messages, if possible, to lower the number of unique messages that need translation
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.
The text was updated successfully, but these errors were encountered: