HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/flask_wtf/__pycache__/i18n.cpython-310.pyc
o

+we��@s`ddlmZddlmZddlmZddlmZddlmZdZ	dd�Z
Gd	d
�d
�Ze�ZdS)�)�support)�current_app)�request)�
get_locale)�
messages_path)�Translations�translationscCsLtsdSdtjvrdSttdd�}|dur$tjjt�t�gdd�}|t_	|S)zaReturns the correct gettext translations.
    Copy from flask-babel with some modifications.
    N�babel�wtforms_translations�wtforms)�domain)
rr�
extensions�getattrrr�loadrrr
)r�r�G/home/arjun/projects/env/lib/python3.10/site-packages/flask_wtf/i18n.py�_get_translations
s
�rc@seZdZdd�Zdd�ZdS)rcCst�}|dur	|S|�|�S)N)r�ugettext)�self�string�trrr�gettext"szTranslations.gettextcCs,t�}|dur|dkr
|S|S|�|||�S)N�)r�	ungettext)r�singular�plural�nrrrr�ngettext&szTranslations.ngettextN)�__name__�
__module__�__qualname__rrrrrrr!srN)
r	r�flaskrr�flask_babelr�wtforms.i18nr�__all__rrrrrrr�<module>s