The PX-file format supports having multiple langauges in one file.
Let’s start by creating a minimal example of a px object, based on the
built in data set population_gl.
Currently, x has neither a main language nor any
additional languages.
To set the main language, use px_language(), and add the
ISO
639 language code.
This adds the keyword ‘LANGUAGE=kl’ if the PX-file is saved, but otherwise there are no changes.
To set multiple languages, use px_languages() with a
list of language codes.
This doubles the number of values for all language dependent keywords. For example CONTACT, can be set simultaneously for both languages:
or it can be set with distinct values for the two languages:
x4 <- px_contact(x3, dplyr::tribble(~language, ~value,
"kl", "Lars Pedersen",
"da", "Johan Ejstrud"
)
)In general, changing a keyword for multiple languages, requires a data frame where the column ‘language’ has been added. See the help pages for each functions to see the exact details on which columns are needed in the data frame.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.