~chromium-team/chromium-browser/translations-pump

« back to all changes in this revision

Viewing changes to fileformats/po.py

  • Committer: Chad MILLER
  • Date: 2015-10-19 18:42:18 UTC
  • Revision ID: chad.miller@canonical.com-20151019184218-benco7vjulfva1lc
.

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
                            if example:
378
378
                                out.write("#. ex: {0}\n".format(example))
379
379
 
380
 
                        for ref in sorted(template_info["refs"], key=lambda r: r["file"])[:2]:
381
 
                            out.write("#. in: {file}, as {id}\n".format(**ref))
 
380
                        for ref in sorted(template_info["refs"], key=lambda r: r["grdfile"])[:2]:
 
381
                            out.write("#. in: {grdfile}, as {id}\n".format(**ref))
382
382
                        out.write("#: id: {0}; intermediary: cmlpgrid v1\n".format(grdsid))
383
383
                        po_translations = [x for x in translations if x[1] == "PO"]
384
384
                        if po_translations: