Learn R Programming

HKRbook (version 0.1.3)

gettext: 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")

Value

translated messages

Arguments

msg

character: message(s) to translate

utype

character: how to return the translated message as vector or named list

Examples

Run this code
msgs <- c("two.sided", "less", "greater")
gettext(msgs)
# for use in Shiny "choices"
gettext(msgs, "name")
gettext(msgs, "numeric")

Run the code above in your browser using DataLab