Translation to Turkish

208 views
Skip to first unread message

aliosman20

unread,
Mar 19, 2013, 5:43:26 AM3/19/13
to erpnext-dev...@googlegroups.com
Hi,

I download one of csv file from translation area and tried to translate toTurkish in csv file. After that I uploaded this translated csv file to translation directory that has other translated csv file like tr.csv.

But I can not see Turkish language on Administrator language option. So I copied my translation into es.csv (espanol) and after I select Espanol on language option. And cleared the cashe but there in no change (I can not see my translation)

How can I solve this problem?

Thanks

Ali

Rushabh Mehta

unread,
Mar 19, 2013, 5:48:09 AM3/19/13
to erpnext-dev...@googlegroups.com
Run

lib/wnf.py --import_messages tr app/translations/tr.csv

You will also need to update startup.py and add Turkish as an option in Profile so that the user can select

btw, how are you translating? Are you using Google Translate API?

If you have the full translations file - do send it, I can upload it for you.

best,
- Rushabh




W: https://erpnext.com
T: @rushabh_mehta

--
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 post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/i46AZaYZLDwJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ali Osman TEKKANAT

unread,
Mar 19, 2013, 11:30:22 AM3/19/13
to erpnext-dev...@googlegroups.com
Hi Rushabh,

I run lib/wnf.py --import_messages tr app/translations/tr.csv but got
this error message.


root@erpnext-VirtualBox:/var/www/erpnext# lib/wnf.py --import_messages
tr app/translations/tr.csv
Traceback (most recent call last):
File "lib/wnf.py", line 494, in <module>
run()
File "lib/wnf.py", line 463, in run
webnotes.translate.import_messages(*options.import_messages)
File "/var/www/erpnext/lib/webnotes/translate.py", line 231, in
import_messages
data = dict(get_all_messages_from_file(infile))
File "/var/www/erpnext/lib/webnotes/translate.py", line 301, in
get_all_messages_from_file
data = msgfile.read()
File "/usr/lib/python2.7/codecs.py", line 671, in read
return self.reader.read(size)
File "/usr/lib/python2.7/codecs.py", line 477, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position
18: invalid start byte

How can solve this problem? And also I did not find any options on
startup.py (/var/www/erpnext/app/startup/startup.py) about language.

And I used Google translate firs but after I made lots of changes in
translation myself. Translation does not finished yet but I want to
see part of my tranlate on pages. After I finish translation Iwill
share with you.

Thanks,

Ali


2013/3/19 Rushabh Mehta <rme...@gmail.com>:

Rushabh Mehta

unread,
Mar 20, 2013, 1:21:49 AM3/20/13
to erpnext-dev...@googlegroups.com
Ali,

Please save your CSV file in UTF-8 format (you can google how to do this, based on your application and OS).

Will look forward to your contribution :)

best,
Rushabh


W: https://erpnext.com
T: @rushabh_mehta

Ali Osman TEKKANAT

unread,
Mar 20, 2013, 8:51:09 AM3/20/13
to erpnext-dev...@googlegroups.com
Hi Rushabh,

I saved my CSV file in UTF-8 format and uploaded translation
diirectory again. After run "sudo lib/wnf.py --import_messages tr
app/translations/tr.csv" and got this message.

root@erpnext-VirtualBox:/var/www/erpnext# sudo lib/wnf.py
--import_messages tr app/translations/tr.csv
Traceback (most recent call last):
File "lib/wnf.py", line 494, in <module>
run()
File "lib/wnf.py", line 463, in run
webnotes.translate.import_messages(*options.import_messages)
File "/var/www/erpnext/lib/webnotes/translate.py", line 231, in
import_messages
data = dict(get_all_messages_from_file(infile))
ValueError: dictionary update sequence element #7 has length 3; 2 is required

Thanks,

Ali


2013/3/20 Rushabh Mehta <rme...@gmail.com>:

Rushabh Mehta

unread,
Mar 20, 2013, 8:54:43 AM3/20/13
to erpnext-dev...@googlegroups.com
Ali,

There is an extra column added (check your CSV text) in column 7, remove that.

Since we directly use the dict() method in the code, it requires the CSV to be a 2 column file.

best,
Rushabh


W: https://erpnext.com
T: @rushabh_mehta

Reply all
Reply to author
Forward
0 new messages