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/local/ssl/bin/pygettext.pyo
m
=5Dc@sydkZeiZWnej
odZnXedZdkZdkZdkZdkZdk	Z	dk
Z
dkZdkZdk
Z
dZdgaditZdZedZddZgad	Zd
ZdZdZd
ZdZddZdZdfdYZdZ e!djo6e ededhdd<edndS(NcCs|S(N(ts(R((t/usr/bin/pygettext.pyt<lambda>sspygettext -- Python equivalent of xgettext(1)

Many systems (Solaris, Linux, Gnu) provide extensive tools that ease the
internationalization of C programs. Most of these tools are independent of
the programming language and can be used from within Python programs.
Martin von Loewis' work[1] helps considerably in this regard.

There's one problem though; xgettext is the program that scans source code
looking for message strings, but it groks only C (or C++). Python
introduces a few wrinkles, such as dual quoting characters, triple quoted
strings, and raw strings. xgettext understands none of this.

Enter pygettext, which uses Python's standard tokenize module to scan
Python source code, generating .pot files identical to what GNU xgettext[2]
generates for C and C++ code. From there, the standard GNU tools can be
used.

A word about marking Python strings as candidates for translation. GNU
xgettext recognizes the following keywords: gettext, dgettext, dcgettext,
and gettext_noop. But those can be a lot of text to include all over your
code. C and C++ have a trick: they use the C preprocessor. Most
internationalized C source includes a #define for gettext() to _() so that
what has to be written in the source is much less. Thus these are both
translatable strings:

    gettext("Translatable String")
    _("Translatable String")

Python of course has no preprocessor so this doesn't work so well.  Thus,
pygettext searches only for _() by default, but see the -k/--keyword flag
below for how to augment this.

 [1] http://www.python.org/workshops/1997-10/proceedings/loewis.html
 [2] http://www.gnu.org/software/gettext/gettext.html

NOTE: pygettext attempts to be option and feature compatible with GNU
xgettext where ever possible. However some options are still missing or are
not fully implemented. Also, xgettext's use of command line switches with
option arguments is broken, and in these cases, pygettext just defines
additional switches.

Usage: pygettext [options] inputfile ...

Options:

    -a
    --extract-all
        Extract all strings.

    -d name
    --default-domain=name
        Rename the default output file from messages.pot to name.pot.

    -E
    --escape
        Replace non-ASCII characters with octal escape sequences.

    -D
    --docstrings
        Extract module, class, method, and function docstrings.  These do
        not need to be wrapped in _() markers, and in fact cannot be for
        Python to consider them docstrings. (See also the -X option).

    -h
    --help
        Print this help message and exit.

    -k word
    --keyword=word
        Keywords to look for in addition to the default set, which are:
        %(DEFAULTKEYWORDS)s

        You can have multiple -k flags on the command line.

    -K
    --no-default-keywords
        Disable the default set of keywords (see above).  Any keywords
        explicitly added with the -k/--keyword option are still recognized.

    --no-location
        Do not write filename/lineno location comments.

    -n
    --add-location
        Write filename/lineno location comments indicating where each
        extracted string is found in the source.  These lines appear before
        each msgid.  The style of comments is controlled by the -S/--style
        option.  This is the default.

    -o filename
    --output=filename
        Rename the default output file from messages.pot to filename.  If
        filename is `-' then the output is sent to standard out.

    -p dir
    --output-dir=dir
        Output files will be placed in directory dir.

    -S stylename
    --style stylename
        Specify which style to use for location comments.  Two styles are
        supported:

        Solaris  # File: filename, line: line-number
        GNU      #: filename:line

        The style name is case insensitive.  GNU style is the default.

    -v
    --verbose
        Print the names of the files being processed.

    -V
    --version
        Print the version of pygettext and exit.

    -w columns
    --width=columns
        Set width of output to columns.

    -x filename
    --exclude-file=filename
        Specify a file that contains a list of strings that are not be
        extracted from the input files.  Each string to be excluded must
        appear on a line by itself in the file.

    -X filename
    --no-docstrings=filename
        Specify a file that contains a list of files (one per line) that
        should not have their docstrings extracted.  This is only useful in
        conjunction with the -D option above.

If `inputfile' is -, standard input is read.
s1.5t_s, ts# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: %(time)s\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
"Generated-By: pygettext.py %(version)s\n"

cCs=tittIJ|oti|IJnti|dS(N(tsyststderrt__doc__tglobalstmsgtexittcode(RR	((RtusagescCs|o
d}nd}x^tdD]P}d||jo
djnotit|q$tid|q$Wdttd<dttd	<d
ttd<dttd
<dttd<dS(Niii i~s\%03os\\s\s\ts	s\rs
s\ns
s\"s"(tpass_iso8859tmodtrangetitescapestappendtchrtord(R
RR((Rtmake_escapess

"cCsNt|}x2tt|D]}tt||||<qWti|S(N(	tlistRRtlenRRRtEMPTYSTRINGtjoin(RR((RtescapescCst|hdh<hS(Nt__builtins__(tevalR(R((Rt	safe_evalscCs|id}t|djodt|d}nw|dp|d=|dd|d<nx.tt|D]}t||||<quWd}d|i|d}|S(Ns
it"is\n"
"s""
"(	RtsplittlinesRRRRtlinetermR(RRR R!((Rt	normalizescCs+dg}|D]}|||jq~jS(s6Check whether 'str' contains ANY of the chars in 'set'iN(t_[1]tsettctstr(R&R$R#R%((RtcontainsAnyscCstidpKg}tiD])}|dtijo||dq$q$~dand|jo|i	dn|ig}|D]=}t
ii|dtjo|t
ii||qq~dS(sHelper for getFilesForName().t_py_extiitCVSiN(Rthas_keyR#timptget_suffixesttriplet	PY_SOURCER(tnamestremoveRtextendtfiletostpathtsplitextRtdirname(RR6R/R2R#R-((Rt_visit_pyfiles	sK
cCs*|idd}t|djoy8ti|d|\}}}|o|i
nWntj
odSnX|dti
jot|d|g}q&d}nxy[ti||\}}}|o|i
n|dtiti
gjo
d}nWntj
o
d}nX|S(sGet the filesystem path for a module or a package.

    Return the file system path to a file for a module, and to a directory for
    a package. Return None if the name is not found, or is a builtin or
    extension module.
    t.iiiN(tdotted_nameRtpartsRR+tfind_moduletpathlistR2tpathnametdescriptiontclosetImportErrortNonet
PKG_DIRECTORYt_get_modpkg_pathR.(R9R<R>R:R=R2((RRCs*	
cCstii|ppt|doAti|}g}x!|D]}|i	t
|q?W|Snt|}|pgSqntii|o$g}tii
|t||Sntii|o|gSngS(s]Get a list of module files for a filename, a module or package name,
    or a directory.
    s*?[]N(R3R4texiststnameR'tglobtfilesRR2R1tgetFilesForNameRCtisdirtwalkR7(RERGRR2((RRHCs&t
TokenEatercBshtZdZdZdZdZdZdZdZddd	Z
d
ZdZRS(NcCsF||_h|_|i|_g|_d|_d|_d|_
dS(Nii(toptionstselft_TokenEater__optionst_TokenEater__messagest_TokenEater__waitingt_TokenEater__statet_TokenEater__datat_TokenEater__linenot_TokenEater__freshmoduleRAt_TokenEater__curfile(RMRL((Rt__init__bs					cCs|i|||ddS(Ni(RMRQtttypettstringtstup(RMRWRXRYtetuptline((Rt__call__kscCs|i}|io|ii|io|iog|t	i
jo)|it||ddd|_n'|t	it	ifjo
d|_ndSn|t	ijo!|djo|i|_dSqn|t	ijo ||ijo|i|_ndS(Ntisdocstringiitclasstdef(R^R_(RMRNtoptst
docstringstnodocstringstgetRURTRWttokenizetSTRINGt_TokenEater__addentryRRXtlinenotCOMMENTtNLtNAMEt_TokenEater__suiteseenRQtkeywordst_TokenEater__keywordseen(RMRWRXRgR`((Rt	__waitingrs	!


 cCs1|tijo|djo|i|_ndS(Nt:(RWRdtOPRXRMt_TokenEater__suitedocstringRQ(RMRWRXRg((Rt__suiteseenscCso|tijo,|it||dd|i|_	n0|ti
titifjo|i|_	ndS(NR]i(
RWRdReRMRfRRXRgRPRQtNEWLINEtINDENTRh(RMRWRXRg((Rt__suitedocstrings
cCsO|tijo/|djo"g|_||_|i|_	n
|i
|_	dS(Nt((RWRdRpRXRMRRRgRSt_TokenEater__openseenRQRP(RMRWRXRg((Rt
__keywordseens
		cCs|tijoD|djo7|io|iti|in|i	|_
n|tijo|iit
|nt|tititititigjoHtitdhd|<d|i<d|i<IJ|i	|_
ndS(Nt)s:*** %(file)s:%(lineno)s: Seen unexpected token "%(token)s"ttokenR2Rg(RWRdRpRXRMRRRfRRRPRQReRRRhRzRttDEDENTRsRiRRRRURS(RMRWRXRg((Rt
__openseens
+8icCs]|djo
|i}n||iijo,|i|f}||i
i|h|<ndS(N(RgRARMRSR	RNt	toexcludeRUtentryR]ROt
setdefault(RMR	RgR]R~((Rt
__addentrys


cCs||_d|_dS(Ni(tfilenameRMRURT(RMR((Rtset_filenames	cCs|i}
tid}|thd|<dt<IJh}
xX|i
iD]G\}}|i}|i|
it|gi||fqNW|
i}|ix|D]}|
|}|ix|D]\}}d}tti|io
d}n|i}|i|
ipn|
i|
ijoGx|D]8\}}hd|<d|<}	|t!d|	IJqJWn|
i|
i"jod	}x~|D]v\}}hd|<d|<}	t!d
|	}t%|t%||
i&jo||}q||IJd	|}qWt%|djo||IJqIn|o|dIJn|d
It'|IJ|dIJqWqWdS(Ns%Y-%m-%d %H:%M+%ZttimetversioniiRRgs&# File: %(filename)s, line: %(lineno)ds#:s %(filename)s:%(lineno)dis#, docstringtmsgids
msgstr ""
((RMRNRLRtstrftimet	timestamptfpt
pot_headert__version__treverseROtitemstktvtkeystsortRttupleRtrkeystrkeytrentriesR]treducetoperatort__add__tvaluestwritelocationst
locationstyletSOLARISRRgtdRtGNUtloclineRRtwidthR"(RMRRRRgRRRRRRR]RRLRRR((RtwritesZ	 
)





 
(
t__name__t
__module__RVR\RPRkRqRmRwRARfRR(((RRKas						
			cCsyYtitiddddddddd	d
ddd
ddddddg\}}Wn%tij
o}td|nXdfdY}
|
}
hd|
i
<d|
i<}x|D]\}}|dEjotdq|dFjo
d|
_q|dGjo|d|
_q|dHjo
d|
_q|dIjo
d|
_q|dJjo|
ii|q|dKjo
gaq|dLjo
d|
_q|dMjo
d|
_q|dNjoG|i|i|
_|
idjotdtd-|q[q|dOjo
||
_q|dPjo
||
_q|dQjo
d|
_q|dRjo td6tGHtidq|dSjoDyt ||
_!Wq[t"j
otdtd9|q[Xq|dTjo
||
_#q|dUjoSt$|}z5x.|i&}	|	pPnd|
i(|	d> <qWWd|i)XqqWt*|
i|
ii+t|
i#omy,t$|
i#}|i,|
_-|i)Wqt.j
o.ti/td?|
i#IJtidqXn
g|
_-g}x?|D]7}|d@jo|i|q	|i+t1|q	W|}t2|
}x|D]}|d@jo,|
iotdAGHnti5}d}n0|
iotdB|GHnt$|}d}zt|i7|yt8i8|i&|WnIt8i9j
o:}ti/dC|d||dd|ddfIJnXWd|o|i)nXq]W|
id@joti;}d}nE|
io"t<i=i>|
i|
i|
_nt$|
idD}d}z|i?|Wd|o|i)nXdS(VNisad:DEhk:Kno:p:S:Vvw:x:X:sextract-allsdefault-domain=Rthelpskeyword=sno-default-keywordssadd-locationsno-locationsoutput=soutput-dir=sstyle=tverboseRswidth=s
exclude-file=Ras
no-docstringstOptionscBs\tZdZdZdZdZgZdZdZdZ	eZ
dZdZdZ
dZhZRS(NiiiRsmessages.potiN(RRRRt
extractallRRltoutpathtoutfileRRRRtexcludefilenameRaRb(((RR	stgnutsolariss-hs--helpis-as
--extract-alls-ds--default-domains.pots-Es--escapes-Ds--docstringss-ks	--keywords-Ks--no-default-keywordss-ns--add-locations
--no-locations-Ss--stylesInvalid value for --style: %ss-os--outputs-ps--output-dirs-vs	--verboses-Vs	--versions%pygettext.py (xgettext for Python) %ss-ws--widths'--width argument must be an integer: %ss-xs--exclude-files-Xs--no-docstringsisCan't read --exclude-file: %st-sReading standard inputs
Working on %ss%s: %s, line %d, column %dtw(s-hs--help(s-as
--extract-all(s-ds--default-domain(s-Es--escape(s-Ds--docstrings(s-ks	--keyword(s-Ks--no-default-keywords(s-ns--add-location(s
--no-location(s-Ss--style(s-os--output(s-ps--output-dir(s-vs	--verbose(s-Vs	--version(s-ws--width(s-xs--exclude-file(s-Xs--no-docstrings(@tgetoptRtargvR`targsterrorR	RRRLRRt	locationstopttargRRRRaRlRtdefault_keywordsRRctlowerRRARRRRR
tintRt
ValueErrorRtopenRtreadlineR[RbR?RR1t	readlinesR}tIOErrorRtexpandedRHRKteaterRtstdintclosepRRdt
TokenErrortetstdoutR3R4RR(RRRRRRRRR	R[RRRRLR`((RtmainsF	























 




	


	


:	

"t__main__ua unicode strings%*** Seen unexpected token "%(token)s"Rzttesttmorethanonestring("tfintltgettextRR@RR3R+RRFRRRzRdRRRRtDEFAULTKEYWORDSRRRRRRRR"R'R7RARCRHRKRR(R7RRR"RR+RRdRRRRRHRRFRRRKRRRRCRR'RzRR3((Rt?sH	
																'