~ubuntu-branches/ubuntu/maverick/apturl/maverick-security

« back to all changes in this revision

Viewing changes to AptUrl/UI.py

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2009-09-10 13:09:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090910130927-bj98gfpr5lzw1rht
Tags: 0.4.0ubuntu5
* Borrow encoding wrappers from GDebi to fix encodings in KDE UI (implemented
  via Helpers). These new wrappers utf8, _ and _n are used throughout the
  whole application.
* Fix minor formatting error in KDE UI's _get_dialog
* link apturl's manpage to the apturl-gtk and apturl-kde manpages since
  they share the same argument parser anyway
* Bump standards version to 3.8.3
* Port package build system to dh 7
  + Build-depend on debhelper 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
import gettext
3
 
from gettext import gettext as _
 
2
import Helpers
 
3
from Helpers import utf8, _, _n
4
4
 
5
5
class AbstractUI(object):
6
6
    # generic dialogs
15
15
    def askEnableSections(self, sections):
16
16
        " generic implementation, can be overridden "
17
17
        return self.yesNoQuestion(_("Enable additional components"),
18
 
                        gettext.ngettext("Do you want to enable the following "
 
18
                                  _n("Do you want to enable the following "
19
19
                                         "component: '%s'?",
20
20
                                         "Do you want to enable the following "
21
21
                                         "components: '%s'?",