Ñò
ž²Hc
@ s d Z d d k Z d d k Z y d d k Z Wn e j
o d d k Z n Xd d k l Z d d d g Z d Z h Z
e i ƒ Z e i
i e i
i e ƒ d ƒ Z d „ Z d
„ Z e d „ Z d „ Z d
e f d „ ƒ YZ d e e f d „ ƒ YZ d S( s¬ Low-level locale data access.
:note: The `Locale` class, which uses this module under the hood, provides a
more convenient interface for accessing the locale data.
iÿÿÿÿN( t DictMixint existst listt loads restructuredtext ent
localedatac C s5 | t j o t St i i t i i t d | ƒ ƒ S( sÈ Check whether locale data is available for the given locale.
:param name: the locale identifier string
:return: `True` if the locale data exists, `False` otherwise
:rtype: `bool`
s %s.dat( t _cachet Truet ost pathR t joint _dirname( t name( ( s4 /usr/lib/python2.6/site-packages/babel/localedata.pyR $ s
c C ss g } g } t i t ƒ D] } | t i i | ƒ q ~ D]1 \ } } | d j o | d j o | | q; q; ~ S( sº Return a list of all locale identifiers for which locale data is
available.
:return: a list of locale identifiers (strings)
:rtype: `list`
:since: version 0.8.1
s .datt root( R t listdirR
R t splitext( t _[1]t _[2]t filenamet stemt extension( ( s4 /usr/lib/python2.6/site-packages/babel/localedata.pyR 0 s @c C s/ t i ƒ zt i | ƒ } | põ | d j p | o
h } nR | i d ƒ } t | ƒ d j o
d } n d i | d ƒ } t | ƒ i ƒ } t i
i t d | ƒ } t | d ƒ } zK | d j o! | o t
| t i | ƒ ƒ n t i | ƒ } | t |