~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/add.py

  • Committer: John Arbash Meinel
  • Date: 2011-09-26 07:56:05 UTC
  • mfrom: (6165 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6170.
  • Revision ID: john@arbash-meinel.com-20110926075605-czuukdiawz68dpbd
Merge bzr.dev 6165, resolve conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    osutils,
24
24
    ui, 
25
25
    )
26
 
 
 
26
from bzrlib.i18n import gettext
27
27
 
28
28
class AddAction(object):
29
29
    """A class which defines what action to take when adding a file."""
91
91
        else:
92
92
            file_size = stat_value.st_size;
93
93
        if self._maxSize > 0 and file_size > self._maxSize:
94
 
            ui.ui_factory.show_warning(
95
 
                "skipping %s (larger than %s of %d bytes)" % 
96
 
                (path, self._optionName,  self._maxSize))
 
94
            ui.ui_factory.show_warning(gettext(
 
95
                "skipping {0} (larger than {1} of {2} bytes)").format(
 
96
                path, self._optionName,  self._maxSize))
97
97
            return True
98
98
        return False
99
99