~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-16 10:08:09 UTC
  • mto: This revision was merged to the branch mainline in revision 6145.
  • Revision ID: jriddell@canonical.com-20110916100809-uii7a1h5tp8qguhy
add gettext to progress bar strings

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    )
77
77
 
78
78
from bzrlib.repofmt import pack_repo
 
79
from bzrlib.i18n import gettext
79
80
""")
80
81
from bzrlib import (
81
82
    annotate,
1760
1761
                        key_records.append((key, details[0]))
1761
1762
                records_iter = enumerate(self._read_records_iter(key_records))
1762
1763
                for (key_idx, (key, data, sha_value)) in records_iter:
1763
 
                    pb.update('Walking content', key_idx, total)
 
1764
                    pb.update(gettext('Walking content'), key_idx, total)
1764
1765
                    compression_parent = build_details[key][1]
1765
1766
                    if compression_parent is None:
1766
1767
                        # fulltext
1796
1797
                source_keys.add(key)
1797
1798
                yield line, key
1798
1799
            keys.difference_update(source_keys)
1799
 
        pb.update('Walking content', total, total)
 
1800
        pb.update(gettext('Walking content'), total, total)
1800
1801
 
1801
1802
    def _make_line_delta(self, delta_seq, new_content):
1802
1803
        """Generate a line delta from delta_seq and new_content."""
3463
3464
                for idx, (sub_key, text, num_lines) in enumerate(
3464
3465
                                                self._extract_texts(records)):
3465
3466
                    if pb is not None:
3466
 
                        pb.update('annotating', idx, len(records))
 
3467
                        pb.update(gettext('annotating'), idx, len(records))
3467
3468
                    yield sub_key, text, num_lines
3468
3469
                for sub_key in ann_keys:
3469
3470
                    text = self._text_cache[sub_key]