Part of lp.translations.utilities
| Class | MixedNewlineMarkersError | Exception raised when we detect mixing of new line markers. |
| Class | Sanitizer | Provide a function to sanitize a translation text. |
| Function | sanitize_translations | Sanitize translations using sanitize_translation. |
| Function | sanitize_translations_from_import | Undocumented |
| Function | sanitize_translations_from_webui | Undocumented |
Sanitize `translations` using sanitize_translation.
If there is no certain pluralform in `translations`, set it to None.
If there are `translations` with greater pluralforms than allowed,
sanitize and keep them.
:param english_singular: The text of the singular MsgId that these
translations are for.
:param translations: A dictionary of plural forms, with the
integer plural form number as the key and the translation as the
value.
:param pluralforms: The number of expected pluralforms