Description Usage Arguments Value Examples
Creates a POT file from text extracted with xgettext
.
1 | writePotfile(txt, file, all = TRUE, R = FALSE)
|
txt |
xgettext object |
file |
character: a file name to save the POT file |
all |
logical: export all strings (default: |
R |
logical: export all strings into a R or POT format (default: |
nothing
1 2 3 | txt <- xgettext(system.file("shiny", "app1", "app.R", package="gettext"))
file <- sprintf("%s/myproject.pot", tempdir(TRUE))
writePotfile(txt, file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.