%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/bin/
Upload File :
Create Path :
Current File : //lib/mailman/bin/msgfmt.pyc

�
��ac@s�dZddlZddlZddlZddlZddlZdZiadd�Zd�Z	d�Z
d�Zd	�Ze
d
kr�e�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.
i����Ns1.1tcCs4tjtIJ|r#tj|IJntj|�dS(N(tsyststderrt__doc__texit(tcodetmsg((sX/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/msgfmt.pytusage(s
cCs|r|r|t|<ndS(s.Add a non-fuzzy translation to the dictionary.N(tMESSAGES(tidtstrtfuzzy((sX/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/msgfmt.pytadd0s
c	Cs}tj�}|j�g}d}}xc|D][}|jt|�t|�t|�tt|�f�||d7}|t|d7}q-Wd}ddt|�}|t|�}g}g}	xB|D]:\}
}}}
|||
|g7}|	|
||g7}	q�W||	}tjdddt|�dd
t|�d	dd�}|tjd
|�j�7}||7}||7}|S(sReturn the generated output.RtiiitIiiiiiil�*iitiiii(	Rtkeystsorttappendtlentstructtpacktarrayttostring(RtoffsetstidststrsR	toutputtkeystartt
valuestarttkoffsetstvoffsetsto1tl1to2tl2((sX/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/msgfmt.pytgenerate8s8


5
		

cCs�d}d}|jd�r$|}n
|d}|dkrWtjj|�dd}nyt|�j�}Wn-tk
r�}tj	|IJtj
d�nXd}d}d}	x�|D]�}
|	d7}	|
ddkr||krt|||�d}d}n|
d dkr)|
jd�r)d}n|
ddkr?q�n|
j
d	�r�||krmt|||�n|}|
d
}
d}}n"|
j
d�r�|}|
d
}
n|
j�}
|
s�q�nt|
�}
||kr�||
7}q�||kr||
7}q�tj	d||	fIdIJtj	|
IJtj
d�q�W||kr\t|||�nt�}
yt|d�j|
�Wn tk
r�}tj	|IJnXdS(Niis.pois.mot#s#,RtmsgidiRtmsgstrisSyntax error on %s:%dsbefore:twb(tendswithtNonetostpathtsplitexttopent	readlinestIOErrorRRRRtfindt
startswithtstriptevalR$twrite(tfilenametoutfiletIDtSTRtinfiletlinesRtsectionRtlnotlR&R'R((sX/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/msgfmt.pytmakecsj	



		





	cCsy/tjtjdddddg�\}}Wn#tjk
rT}td|�nXd}xq|D]i\}}|dkr�td�qb|dkr�tjdItIJtjd�qb|dkrb|}qbqbW|s�tjdIJtjdIJdSx|D]}t	||�q�WdS(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(
tgetoptRtargvterrorRR*Rt__version__RR?(toptstargsRR7topttargR6((sX/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/msgfmt.pytmain�s(




t__main__(RRR+RBRRRERRRR$R?RJt__name__(((sX/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/msgfmt.pyt<module>s		+	L	

Zerion Mini Shell 1.0