def translate_parameters(translation, parameters):
    """Translates parameter names to OS

    :param translation: list of names for translation
    :param parameters: list of parameters
    """
    if not parameters:
        return None
    out = {}
    for key in parameters.keys():
        if key in translation:
            if parameters[key]:
                out[translation[key]] = parameters[key]
    return out
