Learn R Programming

msgtools (version 0.2.4)

check_translation: Install translations

Description

Check and install message translations

Usage

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"))

Arguments

language
A character string specifying a language.
pkg
The directory of an R package to extract diagnostic messages from. Path is passed to as.package.
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 checkPoFile.
verbose
A logical. Should the function be chatty?

Value

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.

Details

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.

See Also

use_localization, make_translation

Examples

Run this code
## Not run: 
#   # check translations
#   check_translations()
#   
#   # install translations
#   install_translations()
# ## End(Not run)

Run the code above in your browser using DataLab