any idea why __() translation doesn't work in template(.html)

19 views
Skip to first unread message

Y Y

unread,
Sep 3, 2014, 1:37:30 AM9/3/14
to erpnext-dev...@googlegroups.com
Dear Team,

<div class="col-xs-2">
{% var completed = doc.per_ordered, title = __("Ordered") %}
{% include "templates/form_grid/includes/progress.html" %}
</div>

the __() doesn't do translation.

Check local console, __("Ordered") doesn't has translation, i checked translated files(.csv). Both for frappe and erpnext has added translation.

Not sure why...

Thanks,
yang

Rushabh Mehta

unread,
Sep 3, 2014, 1:42:28 AM9/3/14
to erpnext-dev...@googlegroups.com
Translations are not pulled into print templates.

Seems like an Issue


--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/68cf2d05-fec3-4a19-a2e5-e2a73b07b1f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Y Y

unread,
Sep 3, 2014, 1:56:34 AM9/3/14
to erpnext-dev...@googlegroups.com
oh, seems i can send another pull request:)

在 2014年9月3日星期三UTC+8下午1时42分28秒,rushabh写道:
Translations are not pulled into print templates.

Seems like an Issue


On 03-Sep-2014, at 11:07 am, Y Y <yangy...@gmail.com> wrote:

Dear Team,

<div class="col-xs-2">
{% var completed = doc.per_ordered, title = __("Ordered") %}
{% include "templates/form_grid/includes/progress.html" %}
</div>

the __() doesn't do translation.

Check local console, __("Ordered") doesn't has translation, i checked translated files(.csv). Both for frappe and erpnext has added translation.

Not sure why...

Thanks,
yang

--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Anand Doshi

unread,
Sep 3, 2014, 8:06:20 AM9/3/14
to ERPNext Developer's Forum


To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/b66bebb6-e43b-4841-9e85-2f1bd21f85b4%40googlegroups.com.

Y Y

unread,
Sep 3, 2014, 9:49:08 PM9/3/14
to erpnext-dev...@googlegroups.com
You are so great!

在 2014年9月3日星期三UTC+8下午8时06分20秒,Anand Doshi写道:
Seems like an Issue



To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsubscr...@googlegroups.com.

--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages