MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/bin/msgfmt.pyo
mς
‚=5Dc@s‹dZdkZdkZdkZdkZdkZdZhadd„Zd„Z	d„Z
d„Zd„Ze
d	joeƒndS(
sGenerate binary message catalog from textual translation description.

This program converts a textual Uniforum-style message catalog (.po file) into
a binary GNU catalog (.mo file).  This is essentially the same function as the
GNU msgfmt program, however, it is a simpler implementation.

Usage: msgfmt.py [OPTIONS] filename.po

Options:
    -o file
    --output-file=file
        Specify the output file to write to.  If omitted, output will go to a
        file named filename.mo (based off the input file name).

    -h
    --help
        Print this message and exit.

    -V
    --version
        Display version information and exit.
Ns1.1tcCs6titIJ|oti|IJnti|ƒdS(N(tsyststderrt__doc__tmsgtexittcode(RR((t/usr/bin/msgfmt.pytusage(s
cCs!|o|o|t|<ndS(s.Add a non-fuzzy translation to the dictionary.N(tfuzzytstrtMESSAGEStid(RR
R	((Rtadd0sc	Cs‰tiƒ}|iƒg}d}}xc|D][}|it|ƒt|ƒt|ƒtt|ƒfƒ||d7}|t|d7}q-Wd}
dddt|ƒ}
|
t|ƒ}g}g}xB|D]:\}}	}}||	||
g7}||||g7}qΝW||}tidddt|ƒddddt|ƒd	ddƒ}
|
tid
|ƒiƒ7}
|
|7}
|
|7}
|
S(sReturn the generated output.RtiiitIiiiiiilή*iitiN(RtkeystsorttoffsetstidststrsRtappendtlentoutputtkeystartt
valuestarttkoffsetstvoffsetsto1tl1to2tl2tstructtpacktarrayttostring(RRRRRRRR RRRRRR((Rtgenerate8s@

5
		

cCsΔd}d}|idƒo
|}	n|d}	|djotii	|	ƒdd}nyt
|	ƒiƒ}Wn/t
j
o#}ti|IJtidƒnXd}d}
d}xŸ|D]—}|d7}|ddjo-||jo t|||
ƒd}d}
n|d djo|idƒo
d}
n|ddjoqΌn|id	ƒo?||jot|||
ƒn|}|d
}d}}n%|idƒo|}|d
}n|iƒ}|pqΌnt|ƒ}||jo||7}qΌ||jo||7}qΌtid|	|fIdIJti|IJtidƒqΌW||jot|||
ƒntƒ}
yt
|dƒi|
ƒWn"t
j
o}ti|IJnXdS(Niis.pois.mot#s#,R	tmsgidiRtmsgstrisSyntax error on %s:%dsbefore:twb( tIDtSTRtfilenametendswithtinfiletoutfiletNonetostpathtsplitexttopent	readlinestlinestIOErrorRRRRtsectionR	tlnotlR
R'R(tfindt
startswithtstriptevalR%Rtwrite(R,R/R+R9R(R'R8R*RR.R	R6R:R((Rtmakecsj





!






	cCs"y/titidddddgƒ\}}Wn%tij
o}td|ƒnXd}xw|D]o\}}|djotdƒqd|djo$tidIt
IJtidƒqd|djo
|}qdqdW|p"tidIJtidIJdSnx|D]}t||ƒqWdS(NishVo:thelptversionsoutput-file=s-hs--helpis-Vs	--versions	msgfmt.pys-os
--output-filesNo input file givens)Try `msgfmt --help' for more information.(s-hs--help(s-Vs	--version(s-os
--output-file(tgetoptRtargvtoptstargsterrorRRR0R/topttargRt__version__RR,R@(RHR/RFR,RRIRE((Rtmain―s,




t__main__(RRR1RCR!R#RJRRR
R%R@RKt__name__(RKR!R@RR
RRCR#RJR1R%((Rt?s							+	L