Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
contego / home / tvault / .virtenv / lib / python2.7 / site-packages / oslo_i18n / _gettextutils.pyc
Size: Mime:
ó
ƍEYc@s‚dZddlZddlZddlZddlmZddlmZddlmZddgZ	d„Z
iZd	„ZdS(
sFgettextutils provides a wrapper around gettext for OpenStack projects
iÿÿÿÿN(t
localedata(t_factory(t_localetinstalltget_available_languagescCs6ddlm}tj|ƒ}|j|jjd<dS(s¡Install a _() function using the given translation domain.

    Given a translation domain, install a _() function using gettext's
    install() function.

    The main difference from gettext.install() is that we allow
    overriding the default localedir (e.g. /usr/share/locale) using
    a translation-domain-specific environment variable (e.g.
    NOVA_LOCALEDIR).

    :param domain: the translation domain
    iÿÿÿÿ(tmovest_N(tsixRRtTranslatorFactorytprimarytbuiltinst__dict__(tdomainRttf((sL/home/tvault/.virtenv/lib/python2.7/site-packages/oslo_i18n/_gettextutils.pyR#s
csHˆtkrtjtˆƒStjjtjˆƒƒ‰‡‡fd†‰dg‰tjƒ}ˆj	‡fd†|Dƒƒidd6dd6dd	6d
d6}ˆj	‡fd†|j
ƒDƒƒˆj	‡‡fd
†|j
ƒDƒƒdg}x>ˆdD]2}d|kr |jd|ƒqû|j|ƒqûW|tˆ<tj|ƒS(sxLists the available languages for the given translation domain.

    :param domain: the domain to get languages for
    cstjˆdˆd|gƒS(Nt	localedirt	languages(tgettexttfind(tx(RR(sL/home/tvault/.virtenv/lib/python2.7/site-packages/oslo_i18n/_gettextutils.pyt<lambda>Asten_USc3s!|]}ˆ|ƒr|VqdS(N((t.0tlanguage(R(sL/home/tvault/.virtenv/lib/python2.7/site-packages/oslo_i18n/_gettextutils.pys	<genexpr>Istzh_CNtzhtzh_HKt
zh_Hant_HKtzh_TWtzh_Hantttl_PHtfilc3s3|])\}}|ˆkr|ˆkr|VqdS(N((Rtlocaletalias(t
language_list(sL/home/tvault/.virtenv/lib/python2.7/site-packages/oslo_i18n/_gettextutils.pys	<genexpr>Ss	c3s3|])\}}|ˆkrˆ|ƒr|VqdS(N((RRR (RR!(sL/home/tvault/.virtenv/lib/python2.7/site-packages/oslo_i18n/_gettextutils.pys	<genexpr>Ws	iR(
t_AVAILABLE_LANGUAGEStcopytostenvirontgetRtget_locale_dir_variable_nameRtlocale_identifierstextendtitemstinserttappend(RR(taliasestresultti((RRR!RsL/home/tvault/.virtenv/lib/python2.7/site-packages/oslo_i18n/_gettextutils.pyR8s(	

#&	
(
t__doc__R#RR$tbabelRt	oslo_i18nRRt__all__RR"R(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/oslo_i18n/_gettextutils.pyt<module>s