开发者

Tool for insertion of translation tags in Django template? [duplicate]

开发者 https://www.devze.com 2023-03-23 07:12 出处:网络
This question already has answers here: Find untranslated strings in HTML templates (2 answers) Clos开发者_StackOverflowed 8 years ago.
This question already has answers here: Find untranslated strings in HTML templates (2 answers) Clos开发者_StackOverflowed 8 years ago.

Like many Django devs, today I find myself scouring through templates putting in trans and blocktrans as I internationalise a site.

Is there a tool that will help me identify blocks of text that are candidates for translation tags and speed this process up?


I have tried using "Django Template i18n lint", which I found mentioned in this answer.

It does a pretty good job of finding strings which are not wrapped in {% trans %} or {% blocktrans %} tags.

Try it out. It should definitely speed up things for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消