| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/xdg/__pycache__/ |
Upload File : |
�
�u�co � �P � d Z ddlZddlmZ dZd� Zdd�Zdd�Zg a e� � dS ) 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}| � d� � }|dk r| |d � }| d |� } ||z }nd}| � d� � }d}|dk r
| d |� } | � d� � }|dk r| |d � }| d |� } ||z }nd}| } g }
t |dz � � D ]=}|| z s5| }||z r||z
}||z r||z
}||z r||z
}|
� |� � �>|
� � � |
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_langr ss � �
�v�
�
�F� �� �� ���D�
�+�+�c�
�
�C�
�a�x�x��#�$�$�<���������"�"�����
�+�+�c�
�
�C��G�
�a�x�x�������
�+�+�c�
�
�C�
�a�x�x��3�4�4�L� ��������#�#���� ��H�
�C�
�4��6�]�]� � ���T�E� � ��C��&�&�8��y�(8���$�$�6��w����%�%�7��x����J�J�s�O�O�O���K�K�M�M�M��J� c �� � | �?g } dD ]:}t j � |� � }|r|� d� � } n�;g }| D ]-}t |� � D ]}||vr|� |� � ��.|S )N)�LANGUAGE�LC_ALL�LC_MESSAGES�LANG�:)�os�environ�get�splitr r )� languages�envarr �nelangs�lang�nelangs r �expand_languagesr/ 3 s� � ���� �B� � �E��*�.�.��'�'�C��
��I�I�c�N�N� ���
� �G�� '� '��"�4�(�(� '� '�F��W�$�$����v�&�&�&�� '� �Nr c �J � | rt | g� � ad S t � � ad S �N)r/ �langs)r s r �updater3 G s, � �� #� �(��,�,���� �"�"���r r1 ) �__doc__r&