def captioned_button(req, symbol, text):
    return symbol if req.session.get('ui.use_symbols') \
        else u'%s %s' % (symbol, text)
Return symbol and text or only symbol, according to user preferences.
dataset/ETHPy150Open edgewall/trac/trac/util/presentation.py/captioned_button