%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/xdg/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/xdg/__pycache__/Locale.cpython-312.pyc

�

�u�co��H�dZddlZddlmZdZd�Zdd�Zdd�Zgae�y)	z�
Helper Module for Locale settings

This module is based on a ROX module (LGPL):

http://cvs.sourceforge.net/viewcvs.py/rox/ROX-Lib2/python/rox/i18n.py?rev=1.3&view=log
�N)�	normalizez>(\[([a-zA-Z]+)(_[a-zA-Z]+)?(\.[a-zA-Z0-9-]+)?(@[a-zA-Z]+)?\])?c���t|�}d}d}d}d}|jd�}|dk\r||d}|d|}||z}nd}|jd�}d}|dk\r|d|}|jd�}|dk\r||d}|d|}||z}nd}|}	g}
t|dz�D]:}||zr�
|	}||zr||z
}||zr||z
}||zr||z
}|
j|��<|
j	�|
S)	N���r�@��.�_)r�find�range�append�reverse)
�locale�COMPONENT_CODESET�COMPONENT_MODIFIER�COMPONENT_TERRITORY�mask�pos�modifier�codeset�	territory�language�ret�i�vals
             �,/usr/lib/python3/dist-packages/xdg/Locale.py�_expand_langrs<��
�v�
�F� �� �� ���D�
�+�+�c�
�C�
�a�x��#�$�<��������"�"����
�+�+�c�
�C��G�
�a�x������
�+�+�c�
�C�
�a�x��3�4�L�	�������#�#���	��H�
�C�
�4��6�]����T�E�	��C��&�&��y�(8���$�$��w����%�%��x����J�J�s�O�
��K�K�M��J�c���|�=g}dD]6}tjj|�}|s�%|jd�}ng}|D](}t	|�D]}||vs�|j|���*|S)N)�LANGUAGE�LC_ALL�LC_MESSAGES�LANG�:)�os�environ�get�splitrr)�	languages�envarr�nelangs�lang�nelangs      r�expand_languagesr/3s������	�B�	�E��*�*�.�.��'�C���I�I�c�N�	��		��G��'��"�4�(�	'�F��W�$����v�&�	'�'��Nrc�6�|r
t|g�ayt�ay�N)r/�langs)rs r�updater3Gs��� �(��,�� �"�rr1)	�__doc__r&rr�regexrr/r3r2�rr�<module>r7s3���
��I��#�J�(#�	���r

Zerion Mini Shell 1.0