简体   繁体   中英

Find untranslated strings in HTML templates

Is there way to find untranslated strings in the HTML templates of my Django application ie blocks of text that are not wrapped in trans and blocktrans tags.

Since we have many templates, it would be a very time-consuming process to go through them manually and check but if there isn't an option, I guess it has to be done the long and tedious way.

Thanks

Found this recently, but have not tried it yet.

Doc: http://www.technomancy.org/python/django-template-i18n-lint/

Code: https://github.com/rory/django-template-i18n-lint

Looks like it hasn't been updated in a year but it might provide a good starting spot.

您可以使用内置模板解析器来解析模板,并递归到不是BlockTransTag实例的所有标记

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM