Given a list of fields and a list of field names that
    are internationalized, will return a list with
    all internationalized fields properly localized.
    
    >>> from django.utils.translation import activate
    >>> activate('en-us')
    >>> localize_fieldnames(['name', 'title', 'url'], ['title'])
    ['name', 'title_en_us', 'url']
    
    :param fields: A :class:`list` af field names.
    :param internationalized_fields: A list of fields names, these fields are internationalized.
    :rtype: A list with the actual field names that are used in the current language.

def localize_fieldnames(fields, internationalized_fields):
    """
    Given a list of fields and a list of field names that
    are internationalized, will return a list with
    all internationalized fields properly localized.
    
    >>> from django.utils.translation import activate
    >>> activate('en-us')
    >>> localize_fieldnames(['name', 'title', 'url'], ['title'])
    ['name', 'title_en_us', 'url']
    
    :param fields: A :class:`list` af field names.
    :param internationalized_fields: A list of fields names, these fields are internationalized.
    :rtype: A list with the actual field names that are used in the current language.
    """
    result = []
    lang = get_language()    
    for field in fields:
        if field in internationalized_fields:
            result.append(get_real_fieldname(field, lang))
        else:
            result.append(field)    
    return result