l.t.s.fix_plural_forms : module documentation

Part of lp.translations.scripts

Functions for fixing mismatched plural form translations.
Function get_mapping_for_pofile_plurals Check if POFile plural forms need fixing.
Function fix_pofile_plurals Fix plural translations for PO files with mismatching headers.
Function fix_plurals_in_all_pofiles Go through all PO files and fix plural forms if needed.
def get_mapping_for_pofile_plurals(pofile):
Check if POFile plural forms need fixing.

Return a mapping if a plural form expression in PO file header doesn't match expected plural form expression for pofile.language, otherwise return False.

def fix_pofile_plurals(pofile, logger, ztm):
Fix plural translations for PO files with mismatching headers.
def fix_plurals_in_all_pofiles(ztm, logger):
Go through all PO files and fix plural forms if needed.
API Documentation for Launchpad, generated by pydoctor at 2018-10-23 00:00:11.