p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.216.202
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/doc/python-kitchen-1.1.1/html/_sources/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/share/doc/python-kitchen-1.1.1/html/_sources/api-i18n.txt
===================
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:
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
December 21 2023 09:18:24
0 / 0
0755
api-collections.txt
0.119 KB
February 14 2012 18:52:25
0 / 0
0644
api-exceptions.txt
0.244 KB
February 14 2012 18:52:25
0 / 0
0644
api-i18n.txt
1.003 KB
February 14 2012 18:52:25
0 / 0
0644
api-iterutils.txt
0.198 KB
February 14 2012 18:52:25
0 / 0
0644
api-overview.txt
0.508 KB
February 14 2012 18:52:25
0 / 0
0644
api-pycompat24.txt
1.023 KB
February 14 2012 18:52:25
0 / 0
0644
api-pycompat25.txt
0.169 KB
February 14 2012 18:52:25
0 / 0
0644
api-pycompat27.txt
1.123 KB
February 14 2012 18:52:25
0 / 0
0644
api-text-converters.txt
18.259 KB
February 14 2012 18:52:25
0 / 0
0644
api-text-display.txt
0.891 KB
February 14 2012 18:52:25
0 / 0
0644
api-text-misc.txt
0.047 KB
February 14 2012 18:52:25
0 / 0
0644
api-text-utf8.txt
0.063 KB
February 14 2012 18:52:25
0 / 0
0644
api-text.txt
0.69 KB
February 14 2012 18:52:25
0 / 0
0644
api-versioning.txt
0.143 KB
February 14 2012 18:52:25
0 / 0
0644
designing-unicode-apis.txt
30.601 KB
February 14 2012 18:52:25
0 / 0
0644
glossary.txt
4.214 KB
February 14 2012 18:52:25
0 / 0
0644
hacking.txt
13.221 KB
February 14 2012 18:52:25
0 / 0
0644
index.txt
5.771 KB
February 14 2012 18:52:25
0 / 0
0644
porting-guide-0.3.txt
9.26 KB
February 14 2012 18:52:25
0 / 0
0644
tutorial.txt
0.809 KB
February 14 2012 18:52:25
0 / 0
0644
unicode-frustrations.txt
26.333 KB
February 14 2012 18:52:25
0 / 0
0644