validate.language {tr.iatgen} | R Documentation |
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")
Arguments
file |
Source CSV file to validate |
src_lang |
Source language – "en" for english is the only supported one. |
Value
Heading of the second column (language identifier, class: character) if successful, NULL if error
Examples
my_csv_file <- system.file("langs/en_jp.csv", package = "tr.iatgen")
validate.language(file = my_csv_file)
[Package tr.iatgen version 1.0.0 Index]