Part of lp.translations.utilities.tests.test_gettext_po_parser View In Hierarchy
Method | setUp | Undocumented |
Method | testEmptyFile | Undocumented |
Method | testEmptyFileError | Undocumented |
Method | testContentlessFile | Undocumented |
Method | testSingular | Undocumented |
Method | testNoNewLine | Undocumented |
Method | testMissingQuote | Undocumented |
Method | testBadNewline | Undocumented |
Method | testBadBackslash | Undocumented |
Method | testMissingMsgstr | Undocumented |
Method | testMissingMsgid1 | Undocumented |
Method | testFuzzy | Undocumented |
Method | testComment | Undocumented |
Method | testEscape | Undocumented |
Method | testPlural | Undocumented |
Method | testNonnumericPluralCase | Undocumented |
Method | testNegativePluralCase | Undocumented |
Method | testUnsupportedPluralCase | Undocumented |
Method | testObsolete | Undocumented |
Method | testObsoleteChangedMsgid | Undocumented |
Method | testMultiLineObsolete | Undocumented |
Method | testDuplicateMsgid | Undocumented |
Method | testRedundantMsgstr | Undocumented |
Method | testRedundantPlural | Undocumented |
Method | testSquareBracketAndPlural | Undocumented |
Method | testDoubleHeader | Undocumented |
Method | testUpdateHeader | Undocumented |
Method | testEscapedNewline | Test escaped newline. |
Method | testMultipartString | Test concatenated message strings on the same line. |
Method | testGetLastTranslator | Tests whether we extract last translator information correctly. |
There seems to be nothing in the PO file format that forbids closing a string and re-opening it on the same line. One wouldn't normally want to make use of this, but in bug #49599 two lines in a message had been accidentally concatenated at column 80, possibly because the author's editor happened to break the line there and the missing line feed became unnoticeable.
Make sure this works. The strings should be concatenated. If there is any whitespace between the lines, it should be ignored. This is how the ability to close and re-open strings is normally used: to break up long strings into multiple lines in the PO file.