def source_to_locale_path(path):
    """
    Return locale resource path for the given source resource path.
    Locale files for .pot files are actually .po.
    """
    if path.endswith("pot"):
        path = path[:-1]
    return path