Пример #1
0
def _formatText(style, text = ''):
    if type(text) in types.StringTypes and i18n.isValidKey(text):
        text = i18n.makeString(text)
    return _getStyle(style, {'message': text})
Пример #2
0
def _formatText(style, text=''):
    if type(text) in types.StringTypes and i18n.isValidKey(text):
        text = i18n.makeString(text)
    return _getStyle(style, {'message': text})
Пример #3
0
def _formatText(style, text = ''):
    if i18n.isValidKey(text):
        text = i18n.makeString(text)
    return makeHtmlString('html_templates:lobby/textStyle', style, {'message': text})