~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-16 13:27:14 UTC
  • mfrom: (6138.3.15 i18n-gettext-errors)
  • Revision ID: pqm@pqm.ubuntu.com-20110916132714-w81xvesg996w68r6
(jr) Add gettext() to user error messages
 (Jonathan Riddell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
445
445
                        elif m.group(2).lower() == 'g':
446
446
                            val *= 10**9
447
447
                else:
448
 
                    ui.ui_factory.show_warning('Invalid config value for "%s" '
449
 
                                               ' value %r is not an SI unit.'
450
 
                                                % (option_name, val))
 
448
                    ui.ui_factory.show_warning(gettext('Invalid config value for "{0}" '
 
449
                                               ' value {1!r} is not an SI unit.').format(
 
450
                                                option_name, val))
451
451
                    val = default
452
452
            except TypeError:
453
453
                val = default