%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/DistUpgrade/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/DistUpgrade/__pycache__/DistUpgradeGettext.cpython-312.pyc

�

�f���D�ddlZddlZdZdZd�Zdad�Zd�Zd�Z	d�Zd	�Z
y)
�N�gettext�ngettextc��|jd�|jd�z
}|jd�|jd�z
}||k(S)zz 
    helper that verifies that the message and the translated 
    message have the same number (and type) of % args
    �%z\%)�count)�message�
translated�arguments_in_message�arguments_in_translations    �@/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeGettext.py�_verifyr
sN��
#�=�=��.����u�1E�E��)�/�/��5�
�8H�8H��8O�O���#;�;�;�c��t�?tj�}tj|tj|�d��atS)z1Return a suitable gettext.*Translations instance.T)�fallback)�_translation_singleton�	mygettext�
textdomain�translation�bindtextdomain)�domains r�_translationr)sB���%��%�%�'��!*�!6�!6��I�,�,�V�4�t�"E��!�!rc�.�t|t�|�S�N)�getattr�_gettext_method)rrs  r�unicode_gettextr3s��0�7�;��0��9�9rc�2�t|t�|||�Sr)r�_ngettext_method)r�singular�plural�ns    r�unicode_ngettextr"7s��1�7�;� 0�1�(�F�A�F�Frc��|dk(rytt�|�}t||�stjd|�d|�d��|S|S)ze
    version of gettext that logs errors but does not crash on incorrect
    number of arguments
    �z#incorrect translation for message '�' to '�' (wrong number of arguments))rrr
�logging�error)r�translated_msgs  rrr;sK��
�"�}��$�\�^�W�=�N��7�N�+��
�
�-4�n�
F�	G����rc	��tt�|||�}t||�s(tjd|�d|�d|�d��|dk(r|S|S|S)zf
    version of ngettext that logs errors but does not crash on incorrect
    number of arguments
    z,incorrect translation for ngettext message 'z' plural: 'r%r&�)r"rr
r'r()�msgid1�msgid2r!r)s    rrrKsS��
&�l�n�f�f�a�H�N��6�>�*��
�
����
0�	1�

��6��M��
��r)r'rrrrr
rrrr"r�rr�<module>r/s?��,������<���"�:�G�
� r

Zerion Mini Shell 1.0