poText: Text translation: getText

Description Usage Arguments Details Value Examples

View source: R/widgetLanguage.R

Description

Each text element of the R object obj 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
poText(obj, env = NULL)

Arguments

obj

R object:

env

widget: language widget

Details

For the translations must be PO files provided. Since getText is used internally the same holds as in getText given. Currently are only tables as objects supported, all other objects will deliver a warning.

Value

a R object witj translated texts

Examples

1
2
3
4
lang <- widgetLanguage ('lang')
tab  <- table(round(rnorm(100)), round(rnorm(100)))
dimnames(tab) <- c("GERMAN", "ENGLISH")
poText(tab, lang)

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