is lib/wnf.py still exists? about translation issue

42 views
Skip to first unread message

Y Y

unread,
Aug 5, 2014, 6:20:55 AM8/5/14
to erpnext-dev...@googlegroups.com
Hello,

I'm from china mainland, were trying to update zh-cn.csv, however, when i finished translation and replaced the one in translation folder, error happens afterwards:
Valueerror: blabla,,, #843..., 

I was reading in forum, someone mentioned that it means column 843 has issue, however, i searched, there is no 843 column, then i tried row 843, no lucky...

Further, i think is that i need to use tool to import...? then i don't find /lib/wnf.py...

Anyone could help? thanks in advance. BTW, it is a good software in many ways. 

Good work.

Regards,
yang

Anand Doshi

unread,
Aug 6, 2014, 8:23:11 AM8/6/14
to ERPNext Developer's Forum
Hi Yang,

Assuming that you are on version 4, if you update and replace the CSV file, the system should take the translations from the csv file.

Can you paste the error from the javascript console? Most likely the csv file is not saved as UTF-8 encoded file.

Thanks,
Anand.


--
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/208ba0cd-bdba-4505-a795-4c809cc01224%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Y Y

unread,
Aug 6, 2014, 10:35:41 PM8/6/14
to erpnext-dev...@googlegroups.com
Hi Anand,

Thanks for your reply.

I've fixed the issue, post it here for sharing(not utf8 issue, we double checked that).
Finally, we found that it is due to ','  in some translations, we added ',', however if it is the case, it need to be included in " ".

Now the translations are shown, very good. A quick clarification for my way of import translation:
I just update the zh-cn.csv directly, then i "rm /var/lib/redis/dump.rdb", then "service nginx restart".

haha, i'm sure i did in a wrong way, it just works..., by the way, how to import, seems ./lib/wnf.pf is gone in v4?

Best Regards,
Yang


在 2014年8月6日星期三UTC+8下午8时23分11秒,Anand Doshi写道:
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Rushabh Mehta

unread,
Aug 6, 2014, 10:47:56 PM8/6/14
to erpnext-dev...@googlegroups.com
Yang, don't forget to send a pull request when you are done with translations!

@rushabh_mehta
via mobile
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/811a347b-ef92-403b-8068-e2b767f26c1f%40googlegroups.com.

Y Y

unread,
Aug 6, 2014, 11:07:21 PM8/6/14
to erpnext-dev...@googlegroups.com
Hi Rushabh,

Note. We will do that, considering your side have new translations added days ago, we will merge that and do a final version then commit.

By the way, "I just update the zh-cn.csv directly, then i "rm /var/lib/redis/dump.rdb", then "service nginx restart". is this way correct?

I've read lots of your blogs and our side are good at performance and architecture(which we are doing now is do that kind of work against global customer).

If anything need us to do contribution, let us know freely.

Thanks,
Yang

在 2014年8月7日星期四UTC+8上午10时47分56秒,rushabh写道:

Anand Doshi

unread,
Aug 7, 2014, 12:20:22 AM8/7/14
to ERPNext Developer's Forum
Yang,

You should use supervisorctl to restart nginx and redis.

Run: supervisorctl restart frappe:

You might need to use sudo.

-Anand.


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/8f476192-d9f8-4075-bfb7-84f6e39db695%40googlegroups.com.

Rushabh Mehta

unread,
Aug 7, 2014, 12:50:20 AM8/7/14
to erpnext-dev...@googlegroups.com

Hi Rushabh,

Note. We will do that, considering your side have new translations added days ago, we will merge that and do a final version then commit.

Thanks that would be awesome.


By the way, "I just update the zh-cn.csv directly, then i "rm /var/lib/redis/dump.rdb", then "service nginx restart". is this way correct?

I've read lots of your blogs and our side are good at performance and architecture(which we are doing now is do that kind of work against global customer).

If anything need us to do contribution, let us know freely.

Please feel free to send pull-requests. We are always looking for community contributions.

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/8f476192-d9f8-4075-bfb7-84f6e39db695%40googlegroups.com.

Y Y

unread,
Aug 7, 2014, 1:16:17 AM8/7/14
to erpnext-dev...@googlegroups.com
Got it. thank you both!

在 2014年8月5日星期二UTC+8下午6时20分55秒,Y Y写道:
Reply all
Reply to author
Forward
0 new messages