python - django i18n : gettext didn't translate one line -


update:

i solve use % replace %

<h3>{% trans "is 100&#37; free?" %}</h3>  

do have better solution ??

original question:

i use gettext translate chinese,but line didn't not translate .
still output is 100% free?
please guide me thank you.

template :

<h3>{% trans "is 100% free?" %}</h3>  

django.po

#: templates/help.html:5 #, python-format msgid "is 100%% free?" msgstr "完全免費嗎?" 

i think still open issue, can solve like

{% blocktrans percent_sign = u'%'  %}       100{{percent_sign}} free? {% endblocktrans %} 

or try way ( bug seems fixed)

msgstr "完全免%% 費嗎?" 

you place %% belongs, dont know chinese.

one of them (or both of them) should work


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -