Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 18.221.175.48
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
python-babel-0.9.6 /
doc /
[ HOME SHELL ]
Name
Size
Permission
Action
api
[ DIR ]
drwxr-xr-x
common
[ DIR ]
drwxr-xr-x
cmdline.html
8.19
KB
-rw-r--r--
cmdline.txt
6.57
KB
-rw-r--r--
dates.html
16.4
KB
-rw-r--r--
dates.txt
13.66
KB
-rw-r--r--
display.html
4.33
KB
-rw-r--r--
display.txt
2.36
KB
-rw-r--r--
index.html
1.88
KB
-rw-r--r--
index.txt
882
B
-rw-r--r--
intro.html
3.81
KB
-rw-r--r--
intro.txt
2.44
KB
-rw-r--r--
logo.pdf
43.93
KB
-rw-r--r--
logo.png
15.12
KB
-rw-r--r--
logo_small.png
5.97
KB
-rw-r--r--
messages.html
17.44
KB
-rw-r--r--
messages.txt
11.7
KB
-rw-r--r--
numbers.html
6.05
KB
-rw-r--r--
numbers.txt
4.66
KB
-rw-r--r--
setup.html
18.86
KB
-rw-r--r--
setup.txt
14.84
KB
-rw-r--r--
support.html
3.17
KB
-rw-r--r--
support.txt
1.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : support.html
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/"> <title>Babel: Support Classes and Functions</title> <link rel="stylesheet" href="common/style/edgewall.css" type="text/css"> </head> <body> <div class="document" id="support-classes-and-functions"> <div id="navigation"> <span class="projinfo">Babel 0.9.6</span> <a href="index.html">Documentation Index</a> </div> <h1 class="title">Support Classes and Functions</h1> <div class="contents topic" id="contents"> <p class="topic-title first">Contents</p> <ul class="auto-toc simple"> <li><a class="reference internal" href="#lazy-evaluation" id="id1">1 Lazy Evaluation</a></li> <li><a class="reference internal" href="#extended-translations-class" id="id2">2 Extended Translations Class</a></li> </ul> </div> <p>The <tt class="docutils literal">babel.support</tt> modules contains a number of classes and functions that can help with integrating Babel, and internationalization in general, into your application or framework. The code in this module is not used by Babel itself, but instead is provided to address common requirements of applications that should handle internationalization.</p> <div class="section" id="lazy-evaluation"> <h1>1 Lazy Evaluation</h1> <p>One such requirement is lazy evaluation of translations. Many web-based applications define some localizable message at the module level, or in general at some level where the locale of the remote user is not yet known. For such cases, web frameworks generally provide a "lazy" variant of the <tt class="docutils literal">gettext</tt> functions, which basically translates the message not when the <tt class="docutils literal">gettext</tt> function is invoked, but when the string is accessed in some manner.</p> </div> <div class="section" id="extended-translations-class"> <h1>2 Extended Translations Class</h1> <p>Many web-based applications are composed of a variety of different components (possibly using some kind of plugin system), and some of those components may provide their own message catalogs that need to be integrated into the larger system.</p> <p>To support this usage pattern, Babel provides a <tt class="docutils literal">Translations</tt> class that is derived from the <tt class="docutils literal">GNUTranslations</tt> class in the <tt class="docutils literal">gettext</tt> module. This class adds a <tt class="docutils literal">merge()</tt> method that takes another <tt class="docutils literal">Translations</tt> instance, and merges the content of the latter into the main catalog:</p> <div class="system-message"> <p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">doc/support.txt</tt>, line 45)</p> <p>Unknown directive type "code-block".</p> <pre class="literal-block"> .. code-block:: python translations = Translations.load('main') translations.merge(Translations.load('plugin1')) </pre> </div> </div> <div id="footer"> Visit the Babel open source project at <a href="http://babel.edgewall.org/">http://babel.edgewall.org/</a> </div> </div> </body> </html>
Close