def from_buffer(string, srcLang, destLang, serverEndpoint=ServerEndpoint):
    '''
    Translates content from source language to desired destination language
    :param string: input content which needs translation
    :param srcLang: name of language of the input content
    :param destLang: name of the desired language for translation
    :param serverEndpoint:
    :return:
    '''
    status, response = callServer('put', ServerEndpoint, '/translate/all/'+Translator+'/'+srcLang+'/'+destLang, 
                                  string, {'Accept': 'text/plain'}, False)
    return response
Translates content from source language to desired destination language
    :param string: input content which needs translation
    :param srcLang: name of language of the input content
    :param destLang: name of the desired language for translation
    :param serverEndpoint:
    :return: