po_extract {potools} | R Documentation |
Extract messages for translation into a .pot
file
Description
po_extract()
scans your package for strings to be translated and
saves them into a .pot
template file (in the package's po
directory). You should never modify this file by hand; instead modify the
underlying source code and re-run po_extract()
.
If you have existing translations, call po_update()
after po_extract()
to update them with the changes.
Usage
po_extract(
dir = ".",
custom_translation_functions = list(),
verbose = !is_testing(),
style = NULL
)
Arguments
dir |
Character, default the present directory; a directory in which an R package is stored. |
custom_translation_functions |
A See Details in |
verbose |
Logical, default |
style |
Translation style, either Both styles extract strings explicitly flagged for translation with
|
Value
The extracted messages as computed by get_message_data()
,
invisibly.