getStrings {strvalidator} | R Documentation |
Get Language Strings
Description
Accepts a language code and gui. Returns the corresponding language strings.
Usage
getStrings(language = NA, gui = NA, key = NA, encoding = NA, about = FALSE)
Arguments
language |
character name of the language. |
gui |
character the function name for the gui to 'translate'. |
key |
character the key to 'translate'. Only used in combination with 'gui'. |
encoding |
character encoding to be assumed for input strings. |
about |
logical FALSE (default) to read key value pairs, TRUE to read about file as plain text. |
Details
Accepts a language code, gui, and key. Returns the corresponding language strings for the specified gui function or key from a text file named as the language code. Replaces backslash + n with new line character (only if 'gui' is specified).
Value
character vector or data.table with the retrieved values. NULL if file or gui was not found.
[Package strvalidator version 2.4.1 Index]