HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/humanize/i18n.pyc
�
�dTc@s�ddlZddlmZddlZddddgZiej�d6Z	e�Z
ejjejj
e�d�Zd�Zdd	�Zd
�Zd�Zd�Zd
�Zd�ZdS(i����N(tlocaltactivatet
deactivatetgettexttngettexttlocalecCs2yttjSWnttfk
r-tdSXdS(N(t
_TRANSLATIONSt_CURRENTRtAttributeErrortKeyErrortNone(((s>/opt/alt/python27/lib/python2.7/site-packages/humanize/i18n.pytget_translationscCsW|dkrt}n|tkrFtjd||g�}|t|<n|t_t|S(srSet 'locale' as current locale. Search for locale in directory 'path'
    @param locale: language name, eg 'en_GB'thumanizeN(R
t_DEFAULT_LOCALE_PATHRtgettext_modulettranslationRR(RtpathR((s>/opt/alt/python27/lib/python2.7/site-packages/humanize/i18n.pyRs	
	cCs
dt_dS(N(R
RR(((s>/opt/alt/python27/lib/python2.7/site-packages/humanize/i18n.pyR!scCst�j|�S(N(RR(tmessage((s>/opt/alt/python27/lib/python2.7/site-packages/humanize/i18n.pyR%scCs4|d|}t�j|�}||kr0|S|S(s
'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.s(RR(tmsgctxtRtkeyR((s>/opt/alt/python27/lib/python2.7/site-packages/humanize/i18n.pytpgettext)scCst�j|||�S(N(RR(Rtpluraltnum((s>/opt/alt/python27/lib/python2.7/site-packages/humanize/i18n.pyR4scCs|S(s�Example usage:
    CONSTANTS = [gettext_noop('first'), gettext_noop('second')]
    def num_name(n):
        return gettext(CONSTANTS[n])((R((s>/opt/alt/python27/lib/python2.7/site-packages/humanize/i18n.pytgettext_noop8s(RRt	threadingRtos.pathtost__all__tNullTranslationsR
RRRtjointdirnamet__file__R
RRRRRR(((s>/opt/alt/python27/lib/python2.7/site-packages/humanize/i18n.pyt<module>s	!