@classmethod
def httpString(cls, languages):
    """
        Class method to convert a list of acceptable languages into a
        byte array.
       
        The byte array can be sent along with the Accept-Language http header
        (see RFC 2616).
        
        @param languages list of acceptable languages (list of strings)
        @return converted list (QByteArray)
        """
    processed = []
    qvalue = 1.0
    for language in languages:
        leftBracket = language.find('[')
        rightBracket = language.find(']')
        tag = language[leftBracket + 1:rightBracket]
        if not processed:
            processed.append(tag)
        else:
            processed.append('{0};q={1:.1f}'.format(tag, qvalue))
        if qvalue > 0.1:
            qvalue -= 0.1
    return ', '.join(processed)
