def setlocalepath(dirname):
    """
    Set directory containing message catalogs.

    Message catalogs will be expected at the filename
    dirname/locale/category, where locale is a locale
    name and category is a locale facet such as
    LC_NUMERIC.
    """
    global _locale_path
    _locale_path = dirname
