[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.116.36.205: ~ $
U

su]a��@s�dZddlZddlZddlmZdddddgZde��iZ	e�Z
d	d
iZdd�Zd
d�Z
ddd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zed�dd�ZdS)z*Activate, get and deactivate translations.�N)�local�activate�
deactivate�gettext�ngettext�thousands_separatorZfr_FR� cCsBz&tdkrWdStj�tj�t�d�WStk
r<YdSXdS)N�locale)�__file__�os�path�join�dirname�	NameError�rr�>/opt/alt/python38/lib/python3.8/site-packages/humanize/i18n.py�_get_default_locale_pathsrc	Cs2zttjWSttfk
r,tdYSXdS)N)�
_TRANSLATIONS�_CURRENTr	�AttributeError�KeyErrorrrrr�get_translationsrcCsL|dkrt�}|dkrtd��|tkr>t�d||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.Zhumanize)r�	Exceptionr�gettext_module�translationrr	)r	rrrrrr"s�cCs
dt_dS)z Deactivate internationalisation.N)rr	rrrrr@scCst��|�S)zvGet translation.

    Args:
        message (str): Text to translate.

    Returns:
        str: Translated text.
    )rr��messagerrrrEs	cCsRzt��||�WStk
rL|d|}t��|�}||krD|n|YSXdS)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.
    �N)r�pgettextrr)Zmsgctxtr�keyrrrrrQsrcCst��|||�S)a5Plural version of gettext.

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

    Returns:
        str: Translated text.
    )rr)r�pluralZnumrrrrjscCs|S)a^Mark 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.
    rrrrr�gettext_noopysr!cCs||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)Zsingularr rrr�
ngettext_noop�sr")�returnc	Cs0zttj}Wnttfk
r*d}YnX|S)ztReturn the thousands separator for a locale, default to comma.

    Returns:
         str: Thousands separator.
    �,)�_THOUSANDS_SEPARATORrr	rr)�seprrrr�s

)N)�__doc__rrZos.pathrZ	threadingr�__all__ZNullTranslationsrrr%rrrrrrr!r"�strrrrrr�<module>s&�	


Filemanager

Name Type Size Permission Actions
__init__.cpython-38.opt-1.pyc File 991 B 0644
__init__.cpython-38.pyc File 991 B 0644
filesize.cpython-38.opt-1.pyc File 1.91 KB 0644
filesize.cpython-38.pyc File 1.91 KB 0644
i18n.cpython-38.opt-1.pyc File 4.25 KB 0644
i18n.cpython-38.pyc File 4.25 KB 0644
number.cpython-38.opt-1.pyc File 10.82 KB 0644
number.cpython-38.pyc File 10.82 KB 0644
time.cpython-38.opt-1.pyc File 13.29 KB 0644
time.cpython-38.pyc File 13.29 KB 0644