Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(44)  |  Call(40)  |  Derive(0)  |  Import(4)
Check whether locale data is available for the given locale.  Ther
return value is `True` if it exists, `False` otherwise.

:param name: the locale identifier string

        def exists(name):
    """Check whether locale data is available for the given locale.  Ther
    return value is `True` if it exists, `False` otherwise.

    :param name: the locale identifier string
    """
    if name in _cache:
        return True
    return os.path.exists(os.path.join(_dirname, '%s.dat' % name))
        


src/k/i/kitsune-HEAD/vendor/packages/Babel/babel/core.py   kitsune(Download)
 
        identifier = str(self)
        if not localedata.exists(identifier):
            raise UnknownLocaleError(identifier)
 

src/h/u/hue-HEAD/desktop/core/ext-py/Babel-0.9.6/babel/core.py   hue(Download)
 
        identifier = str(self)
        if not localedata.exists(identifier):
            raise UnknownLocaleError(identifier)
 

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Babel-0.9.6/babel/core.py   hortonworks-sandbox(Download)
 
        identifier = str(self)
        if not localedata.exists(identifier):
            raise UnknownLocaleError(identifier)
 

src/f/j/fjord-HEAD/vendor/packages/Babel/babel/core.py   fjord(Download)
 
        identifier = str(self)
        if not localedata.exists(identifier):
            raise UnknownLocaleError(identifier)
 

src/f/o/foofind-web-HEAD/foofind/blueprints/page.py   foofind-web(Download)
        ((code, languages[code].capitalize()+" ("+localedata.load(code)["languages"][code].capitalize()+")")
            for code, language in languages.items()
            if code in current_app.config["TRANSLATE_LANGS"] and not code in current_app.config["LANGS"] and localedata.exists(code) and code in localedata.load(code)["languages"]),
        key=lambda x: keystrcoll(x[1]))
 

src/z/e/ZenPacks.zenoss.OpenStack-HEAD/src/Babel-1.3/babel/core.py   ZenPacks.zenoss.OpenStack(Download)
 
        identifier = str(self)
        if not localedata.exists(identifier):
            raise UnknownLocaleError(identifier)
 

src/w/e/webapp-improved-HEAD/lib/babel/babel/core.py   webapp-improved(Download)
 
        identifier = str(self)
        if not localedata.exists(identifier):
            raise UnknownLocaleError(identifier)
 

src/k/u/kuma-lib-HEAD/packages/Babel/babel/core.py   kuma-lib(Download)
 
        identifier = str(self)
        if not localedata.exists(identifier):
            raise UnknownLocaleError(identifier)
 

src/i/n/input-lib-HEAD/packages/Babel/babel/core.py   input-lib(Download)
 
        identifier = str(self)
        if not localedata.exists(identifier):
            raise UnknownLocaleError(identifier)
 

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/babel/core.py   socorro(Download)
 
        identifier = str(self)
        if not localedata.exists(identifier):
            raise UnknownLocaleError(identifier)
 

  1 | 2 | 3 | 4  Next