开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜