diff options
| author | 2014-06-13 21:51:04 -0300 | |
|---|---|---|
| committer | 2014-06-13 21:51:04 -0300 | |
| commit | 3dddbd8cc879402c2047919bccd20e6697082657 (patch) | |
| tree | 38d6290f37be1d67d91c46027974e6ee3372e232 /scripts/import_po.py | |
| parent | 7ac2cf148f7a8ea0de126fed3360b49964ce9b45 (diff) | |
| parent | 58c4878526dec5510f23c812274686787d8724ba (diff) | |
Merge tag 'upstream/7.0.1'
Upstream version 7.0.1
Diffstat (limited to 'scripts/import_po.py')
| -rwxr-xr-x | scripts/import_po.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/scripts/import_po.py b/scripts/import_po.py index 7e99064..50afab9 100755 --- a/scripts/import_po.py +++ b/scripts/import_po.py @@ -25,22 +25,6 @@ MESSAGES = {""".splitlines() lines2 = [] for entry in po: lines2.append(' "{0}": "{1}",'. format(entry.msgid, entry.msgstr)) - ### BACKWARDS COMPATIBILITY PATCH START - ### TODO: remove in v7 - if entry.msgid in ["Posted:", "Also available in:"]: - fid = entry.msgid - fid = fid.replace(':', '') - fstr = entry.msgstr - fstr = fstr.replace(':', '').replace(':', '') - lines2.append(' "{0}": "{1}",'. format(fid, fstr)) - elif entry.msgid == 'More posts about %s': - fid = entry.msgid - fid = fid.replace(' %s', '') - fstr = entry.msgstr - fstr = fstr.replace(' %s', '').replace('%s', '') - lines2.append(' "{0}": "{1}",'. format(fid, fstr)) - ### BACKWARDS COMPATIBILITY PATCH END - ### TODO: remove in v7 lines.extend(sorted(lines2)) lines.append("}\n") print("Generating:", outf) |
