https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/utils/translation/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/utils/translation/__pycache__/reloader.cpython-310.pyc
o

�aY�@sDddlmZddlmZddlmZddlmZdd�Zdd�Z	d	S)
���Path)�Local)�apps)�is_django_modulecKshddlm}|jr0td�g}|�dd�t��D��|�dd�|jD��|D]
}|�|d�q'dSdS)	z?Register file watchers for .mo files in potential locale paths.r)�settings�localecss(�|]}t|j�st|j�dVqdS)rN)r�moduler�path)�.0�config�r
�C/usr/lib/python3/dist-packages/django/utils/translation/reloader.py�	<genexpr>s��
�z0watch_for_translation_changes.<locals>.<genexpr>css�|]}t|�VqdS)Nr)r�pr
r
rrs�z**/*.moN)	�django.confr�USE_I18Nr�extendr�get_app_configs�LOCALE_PATHS�	watch_dir)�sender�kwargsr�directoriesr
r
r
r�watch_for_translation_changes	s

��rcKs@|jdkrddl}ddlm}i|_i|_d|_t�|_dSdS)z@Clear the internal translations cache if a .mo file is modified.z.morN)�
trans_realT)�suffix�gettext�django.utils.translationr�
_translations�_defaultr�_active)r�	file_pathrrrr
r
r�translation_file_changeds
�r#N)
�pathlibr�
asgiref.localr�django.appsr�django.utils.autoreloadrrr#r
r
r
r�<module>s

https://t.me/RX1948 - 2025