Description Usage Arguments Details Value Note See Also Examples
Check and install message translations
1 2 3 4 5 6 7 | check_translation(language, pkg = ".", domain = "R", strictPlural = FALSE,
verbose = getOption("verbose"))
check_translations(pkg = ".", strictPlural = FALSE,
verbose = getOption("verbose"))
install_translations(pkg = ".", verbose = getOption("verbose"))
|
language |
A character string specifying a language. |
pkg |
The directory of an R package to extract diagnostic messages from. Path is passed to |
domain |
A character string specifying the “domain” of the messages. Either “R” (the default) or “C”. This is case insensitive. |
strictPlural |
A logical indicating whether to compare formats of singular and plural forms in a strict way. See |
verbose |
A logical. Should the function be chatty? |
check_translation
checks a specific translation file. check_translations
checks all translations in the /po directory. These are just wrappers around checkPoFile
.
install_translations
performs a reduced set of the functionality described in update_pkg_po
.
check_translation
returns an object of class “check_po_files”; check_translations
returns a list of such objects. install_translations
returns a logical TRUE, if successful.
These functions require that gettext is installed on your system.
use_localization
, make_translation
1 2 3 4 5 6 7 8 | ## Not run:
# check translations
check_translations()
# install translations
install_translations()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.