def fix_plurals_in_all_pofiles(ztm, logger): """Go through all PO files and fix plural forms if needed.""" cur = cursor() cur.execute("""SELECT MAX(id) FROM POFile""") (max_pofile_id,) = cur.fetchall()[0] for pofile_id in range(1, max_pofile_id): try: pofile = POFile.get(pofile_id) fix_pofile_plurals(pofile, logger, ztm) except SQLObjectNotFound: pass
def fix_plurals_in_all_pofiles(ztm, logger): """Go through all PO files and fix plural forms if needed.""" cur = cursor() cur.execute("""SELECT MAX(id) FROM POFile""") (max_pofile_id, ) = cur.fetchall()[0] for pofile_id in range(1, max_pofile_id): try: pofile = POFile.get(pofile_id) fix_pofile_plurals(pofile, logger, ztm) except SQLObjectNotFound: pass