translate.qsf {tr.iatgen}R Documentation

Translate iatgen generated QSF file

Description

Read-in iatgen generated QSF file and translated it to a target language specified by user either from the list of available languages included in tr.iatgen package or using the custom supplied translation file.

Usage

translate.qsf(file, lang, lang_file = NULL, src_lang = "en", dst_file = NULL)

Arguments

file

qsf file

lang

Target language (abbreviation).

lang_file

CSV file containing custom translation.

src_lang

Source language – "en" for english is the only supported one.

dst_file

save the translated file as. If NULL temporary file will be created.

Value

Translated file path/location (class: character)

Examples

# example code
my_qsf_file <- system.file("examples/iat-flowins.qsf", package = "tr.iatgen")
translate.qsf(file = my_qsf_file, lang = "pt-pt")


[Package tr.iatgen version 1.0.0 Index]