parameters: (item, lang)
return_statement: return '  %-15s "%s"\n' % (name_attr, message)
docstring: Returns a single message of a string table.
docstring_summary: Returns a single message of a string table.
docstring_tokens: Returns a single message of a string table .
function: def FormatMessage(item, lang):
    '''Returns a single message of a string table.'''
    message = item.ws_at_start + item.Translate(lang) + item.ws_at_end
    # Escape quotation marks (RC format uses doubling-up
    message = message.replace('"', '""')
    # Replace linebreaks with a \n escape
    message = util.LINEBREAKS.sub(r'\\n', message)
    if hasattr(item.GetRoot(), 'GetSubstituter'):
      substituter = item.GetRoot().GetSubstituter()
      message = substituter.Substitute(message)
  
    name_attr = item.GetTextualIds()[0]
  
    return '  %-15s "%s"\n' % (name_attr, message)
function_tokens: def FormatMessage ( item , lang ) : message = item . ws_at_start + item . Translate ( lang ) + item . ws_at_end # Escape quotation marks (RC format uses doubling-up message = message . replace ( '"' , '""' ) # Replace linebreaks with a \n escape message = util . LINEBREAKS . sub ( r'\\n' , message ) if hasattr ( item . GetRoot ( ) , 'GetSubstituter' ) : substituter = item . GetRoot ( ) . GetSubstituter ( ) message = substituter . Substitute ( message ) name_attr = item . GetTextualIds ( ) [ 0 ] return '  %-15s "%s"\n' % ( name_attr , message )