在HTML模板中查找未翻译的字符串 [英] Find untranslated strings in HTML templates

查看:130
本文介绍了在HTML模板中查找未翻译的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在我的Django应用程序的HTML模板中找到未翻译的字符串,即不包含在 trans blocktrans 标签。



由于我们有很多模板,手动执行这个过程非常耗时,而且如果没有一个选项,我想这是一个漫长而繁琐的方式。



谢谢

解决方案

最近发现,但还没有尝试过。



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



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



看起来它一年没有更新,但可能会提供一个很好的起点。


Is there way to find untranslated strings in the HTML templates of my Django application i.e. 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.

这篇关于在HTML模板中查找未翻译的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆