Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
lib
/
python3
/
dist-packages
/
django
/
utils
/
translation
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: reloader.cpython-310.pyc
o �aY � @ sD d dl mZ d dlmZ d dlmZ d dlmZ dd� Zdd� Z d S ) � ��Path)�Local)�apps)�is_django_modulec K sh ddl m} |jr0td�g}|�dd� t�� D �� |�dd� |jD �� |D ] }| �|d� q'dS dS ) z?Register file watchers for .mo files in potential locale paths.r )�settings�localec s s( � | ]}t |j�st|j�d V qdS )r N)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>c s s � | ]}t |�V qd S )Nr )r �pr r r r s � 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 ��r c K s@ |j dkrddl}ddlm} i |_i |_d|_t� |_dS dS )z@Clear the internal translations cache if a .mo file is modified.z.mor N)� trans_realT)�suffix�gettext�django.utils.translationr � _translations�_defaultr �_active)r � file_pathr r r r r r �translation_file_changed s �r# N) �pathlibr � asgiref.localr �django.appsr �django.utils.autoreloadr r r# r r r r �<module> s
Save
Cancel