gettext {HKRbook} | R Documentation |
gettext
Description
Returns a translation from loaded PO-file. If the message is not found in the PO-file then original text will be returned.
Usage
gettext(msg, utype = "vector")
Arguments
msg |
character: message(s) to translate |
utype |
character: how to return the translated message as vector or named list |
Value
translated messages
Examples
msgs <- c("two.sided", "less", "greater")
gettext(msgs)
# for use in Shiny "choices"
gettext(msgs, "name")
gettext(msgs, "numeric")
[Package HKRbook version 0.1.3 Index]