Skip to main content

write_pot_file

Write the potfile with the msgs contents, making sure its format is valid.

def write_pot_file(
potfile: string,
msgs: string
)

Write the potfile with the msgs contents, making sure its format is valid.

Parameters

NameTypeDescription
potfilestringThe file system path to the .pot file where message translations will be appended or created.
msgsstringThe raw string content containing translation messages to be processed and written to the file.

Returns

TypeDescription
Nothing is returned; the function writes directly to the file system.