MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python35/lib/python3.5/site-packages/humanize/__pycache__/i18n.cpython-35.opt-1.pyc


�dT��@s�ddlZddlmZddlZddddgZdej�iZe�Z	ej
jej
je
�d�Zdd	�Zdd
d�Zdd�Zdd�Zd
d�Zdd�Zdd�ZdS)�N)�local�activate�
deactivate�gettext�ngettext�localecCs6yttjSWn ttfk
r1tdSYnXdS)N)�
_TRANSLATIONS�_CURRENTr�AttributeError�KeyError�rr�/i18n.py�get_translationsrcCsQ|dkrt}|tkr@tjd||g�}|t|<|t_t|S)zrSet 'locale' as current locale. Search for locale in directory 'path'
    @param locale: language name, eg 'en_GB'NZhumanize)�_DEFAULT_LOCALE_PATHr�gettext_module�translationr	r)r�pathrrrr
rs
	cCs
dt_dS)N)r	rrrrr
r!scCst�j|�S)N)rr)�messagerrr
r%scCs4|d|}t�j|�}||kr0|S|S)a
'Particular gettext' function.
    It works with 'msgctxt' .po modifiers and allow duplicate keys with
    different translations.
    Python 2 don't have support for this GNU gettext function, so we
    reimplement it. It works by joining msgctx and msgid by '4' byte.�)rr)Zmsgctxtr�keyrrrr
�pgettext)srcCst�j|||�S)N)rr)rZplural�numrrr
r4scCs|S)z�Example usage:
    CONSTANTS = [gettext_noop('first'), gettext_noop('second')]
    def num_name(n):
        return gettext(CONSTANTS[n])r)rrrr
�gettext_noop8sr)rr�	threadingrZos.path�os�__all__ZNullTranslationsrr	r�join�dirname�__file__rrrrrrrrrrr
�<module>s	!