1
我試圖讓一個模板上有一個包含modulo的翻譯模板,就像這樣;Django:反轉和塊轉義不是模轉義(%)
{% trans "100% escaping problems sucks" %}
但我得到這個錯誤:
Error: errors happened while running xgettext on site.html
./templates/site.html.py:34: warning: 'msgid' format string with unnamed
arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments,
and a mapping instead of a tuple for the arguments.
如果我試圖逃離它像這樣;
{% trans "100%% escaping problems sucks" %}
我得到這個錯誤;
Error: errors happened while running xgettext on site.html.py
xgettext: error while opening "./templates/site.html.py" for
reading: No such file or directory
我不知道爲什麼它正在尋找./templates/site.html.py ..它應該是./templates/site.html
任何想法?
編輯:我忘了Django的版本,這是1.2.0β1的