JFIF$        dd7 

Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/humanize/__pycache__/i18n.cpython-311.pyc

�

�I��=�������UdZddlmZddlZddlZddlmZgd�Z	dej
��iZded<e��Z
dd	ddd	d
�Zddddd�Zd&d�Zd'd�Zd(d)d�Zd*d�Zd+d�Zd,d�Zd-d�Zd+d �Zd.d#�Zd/d$�Zd/d%�ZdS)0z*Activate, get and deactivate translations.�)�annotationsN)�local)�activate�
deactivate�decimal_separator�thousands_separatorz1dict[str | None, gettext_module.NullTranslations]�
_TRANSLATIONS�.� )�de_DE�fr_FR�it_IT�pt_BR�hu_HU�,)rrrr�return�
str | Nonec��	t�dStj�tj�t��d��S#t
$rYdSwxYw)N�locale)�__file__�os�path�join�dirname�	NameError���m/builddir/build/BUILD/imunify360-venv-2.6.0/opt/imunify360/venv/lib/python3.11/site-packages/humanize/i18n.py�_get_default_locale_pathr"sX������4��w�|�|�B�G�O�O�H�5�5�x�@�@�@�������t�t����s�A
�AA
�
A�A�gettext_module.NullTranslationsc�z�	ttjS#ttf$rtdcYSwxYw�N)r	�_CURRENTr�AttributeError�KeyErrorrrr�get_translationr&+sE��#��X�_�-�-���H�%�#�#�#��T�"�"�"�"�#���s��:�:r�strrc���|�t��}|�d}t|���|tvr!tjd||g��}|t|<|t
_t|S)aRActivate internationalisation.

    Set `locale` as current locale. Search for locale in directory `path`.

    Args:
        locale (str): Language name, e.g. `en_GB`.
        path (str): Path to search for locales.

    Returns:
        dict: Translations.

    Raises:
        Exception: If humanize cannot find the locale folder.
    NznHumanize cannot determinate the default location of the 'locale' folder. You need to pass the path explicitly.�humanize)r�	Exceptionr	�gettext_module�translationr#r)rr�msgr,s    rrr2sn���|�'�)�)���|�
4�	���n�n��
�]�"�"�$�0��T�F�8�L�L�� +�
�f���H�O��� � r�Nonec��dt_dS)z Deactivate internationalisation.N)r#rrrrrrQs
���H�O�O�Or�messagec�D�t���|��S)zvGet translation.

    Args:
        message (str): Text to translate.

    Returns:
        str: Translated text.
    )r&�gettext�r0s r�_gettextr4Vs�����$�$�W�-�-�-r�msgctxtc�F�t���||��S)a Fetches a particular translation.

    It works with `msgctxt` .po modifiers and allows duplicate keys with different
    translations.

    Args:
        msgctxt (str): Context of the translation.
        message (str): Text to translate.

    Returns:
        str: Translated text.
    )r&�pgettext)r5r0s  r�	_pgettextr8bs �����%�%�g�w�7�7�7r�plural�num�intc�H�t���|||��S)a6Plural version of _gettext.

    Args:
        message (str): Singular text to translate.
        plural (str): Plural text to translate.
        num (int): The number (e.g. item count) to determine translation for the
            respective grammatical number.

    Returns:
        str: Translated text.
    )r&�ngettext)r0r9r:s   r�	_ngettextr>rs"�����%�%�g�v�s�;�;�;rc��|S)aaMark a string as a translation string without translating it.

    Example usage:
    ```python
    CONSTANTS = [_gettext_noop('first'), _gettext_noop('second')]
    def num_name(n):
        return _gettext(CONSTANTS[n])
    ```

    Args:
        message (str): Text to translate in the future.

    Returns:
        str: Original text, unchanged.
    rr3s r�
_gettext_noopr@�s	�� �Nr�singular�tuple[str, str]c�
�||fS)a�Mark two strings as pluralized translations without translating them.

    Example usage:
    ```python
    CONSTANTS = [ngettext_noop('first', 'firsts'), ngettext_noop('second', 'seconds')]
    def num_name(n):
        return _ngettext(*CONSTANTS[n])
    ```

    Args:
        singular (str): Singular text to translate in the future.
        plural (str): Plural text to translate in the future.

    Returns:
        tuple: Original text, unchanged.
    r)rAr9s  r�_ngettext_nooprD�s��"�V��rc�j�	ttj}n#ttf$rd}YnwxYw|S)ztReturn the thousands separator for a locale, default to comma.

    Returns:
         str: Thousands separator.
    r)�_THOUSANDS_SEPARATORr#rr$r%��seps rrr�sC���"�8�?�3�����H�%�������������J���0�0c�j�	ttj}n#ttf$rd}YnwxYw|S)znReturn the decimal separator for a locale, default to dot.

    Returns:
         str: Decimal separator.
    r
)�_DECIMAL_SEPARATORr#rr$r%rGs rrr�sC��� ���1�����H�%�������������JrI)rr)rr r")rr'rrrr )rr.)r0r'rr')r5r'r0r'rr')r0r'r9r'r:r;rr')rAr'r9r'rrB)rr')�__doc__�
__future__rr2r+�os.pathr�	threadingr�__all__�NullTranslationsr	�__annotations__r#rFrKrr&rrr4r8r>r@rDrrrrr�<module>rSs���0�0�0�"�"�"�"�"�"� � � � �����������
P�
P�
P��	�
)�.�
)�
+�
+�D�
������5�7�7��
�
�
�
�
�����
�
�
�	�������#�#�#�#�!�!�!�!�!�>����
	.�	.�	.�	.�
8�
8�
8�
8� <�<�<�<�����&����(
�
�
�
�
�
�
�
�
�
r
Back to Directory  nL+D550H?Mx ,D"v]qv;6*Zqn)ZP0!1 A "#a$2Qr D8 a Ri[f\mIykIw0cuFcRı?lO7к_f˓[C$殷WF<_W ԣsKcëIzyQy/_LKℂ;C",pFA:/]=H  ~,ls/9ć:[=/#f;)x{ٛEQ )~ =𘙲r*2~ a _V=' kumFD}KYYC)({ *g&f`툪ry`=^cJ.I](*`wq1dđ#̩͑0;H]u搂@:~וKL Nsh}OIR*8:2 !lDJVo(3=M(zȰ+i*NAr6KnSl)!JJӁ* %݉?|D}d5:eP0R;{$X'xF@.ÊB {,WJuQɲRI;9QE琯62fT.DUJ;*cP A\ILNj!J۱+O\͔]ޒS߼Jȧc%ANolՎprULZԛerE2=XDXgVQeӓk yP7U*omQIs,K`)6\G3t?pgjrmۛجwluGtfh9uyP0D;Uڽ"OXlif$)&|ML0Zrm1[HXPlPR0'G=i2N+0e2]]9VTPO׮7h(F*癈'=QVZDF,d߬~TX G[`le69CR(!S2!P <0x<!1AQ "Raq02Br#SCTb ?Ζ"]mH5WR7k.ۛ!}Q~+yԏz|@T20S~Kek *zFf^2X*(@8r?CIuI|֓>^ExLgNUY+{.RѪ τV׸YTD I62'8Y27'\TP.6d&˦@Vqi|8-OΕ]ʔ U=TL8=;6c| !qfF3aů&~$l}'NWUs$Uk^SV:U# 6w++s&r+nڐ{@29 gL u"TÙM=6(^"7r}=6YݾlCuhquympǦ GjhsǜNlɻ}o7#S6aw4!OSrD57%|?x>L |/nD6?/8w#[)L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