Hacked By AnonymousFox
3
\T � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z dddddd d
ddd
dddddddgZ
ejjej
dd�ZejdejejB �Zdd� Zdd� ZdPZd)d*� eed+�D �Zd,d-d.d/�ZdRd0d1�Zd2d3� Zd4d5� Zd6d7� ZG d8d� d�ZG d9d� de�ZdSd;d�Zi ZdTd<d�Z dUd=d �Z!i a"i a#d>a$dVd?d
�Z%dWd@d�Z&dXdAd�Z'dBd
� Z(dCd� Z)dDd� Z*dEd� Z+dFd� Z,dGd� Z-dHd� Z.dId� Z/e Z0dS )Ya� Internationalization 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.
� N)�ENOENT�NullTranslations�GNUTranslations�Catalog�find�translation�install�
textdomain�bindtextdomain�bind_textdomain_codeset�dgettext� dngettext�gettext�lgettext� ldgettext�
ldngettext� lngettext�ngettextZshare�localea�
(?P<WHITESPACES>[ \t]+) | # spaces and horizontal tabs
(?P<NUMBER>[0-9]+\b) | # decimal integer
(?P<NAME>n\b) | # only n is allowed
(?P<PARENTHESIS>[()]) |
(?P<OPERATOR>[-*/%+?:]|[><!]=?|==|&&|\|\|) | # !, *, /, %, +, -, <, >,
# <=, >=, ==, !=, &&, ||,
# ? :
# unary and bitwise ops
# not allowed
(?P<INVALID>\w+|.) # invalid token
c c sT xHt jt| �D ]8}|j}|dkr"q|j|�}|dkr@td| ��|V qW dV d S )NZWHITESPACESZINVALIDz invalid token in plural form: %s� )�re�finditer�_token_pattern� lastgroup�group�
ValueError)�pluralZmoZkind�value� r �/usr/lib64/python3.6/gettext.py� _tokenizeT s
r c C s | rt d| �S t d�S d S )Nz#unexpected token in plural form: %szunexpected end of plural form)r )r r r r �_error_ s r! �||�&&�==�!=�<�>�<=�>=�+�-�*�/�%c C s i | ]\}}|D ]
}||�qqS r r )�.0�iZops�opr r r �
<dictcomp>m s r2 � �or�andz//)z||z&&r- c C s� d}t | �}x|dkr(|d7 }t | �}qW |dkr\t| �\}}d||f }|dkr�td��nP|dkrrd ||f }n:yt|d
�}W n tk
r� t|�d �Y nX d||f }t | �}d}xh|tk�r t| }||k r�P |dkr�|dkr�d| }tj||�}t| |d �\} }d||| f }|}q�W || k�o6dkn �rFd| }|dk�r�|dk�r�t| d�\}
}|dk�rzt|��t| �\}}d|
||f }|dk�r�d| }||fS )Nr �!znot �(z%s(%s)�)z%unbalanced parenthesis in plural form�nz%s%s�
z%s%d�d � � z(%s)r3 z%s %s %s�?r �:z%s if %s else %s)r<