~mterry/duplicity/list-old-chains-0.6

« back to all changes in this revision

Viewing changes to duplicity/misc.py

  • Committer: loafman
  • Date: 2008-12-22 17:22:44 UTC
  • Revision ID: vcs-imports@canonical.com-20081222172244-cjurdc0mt5d41n6d
patch #6700: Make duplicity translatable
https://savannah.nongnu.org/patch/?6700

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        if self.finished: raise StopIteration
90
90
 
91
91
        filename = "%s.%d" % (self.prefix, self.current_index)
92
 
        log.Log("Starting to write %s" % filename, 5)
 
92
        log.Log(_("Starting to write %s") % filename, 5)
93
93
        outfp = open(filename, "wb")
94
94
 
95
95
        if not self.write_volume(outfp): # end of input
96
96
            self.finished = 1
97
97
            if self.current_index == 1: # special case first index
98
 
                log.Log("One only volume required.\n"
99
 
                        "Renaming %s to %s" % (filename, self.prefix), 4)
 
98
                log.Log(_("One only volume required.\n"
 
99
                          "Renaming %s to %s") % (filename, self.prefix), 4)
100
100
                os.rename(filename, self.prefix)
101
101
                return self.prefix
102
102
        else: self.current_index += 1