~mvo/software-center/fix-chroot-lp1040311

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/views/appdetailsview.py

  • Committer: Gary Lasker
  • Date: 2012-08-18 05:35:12 UTC
  • mfrom: (3105.1.3 display-price-property)
  • Revision ID: gary.lasker@canonical.com-20120818053512-47yl3g4d32ozlx3k
* lp:~mvo/software-center/display-price-property:
  - changes to displayed price and currency properties, for
    use by Unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
365
365
            elif state == PkgStates.INSTALLED:
366
366
                self.set_button_label(_('Remove'))
367
367
        elif state == PkgStates.NEEDS_PURCHASE:
368
 
            # FIXME:  need to determine the currency dynamically once we can
369
 
            #         get that info from the software-center-agent/payments
370
 
            #         service.
371
 
            # NOTE:  the currency string for this label is purposely not
372
 
            #        translatable when hardcoded, since it (currently)
373
 
            #        won't vary based on locale and as such we don't want
374
 
            #        it translated
375
 
            self.set_label("%s %s" % (app_details.currency, app_details.price))
 
368
            self.set_label("%s" % (app_details.price))
376
369
            if (app_details.hardware_requirements_satisfied and
377
370
                app_details.region_requirements_satisfied):
378
371
                self.set_button_label(_(u'Buy\u2026'))