javascript - Django JS Translation -


i've been trying solve 2 hours now, could't find anything.

js file:

 13     var element = document.createelement("input");  14     element.setattribute("type", "button");  15     var sh_ag = gettext("show agreement");  16     element.setattribute("value", sh_ag);  17     element.setattribute("name", "show_agreementtt");  18     element.setattribute("id", "id_show_agreement");  19     element.setattribute("class", "show_agreement"); 

localization command:

$ django-admin.py makemessages -l tr

$ django-admin.py compilemessages

.po file:

#: media/js/agreement_admin.js:18 media/js/agreement_admin_setproc.js:15  msgid "show agreement"  msgstr "sözleşmeyi göster" 

but doesn't show translated string "show agreement". every other thing in .po file, works well, except exact string (and there 2 more strings this). how can solve problem?


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -