Creates an object of class po
, for storing package translations.
po(source_type, file_type, initial_comments, metadata, direct, countable)
Either "r" or "c", depending upon whether the messages originated from R-level code, or C-level code.
Either "po" or "pot", depending upon whether the messages originated from a PO (language-specific) or POT (master translation) file.
A character vector of comments added by the translator.
A tibble
of file metadata with
columns "name" and "value".
A data frame of messages where the translation depends upon
a countable value, as created by ngettext
; its columns are
described below.
An R6
object of class po
.
Much of the logic for this function was determined from reading http://pology.nedohodnik.net/doc/user/en_US/ch-poformat.html