forked from AFPy/python-docs-fr
Done with: pofile = polib.pofile('./whatsnew/changelog.po') for entry in pofile.fuzzy_entries(): bpo = re.search('bpo-[0-9]+', entry.msgid) issue = re.search('Issue #[0-9]+', entry.msgstr) if bpo and issue: bpo = bpo.group(0) issue = issue.group(0) bpo_number = int(bpo.split('-')[1]) issue_number = int(issue.split('#')[1]) if bpo_number == issue_number: entry.msgstr = entry.msgstr.replace(issue, bpo) entry.flags.remove('fuzzy') pofile.save() | ||
|---|---|---|
| .. | ||
| 2.0.po | ||
| 2.1.po | ||
| 2.2.po | ||
| 2.3.po | ||
| 2.4.po | ||
| 2.5.po | ||
| 2.6.po | ||
| 2.7.po | ||
| 3.0.po | ||
| 3.1.po | ||
| 3.2.po | ||
| 3.3.po | ||
| 3.4.po | ||
| 3.5.po | ||
| 3.6.po | ||
| changelog.po | ||
| index.po | ||