Quantcast
Channel: AlferSoft Blog » Software Development
Viewing all articles
Browse latest Browse all 13

Jinja2 + Eclipse: quickly replace trans / endtrans to gettext() new style

$
0
0

Open find/replace dialog and check ‘Regular expressions’

Find:

\{\% trans \%\}([^\{]*)\{\% endtrans \%\}

Replace with:

{{ gettext('$1') }}

Viewing all articles
Browse latest Browse all 13

Trending Articles