def page_name(app=None):
 if app:
  return _(u'Add-ons for {0}').format(app.pretty)
 else:
  return _('Add-ons')

def page_name ( app = None ) : if app : return _ ( u'Add-ons for {0}' ) . format ( app . pretty ) else : return _ ( 'Add-ons' )
determine the correct page name for the given app .