| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/utils/translation/__pycache__/ |
Upload File : |
�
�|�ez* � �� � d Z ddlZddlmZ ddlmZmZ ddlmZm Z ddl
mZ ddlm
Z
ddlmZ g d �Zd
Z G d� de� � Z G d
� d� � Z e� � Z[d� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z e
ee� � Z e
ee� � Z d� Z!d1d�Z"d� Z#d1d�Z$d1d�Z%d1d�Z&d� Z'd� Z( G d� d e� � Z)d!� Z*d"� Z+d#� Z,d$� Z-d%� Z.d2d'�Z/d(� Z0d&d)�d*�Z1d+� Z2d,� Z3d-� Z4 ed.� � Z5d/� Z6d0� Z7dS )3z
Internationalization support.
� N)�ContextDecorator)�ROUND_UP�Decimal)�autoreload_started�file_changed)�RemovedInDjango40Warning)�lazy)�_lazy_re_compile)�activate�
deactivate�override�deactivate_all�get_language�get_language_from_request�get_language_info�get_language_bidi�check_for_language�to_language� to_locale�
templatize�gettext�gettext_lazy�gettext_noop�ugettext�
ugettext_lazy�
ugettext_noop�ngettext�
ngettext_lazy� ungettext�ungettext_lazy�pgettext�
pgettext_lazy� npgettext�npgettext_lazy�LANGUAGE_SESSION_KEY� _languagec � � e Zd ZdS )�TranslatorCommentWarningN)�__name__�
__module__�__qualname__� � �C/usr/lib/python3/dist-packages/django/utils/translation/__init__.pyr( r( s � � � � � ��Dr- r( c � � e Zd ZdZd� ZdS )�Transa
The purpose of this class is to store the actual translation function upon
receiving the first call to that function. After this is done, changes to
USE_I18N will have no effect to which function is served upon request. If
your tests rely on changing USE_I18N, you can delete all the functions
from _trans.__dict__.
Note that storing the function with setattr will have a noticeable
performance effect, as access to the function goes the normal path,
instead of using __getattr__.
c � � ddl m} |j r;ddlm} ddlm}m} t j |d�� � t j |d�� � nddlm} t | |t ||� � � � t ||� � S )Nr )�settings)�
trans_real)�translation_file_changed�watch_for_translation_changesr4 )�dispatch_uid)�
trans_null)�django.confr2 �USE_I18N�django.utils.translationr3 �!django.utils.translation.reloaderr4 r5 r �connectr r7 �setattr�getattr)�self� real_namer2 �transr4 r5 s r. �__getattr__zTrans.__getattr__7 s� � �(�(�(�(�(�(��� E�D�D�D�D�D�D�
�
�
�
�
�
�
�
�
�&�'D�Sm�n�n�n�n�� �!9�Hb�c�c�c�c�c�D�D�D�D�D�D���i��� �!:�!:�;�;�;��u�i�(�(�(r- N)r) r* r+ �__doc__rB r, r- r. r0 r0 * s- � � � � � �
�
�)� )� )� )� )r- r0 c �6 � t � | � � S �N)�_transr ��messages r. r r L s � ����w�'�'�'r- c �X � t j dt d�� � t | � � S )zx
A legacy compatibility wrapper for Unicode handling on Python 2.
Alias of gettext_noop() since Django 2.0.
zkdjango.utils.translation.ugettext_noop() is deprecated in favor of django.utils.translation.gettext_noop().� ��
stacklevel)�warnings�warnr r rG s r. r r P �7 � �
�M� 3� �Q�� � � �
�� � � r- c �6 � t � | � � S rE )rF r rG s r. r r ] s � ��>�>�'�"�"�"r- c �X � t j dt d�� � t | � � S )zs
A legacy compatibility wrapper for Unicode handling on Python 2.
Alias of gettext() since Django 2.0.
zadjango.utils.translation.ugettext() is deprecated in favor of django.utils.translation.gettext().rJ rK )rM rN r r rG s r. r r a s7 � �
�M� .� �Q�� � � �
�7���r- c �: � t � | ||� � S rE )rF r ��singular�plural�numbers r. r r n s � ��?�?�8�V�V�4�4�4r- c �\ � t j dt d�� � t | ||� � S )zt
A legacy compatibility wrapper for Unicode handling on Python 2.
Alias of ngettext() since Django 2.0.
zcdjango.utils.translation.ungettext() is deprecated in favor of django.utils.translation.ngettext().rJ rK )rM rN r r rS s r. r r r s; � �
�M� /� �Q�� � � �
�H�f�f�-�-�-r- c �8 � t � | |� � S rE )rF r! )�contextrH s r. r! r! s � ��?�?�7�G�,�,�,r- c �<