Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) Safe-mode: OFF (not secure) /usr/share/doc/python-kitchen-1.1.1/html/_sources/ drwxr-xr-x |
Viewing file: Select action/file-type: =================== Kitchen.i18n Module =================== .. automodule:: kitchen.i18n Functions ========= :func:`easy_gettext_setup` should satisfy the needs of most users. :func:`get_translation_object` is designed to ease the way for anyone that needs more control. .. autofunction:: easy_gettext_setup .. autofunction:: get_translation_object Translation Objects =================== The standard translation objects from the :mod:`gettext` module suffer from several problems: * They can throw :exc:`UnicodeError` * They can't find translations for non-:term:`ASCII` byte :class:`str` messages * They may return either :class:`unicode` string or byte :class:`str` from the same function even though the functions say they will only return :class:`unicode` or only return byte :class:`str`. :class:`DummyTranslations` and :class:`NewGNUTranslations` were written to fix these issues. .. autoclass:: kitchen.i18n.DummyTranslations :members: .. autoclass:: kitchen.i18n.NewGNUTranslations :members: |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0042 ]-- |