~ubuntu-branches/ubuntu/maverick/computer-janitor/maverick-updates

« back to all changes in this revision

Viewing changes to computerjanitorapp/gtk/ui.py

  • Committer: Bazaar Package Importer
  • Author(s): Barry Warsaw
  • Date: 2010-08-24 11:00:14 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100824110014-ot5hqxhcpbjlyf77
Tags: 2.0.3-0ubuntu1
* Fixes for translation support.
  - Turn {foo} string substitutions back into %(foo)s strings since
    gettext does not yet support validation of {foo} or $foo
    substitutions.  (LP: #621723)
  - Ensure that POTFILES.in has the proper type information for the
    ComputerJanitor.ui file.  (LP: #612493)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import pango
31
31
import gobject
32
32
 
 
33
from operator import mod
 
34
 
33
35
from computerjanitorapp import __version__, setup_gettext
34
36
from computerjanitorapp.gtk.dialogs import AreYouSure, CleanupProblem
35
37
from computerjanitorapp.gtk.store import (
262
264
            action = ACTIONS.get(cruft_type.lower())
263
265
            if action is not None:
264
266
                lines.append(action)
265
 
            lines.append(_('Size: {bytes}').format(bytes=format_size(size)))
 
267
            # XXX barry 2010-08-23: LP: #622720
 
268
            lines.append(mod(_('Size: %(bytes)s'),
 
269
                             dict(bytes=format_size(size))))
266
270
            lines.append('')
267
271
            description = self.janitord.get_description(cruft_name)
268
272
            lines.append(gobject.markup_escape_text(description))
344
348
        self.working = (cruft != '')
345
349
        if self.working:
346
350
            self.widgets['progressbar_status'].set_text(
347
 
                _('Processing {cruft}').format(cruft=cruft))
 
351
                # XXX barry 2010-08-23: LP: #622720
 
352
                mod(_('Processing %(cruft)s'), dict(cruft=cruft)))
348
353
 
349
354
    # Callbacks
350
355