def getProduct(file):
    """Returns the product part of a file. We assume files to be something like
    domain-language.po.
    Example: atcontenttypes-pt-br.po
    """
    assert file.endswith('.po') or file.endswith('.pot')
    file = file.split('.')[0]
    file = file.split('-')[0]
    return file
