Convenience function that parses the po or pot file pofile and returns a POFile instance.
Arguments:
Convenience function that parses the mo file mofile and returns a MOFile instance.
Arguments:
Try to detect the encoding used by the file. The file argument can be a PO or MO file path or a string containing the contents of the file. If the encoding cannot be detected, the function will return the value of default_encoding.
Arguments:
Po (or Pot) file reader/writer. This class inherits the _BaseFile class and, by extension, the python list type.
Convenience method that merges the current pofile with the pot file provided. It behaves exactly as the gettext msgmerge utility:
Keyword argument:
Convenience method that returns the percentage of translated messages.
Mo file reader/writer. This class inherits the _BaseFile class and, by extension, the python list type.
Saves the mofile to fpath.
Keyword argument: