writePotfile: writePotfile

Description Usage Arguments Value Examples

View source: R/writePotfile.R

Description

Creates a POT file from text extracted with xgettext.

Usage

1
writePotfile(txt, file, all = TRUE, R = FALSE)

Arguments

txt

xgettext object

file

character: a file name to save the POT file

all

logical: export all strings (default: TRUE)

R

logical: export all strings into a R or POT format (default: FALSE)

Value

nothing

Examples

1
2
3
txt  <- xgettext(system.file("shiny", "app1", "app.R", package="gettext"))
file <- sprintf("%s/myproject.pot", tempdir(TRUE))
writePotfile(txt, file)

sigbertklinke/gettext documentation built on Feb. 17, 2020, 10:37 a.m.