Part of lp.translations.utilities.tests
| Function | import_pofile_or_potemplate | Import a POFile or POTemplate from the given string. |
| Function | is_valid_mofile | Test whether a string is a valid MO file. |
POFile or POTemplate from the given string.| Parameters | file_contents | text of "file" to import, or a seekable file object containing the text. |
| person | party requesting the import. | |
| pofile | if uploading a POFile, file to import to; None otherwise. | |
| potemplate | if uploading a POTemplate, file to import to; None
otherwise. | |
| by_maintainer | true if this file was uplaoded by the maintainer of the project or package. | |
| Returns | TranslationImportQueueEntry as added to the import queue. | |