Server IP : 15.235.198.142 / Your IP : 216.73.216.35 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/babel/__pycache__/ |
Upload File : |
� ƪb� � � � d dl mZ dd�Zd� Zy)� )� get_globalc � � t | � j � } dh}|r|j d� |r|j d� t d� j | i � }|j � D ��cg c] \ }}|j d� |v r|d |f��! }}}|j d�� t d � |D � � S c c}}w ) a^ Get the official language(s) for the given territory. The language codes, if any are known, are returned in order of descending popularity. If the `regional` flag is set, then languages which are regionally official are also returned. If the `de_facto` flag is set, then languages which are "de facto" official are also returned. .. warning:: Note that the data is as up to date as the current version of the CLDR used by Babel. If you need scientifically accurate information, use another source! :param territory: Territory code :type territory: str :param regional: Whether to return regionally official languages too :type regional: bool :param de_facto: Whether to return de-facto official languages too :type de_facto: bool :return: Tuple of language codes :rtype: tuple[str] �official�official_regional�de_facto_official�territory_languages�official_status�population_percentT)�reversec 3 �&