Description Usage Arguments Value Note Examples
Reads one or more PO file into the library internal translation object.
If file
has been created with bind
then several files with different
domains and languages can be read at once.
1 2 3 4 5 6 7 |
file |
character vector with file names or |
lang |
character: language code (default: |
domain |
character: text domain (default: |
append |
logical: append POfile to internal translation environment or overwrite (default) |
encoding |
character: encoding to be assumed for input files. It is used to mark character strings as known to be in Latin-1 or UTF-8: it is not used to re-encode the input (default: "UTF-8") |
invisibly the internal used bind object
Make sure that your PO files are stored with encoding UTF-8.
You may check this under Linux with file -bi myproject.po
and under Windows
if you drag and drop your myproject.po
to Firefox
1 2 3 4 5 | file <- system.file("shiny", "app2", "myproject_de_DE.po", package="gettext")
# force austrian german, use default domain
readPofile(file, lang="de_AT")
# detect language and domain from file name
readPofile(bind(file), append=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.