~ubuntu-core-dev/ubuntu/xenial/ubuntu-release-upgrader/xenial

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeViewText.py

  • Committer: Michael Terry
  • Date: 2012-06-06 21:23:35 UTC
  • mto: This revision was merged to the branch mainline in revision 2509.
  • Revision ID: michael.terry@canonical.com-20120606212335-dt5xyu2v3ct5hcey
first pass at converting update-manager source into ubuntu-release-upgrader

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        if not datadir:
69
69
          localedir=os.path.join(os.getcwd(),"mo")
70
70
        else:
71
 
          localedir="/usr/share/locale/update-manager"
 
71
          localedir="/usr/share/locale/ubuntu-release-upgrader"
72
72
 
73
73
        try:
74
 
          gettext.bindtextdomain("update-manager", localedir)
75
 
          gettext.textdomain("update-manager")
 
74
          gettext.bindtextdomain("ubuntu-release-upgrader", localedir)
 
75
          gettext.textdomain("ubuntu-release-upgrader")
76
76
        except Exception as e:
77
77
          logging.warning("Error setting locales (%s)" % e)
78
78