def get_translator(pkg):
        if not _cache.has_key(pkg):
            locale_dir = os.path.join(_top, pkg.replace(".", os.sep))
            try:
                f = gettext.translation('4Suite', locale_dir).gettext
            except __HOLE__:
                f = _
            _cache[pkg] = f
        return _cache[pkg]
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/xml/FtCore.py/get_translator