Description Usage Arguments Details Value Note See Also Examples
View source: R/widgetLanguage.R
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.
1 |
msg |
character: text vector to translate |
env |
widget: language widget |
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.
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.
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.
1 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.