Learn R Programming

tr.iatgen (version 1.0.0)

validate.language: Validate user-supplied file to translate iatgen generated QSF file

Description

The validate.language function reads in csv file which is expected to contain 2 columns and 28 rows:

  • the first column contains the english language text (as compared to the template file)

  • the second column contains the translation of the first column in a target language The first rows contains heading -- heading of the first column is "en" for English and the heading of the second colum is iana formatted target langugage specifier.

Usage

validate.language(file, src_lang = "en")

Value

Heading of the second column (language identifier, class: character) if successful, NULL if error

Arguments

file

Source CSV file to validate

src_lang

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

Examples

Run this code
my_csv_file <- system.file("langs/en_jp.csv", package = "tr.iatgen")
validate.language(file = my_csv_file)

Run the code above in your browser using DataLab