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

北慕城南 提交于 2019-12-08 05:10:01

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/6857293/tool-for-insertion-of-translation-tags-in-django-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!