✏️ 编辑:gettext.cpython-39.pyc
路径:
/usr/lib64/python3.9/__pycache__/gettext.cpython-39.pyc
大小:17.6 KB · 修改:2026-08-12 15:51:23 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �i�j � @ s� d Z ddlZddlZddlZg d�Zej�ejdd�Ze� dej ejB �Zdd� Z d d � ZdZdd � eed�D �Zdddd�ZdGdd�Zdd� Zdd� Zdd� ZG dd� d�ZG dd� de�ZdHd!d"�Zi Zd#gZdddd efd$d%�Zdedfd&d'�Zi ai ad(adId)d*�Z dJd+d,�Z!dKd-d.�Z"d/d0� Z#d1d2� Z$d3d4� Z%d5d6� Z&d7d8� Z'd9d:� Z(d;d<� Z)d=d>� Z*d?d@� Z+dAdB� Z,dCdD� Z-dEdF� Z.eZ/dS )La� Internationalization and localization support. This module provides internationalization (I18N) and localization (L10N) support for your Python programs by providing an interface to the GNU gettext message catalog library. I18N refers to the operation by which a program is made aware of multiple languages. L10N refers to the adaptation of your program, once internationalized, to the local language and cultural habits. � N)�NullTranslations�GNUTranslations�Catalog�find�translation�install� textdomain�bindtextdomain�bind_textdomain_codeset�dgettext� dngettext�gettext�lgettext� ldgettext� ldngettext� lngettext�ngettext�pgettext� dpgettext� npgettext� dnpgettext�share�localea� (?P<WHITESPACES>[ \t]+) | # spaces and horizontal tabs (?P<NUMBER>[0-9]+\b) | # decimal integer (?P<NAME>n\b) | # only n is allowed (?P<PARENTHESIS>[()]) | (?P<OPERATOR>[-*/%+?:]|[><!]=?|==|&&|\|\|) | # !, *, /, %, +, -, <, >, # <=, >=, ==, !=, &&, ||, # ? : # unary and bitwise ops # not allowed (?P<INVALID>\w+|.) # invalid token c c sP t �t| �D ]8}|j}|dkr q|�|�}|dkr>td| ��|V qdV d S )N�WHITESPACES�INVALIDz invalid token in plural form: %s� )�re�finditer�_token_pattern� lastgroup�group� ValueError)�plural�mo�kind�value� r&