config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/gettext.pyc

hRc@sdZddkZddkZddkZddkZddkZddkZddklZdddddd	d
ddd
ddgZ	ei
ieiddZ
dZdZdZdd'dYZdefdYZddddZhZdddeddZdedddZhahadaddZddZddZdZd Z d!Z!d"Z"d#Z#d$Z$d%Z%d&Z&eZ'dS((sInternationalization and localization support.

This module provides internationalization (I18N) and localization (L10N)
support for your Python programs by providing an interface to the GNU gettext
message catalog library.

I18N refers to the operation by which a program is made aware of multiple
languages.  L10N refers to the adaptation of your program, once
internationalized, to the local language and cultural habits.

iN(tENOENTtNullTranslationstGNUTranslationstCatalogtfindttranslationtinstallt
textdomaintbindtextdomaintdgettextt	dngettexttgettexttngettexttsharetlocalecCs|o|Sn|SdS(sy
    Implements the C expression:

      condition ? true : false

    Required to correctly interpret plural forms.
    N((t	conditionttruetfalse((s#/usr/local/lib/python2.5/gettext.pyttest=scsyddkl}Wn#tj
oddkl}nXddk}ddk}|i||i}yNg}|D]6}|d|ijo|ddjo||qxqx~}Wn|ij
ot	dnX|o
t	dn|i
d	d
}|i
dd}tid
i
d|}tidfddg}x|D]}	|	djo|idqd|	djoPt|djo
t	dni
|i}
|dcd|
7<qd|dc|	7<qdWi
|i}td|S(sGets a C expression as used in PO files for plural forms and returns a
    Python lambda function that implements an equivalent expression.
    i(tStringIONiitns;plural forms expression error, maybe unbalanced parenthesiss*plural forms expression could be dangerouss&&s and s||s or s\!([^=])s not \1s(.*?)\?(.*?):(.*)cs8d|id|idi|idfS(Nstest(%s, %s, %s)iii(tgrouptsub(tx(trepltexpr(s#/usr/local/lib/python2.5/gettext.pyRistt(t)s%unbalanced parenthesis in plural forms(%s)slambda n: int(%s)(t	cStringIORtImportErrorttokenttokenizetgenerate_tokenstreadlinetNAMEt
TokenErrort
ValueErrortreplacetretcompileRtappendtlentpopteval(tpluralRRR ttokenst_[1]Rtdangertstacktcts((RRs#/usr/local/lib/python2.5/gettext.pytc2pyKs@N
	


c
Csddkl}||}d
}d}d}d}|id}|djo"||}|| }||O}nd}|id}|djo"||}|| }||O}nd}|id	}|djo"||}	|| }||O}nd}	|}
g}xt|dD]t}||@pb|
}
||@o|
|	7}
n||@o|
|7}
n||@o|
|7}
n|i|
qqW|i|S(
Ni(t	normalizeiiit@Rt.t_iii(RR5RtrangeR)treverse(RR5tCOMPONENT_CODESETtCOMPONENT_TERRITORYtCOMPONENT_MODIFIERtmasktpostmodifiertcodesett	territorytlanguagetrettitval((s#/usr/local/lib/python2.5/gettext.pyt_expand_langsN









cBseZddZdZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZedd
ZRS(cCsFh|_d|_d|_d|_|dj	o|i|ndS(N(t_infotNonet_charsett_output_charsett	_fallbackt_parse(tselftfp((s#/usr/local/lib/python2.5/gettext.pyt__init__s				
cCsdS(N((RNRO((s#/usr/local/lib/python2.5/gettext.pyRMscCs+|io|ii|n
||_dS(N(RLtadd_fallback(RNtfallback((s#/usr/local/lib/python2.5/gettext.pyRQs
cCs"|io|ii|Sn|S(N(RLR(RNtmessage((s#/usr/local/lib/python2.5/gettext.pyRs
cCs"|io|ii|Sn|S(N(RLtlgettext(RNRS((s#/usr/local/lib/python2.5/gettext.pyRTs
cCsA|io|ii|||Sn|djo|Sn|SdS(Ni(RLR(RNtmsgid1tmsgid2R((s#/usr/local/lib/python2.5/gettext.pyRs


cCsA|io|ii|||Sn|djo|Sn|SdS(Ni(RLt	lngettext(RNRURVR((s#/usr/local/lib/python2.5/gettext.pyRWs


cCs(|io|ii|Snt|S(N(RLtugettexttunicode(RNRS((s#/usr/local/lib/python2.5/gettext.pyRXs
cCsM|io|ii|||Sn|djot|Snt|SdS(Ni(RLt	ungettextRY(RNRURVR((s#/usr/local/lib/python2.5/gettext.pyRZs


cCs|iS(N(RH(RN((s#/usr/local/lib/python2.5/gettext.pytinfoscCs|iS(N(RJ(RN((s#/usr/local/lib/python2.5/gettext.pytcharsetscCs|iS(N(RK(RN((s#/usr/local/lib/python2.5/gettext.pytoutput_charsetscCs
||_dS(N(RK(RNR\((s#/usr/local/lib/python2.5/gettext.pytset_output_charsetscCsddk}|o
|ip|i|id<t|dod|jo|id|id<nd|jo%|o
|ip|i|id<nd|jo|i|id<nd|jo|i|id<qndS(NiR8t__contains__RRRTRW(	t__builtin__RXRt__dict__thasattrRZRRTRW(RNRYtnamesR`((s#/usr/local/lib/python2.5/gettext.pyRs!



N(t__name__t
__module__RIRPRMRQRRTRRWRXRZR[R\R]R^tFalseR(((s#/usr/local/lib/python2.5/gettext.pyRs												cBsSeZdZdZdZdZdZdZdZdZ	dZ
RS(	l*l$<cCsti}t|dd}h|_}d|_|i}t|}|d|d d}||ijo,|d|dd!\}}	}
}d	}nO||ijo,|d
|dd!\}}	}
}d}nt	dd|xt
d|	D]}
||||
|
d
!\}}||}|||||d
!\}}||}||jo+||jo|||!}|||!}nt	dd||djo(d}}x|iD]	}|i
}|pqnd|joM|idd\}}|i
i}|i
}||i|<|}n#|o|i|cd|7<n|djo|idd|_q|djo9|id}|didd}t||_qqWnd|jo|id\}}|id}|ioCt||i}g}|D]}|t||iq.~}nxntt|D]}
||
|||
f<qgWn=|io(t||i}t||i}n|||<|
d
7}
|d
7}qWdS(s8Override this method to support alternative .mo formats.tnameRcSst|djS(i(tint(R((s#/usr/local/lib/python2.5/gettext.pyt<lambda>
ss<Iiis<4Iis<IIs>4Is>IIsBad magic numberisFile is corruptt:is
scontent-typescharset=splural-formst;splural=tN(tstructtunpacktgetattrt_catalogR-treadR*tLE_MAGICtBE_MAGICtIOErrortxrangeRIt
splitlineststriptsplittlowerRHRJR4RYR9(RNRORntfilenametcatalogtbuftbuflentmagictversiontmsgcountt	masteridxttransidxtiiREtmlentmofftmendttlenttoffttendtmsgttmsgtlastktktitemtvR-RURVR/R((s#/usr/local/lib/python2.5/gettext.pyRMsx	
"
"
 
 












1


cCst}|ii||}||jo&|io|ii|Sn|Sn|io|i|iSn|io|i|iSn|S(N(tobjectRptgetRLRRKtencodeRJ(RNRStmissingR((s#/usr/local/lib/python2.5/gettext.pyRWs	



cCst}|ii||}||jo&|io|ii|Sn|Sn|io|i|iSn|itiS(N(	RRpRRLRTRKRRtgetpreferredencoding(RNRSRR((s#/usr/local/lib/python2.5/gettext.pyRTes	


cCsy`|i||i|f}|io|i|iSn|io|i|iSn|SWnPtj
oD|io|ii|||Sn|djo|Sq|SnXdS(Ni(RpR-RKRRJtKeyErrorRLR(RNRURVRR((s#/usr/local/lib/python2.5/gettext.pyRps



cCsyQ|i||i|f}|io|i|iSn|itiSWnPtj
oD|io|ii|||Sn|djo|Sq|SnXdS(Ni(	RpR-RKRRRRRLRW(RNRURVRR((s#/usr/local/lib/python2.5/gettext.pyRWs


cCs[t}|ii||}||jo,|io|ii|Snt|Sn|S(N(RRpRRLRXRY(RNRSRR((s#/usr/local/lib/python2.5/gettext.pyRXs	

cCsy |i||i|f}Wn`tj
oT|io|ii|||Sn|djot|}qt|}nX|S(Ni(RpR-RRLRZRY(RNRURVRR((s#/usr/local/lib/python2.5/gettext.pyRZs 

(RdReRrRsRMRRTRRWRXRZ(((s#/usr/local/lib/python2.5/gettext.pyRs	Q						icCsf|djo
t}n|djofg}x;dD]3}tii|}|o|id}Pq1q1Wd|jo|idqng}xC|D];}x2t|D]$}||jo|i|qqWqW|o
g}	nd}	xr|D]j}|djoPntii	||dd|}
tii
|
o |o|	i|
q^|
SqqW|	S(	NtLANGUAGEtLC_ALLtLC_MESSAGEStLANGRjtCs%s.mo(RRRR(RIt_default_localedirtostenvironRRxR)RGtpathtjointexists(tdomaint	localedirt	languagestalltenvarRFtnelangstlangtnelangtresulttmofile((s#/usr/local/lib/python2.5/gettext.pyRs@


	




cCs|djo
t}nt|||dd}|p(|otSnttd|nd}x|D]}tii|}	t	i
|	}
|
djo%t	i|	|t|d}
nt
i
|
}
|o|
i|n|djo
|
}qk|i|
qkW|S(NRis$No translation file found for domaintrb(RIRRRRtRRRtabspatht
_translationsRt
setdefaulttopentcopyR^RQ(RRRtclass_RRRAtmofilesRRtkeytt((s#/usr/local/lib/python2.5/gettext.pyRs*


%

cCs/t||dtd|}|i||dS(NRRRA(RtTrueR(RRRYRARcR((s#/usr/local/lib/python2.5/gettext.pyRstmessagescCs|dj	o
|antS(N(RIt_current_domain(R((s#/usr/local/lib/python2.5/gettext.pyRs

cCs+|dj	o|t|<nti|tS(N(RIt_localedirsRR(RR((s#/usr/local/lib/python2.5/gettext.pyRs
cCs(|dj	o|t|<nti|S(N(RIt_localecodesetsR(RRA((s#/usr/local/lib/python2.5/gettext.pytbind_textdomain_codesets
c	CsUy.t|ti|ddti|}Wntj
o|SnX|i|S(NRA(RRRRIRRtR(RRSR((s#/usr/local/lib/python2.5/gettext.pyR	s	c	CsUy.t|ti|ddti|}Wntj
o|SnX|i|S(NRA(RRRRIRRtRT(RRSR((s#/usr/local/lib/python2.5/gettext.pyt	ldgettexts	c	Cspy.t|ti|ddti|}Wn,tj
o |djo|Sq]|SnX|i|||S(NRAi(RRRRIRRtR(RRURVRR((s#/usr/local/lib/python2.5/gettext.pyR
s
	c	Cspy.t|ti|ddti|}Wn,tj
o |djo|Sq]|SnX|i|||S(NRAi(RRRRIRRtRW(RRURVRR((s#/usr/local/lib/python2.5/gettext.pyt
ldngettext*s
	cCs
tt|S(N(R	R(RS((s#/usr/local/lib/python2.5/gettext.pyR5scCs
tt|S(N(RR(RS((s#/usr/local/lib/python2.5/gettext.pyRT8scCstt|||S(N(R
R(RURVR((s#/usr/local/lib/python2.5/gettext.pyR;scCstt|||S(N(RR(RURVR((s#/usr/local/lib/python2.5/gettext.pyRW>s(((t__doc__RRRR'RmtsysterrnoRt__all__RRtprefixRRR4RGRRRIRRRfRRRRRRRRR	RR
RRRTRRWR(((s#/usr/local/lib/python2.5/gettext.pys<module>s>&H			7	+T&								

Man Man