%PDF- %PDF-
| Direktori : /proc/self/root/proc/self/root/lib/mailman/bin/ |
| Current File : //proc/self/root/proc/self/root/lib/mailman/bin/msgfmt.pyo |
�
��ac @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d Z i a d d � Z d � Z d � Z
d � Z d � Z e
d
k r� e � n d S( 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����Ns 1.1t c C s4 t j t IJ| r# t j | IJn t j | � d S( N( t syst stderrt __doc__t exit( t codet msg( ( sX /builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/msgfmt.pyt usage( s
c C s | r | r | t | <n d S( s. Add a non-fuzzy translation to the dictionary.N( t MESSAGES( t idt strt fuzzy( ( sX /builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/msgfmt.pyt add0 s
c C s} t j � } | j � g } d } } xc | D][ } | j t | � t | � t | � t t | � f � | | d 7} | t | d 7} q- Wd } d d t | � } | t | � } g } g } xB | D]: \ }
} } }
| | |
| g 7} | |
| | g 7} q� W| | } t j d d d t | � d d
t | � d d d � } | t j d
| � j � 7} | | 7} | | 7} | S( s Return the generated output.R t i i i t Iiiiiiil �* i i t ii i i ( R t keyst sortt appendt lent structt packt arrayt tostring( R t offsetst idst strsR t outputt keystartt
valuestartt koffsetst voffsetst o1t l1t o2t l2( ( sX /builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/msgfmt.pyt generate8 s8
5
c C s� d } d } | j d � r$ | } n
| d } | d k rW t j j | � d d } n y t | � j � } Wn- t k
r� } t j | IJt j
d � n Xd } d } d } x�| D]�}
| d 7} |
d d k r| | k rt | | | � d } d } n |
d d k r)|
j d � r)d } n |
d d k r?q� n |
j
d � r�| | k rmt | | | � n | } |
d
}
d } } n"