getText: Text translation: getText

Description Usage Arguments Details Value Note See Also Examples

View source: R/widgetLanguage.R

Description

Each element of the text vector msg is translated in the current target language. If the translation of a text element is not possible then the original text is delivered.

Usage

1
getText(msg, env = NULL)

Arguments

msg

character: text vector to translate

env

widget: language widget

Details

For the translations must be PO files provided. If a Shiny app is run locally (not under a server) getText writes in the current directory a file getText.log which contains elements of msg in a form such that it can be parsed with xgettext getText.log. You may use Poedit to create and update your PO files.

Value

For all elements of the text vector a translation will be delivered. If no translation is available then the original text will be given back.

Note

Since the analysis of the PO files is done by an R function in the package, not all features which PO file allows are available.

See Also

selectInput

Examples

1
getText('GERMAN', NULL)

sigbertklinke/mmstat documentation built on May 14, 2019, 8:36 a.m.