Py学习  »  问与答

Django国际化<title></title>中的内容无法被翻译

viivSwan-weibo • 10 年前 • 2897 次点击  

在做Django国际化的时候,html模板中的title无法被翻译,请问各位大神有遇到过吗?其他部分都正常被国际化了。

{% load i18n %}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>{% block title %}{% trans 'the title' %}{% endblock %}</title>
</head>
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/749
 
2897 次点击  
文章 [ 1 ]  |  最新文章 10 年前