File: //lib64/python3.6/__pycache__/gettext.cpython-36.pyc
3
\T @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z dddddd d
ddd
dddddddgZ
ejjej
ddZejdejejB Zdd Zdd ZdPZd)d* eed+D Zd,d-d.d/ZdRd0d1Zd2d3 Zd4d5 Zd6d7 ZG d8d dZG d9d deZdSd;dZi ZdTd<dZ dUd=d Z!i a"i a#d>a$dVd?d
Z%dWd@dZ&dXdAdZ'dBd
Z(dCd Z)dDd Z*dEd Z+dFd Z,dGd Z-dHd Z.dId Z/e Z0dS )Ya 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)ENOENTNullTranslationsGNUTranslationsCatalogfindtranslationinstall
textdomainbindtextdomainbind_textdomain_codesetdgettext dngettextgettextlgettext ldgettext
ldngettext lngettextngettextZsharelocalea
(?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 sT xHt jt| D ]8}|j}|dkr"q|j|}|dkr@td| |V qW dV d S )NZWHITESPACESZINVALIDz invalid token in plural form: %s )refinditer_token_pattern lastgroupgroup
ValueError)pluralmoZkindvalue r /usr/lib64/python3.6/gettext.py _tokenizeT s
r! c C s | rt d| S t dS d S )Nz#unexpected token in plural form: %szunexpected end of plural form)r )r r r r _error_ s r"