1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/translate.R
\name{dot-underscore}
\alias{dot-underscore}
\alias{._}
\title{Format and Translate Strings}
\usage{
._(msg, ..., domain = NULL)
}
\arguments{
\item{msg}{The message to translate.}
\item{...}{
Arguments passed on to \code{\link[base:sprintf]{base::gettextf}}
\describe{
\item{\code{fmt}}{a character vector of format strings, each of up to 8192 bytes.}
}}
\item{domain}{see \code{\link[base:gettext]{base::gettext()}}}
}
\description{
This shortcut provides simple translation and formatting functionality.
Essentially it is a wrapper for \code{\link[base:gettext]{base::gettext()}} and \code{\link[base:sprintf]{base::gettextf()}}.
}
\examples{
loki <- list()
class(loki) <- "puny god"
._("I am a \%s.", class(loki))
}
|