You will have to understand a bit more how the translation works. Like I said earlier, all translations are in the app/translations folder. You can update the csv file and run (for Arabic)
lib/wnf.py --import_messages ar app/translations/ar.csv
but i. found the locale folder in the app/accounts/somepage/locale and it contains ar.json file
so please tell me , how should i translate , should i just go to the ar.csv or those json as well
On Tuesday, 28 May 2013 09:45:11 UTC+3, rushabh wrote:
Syed,
You will have to understand a bit more how the translation works. Like I said earlier, all translations are in the app/translations folder. You can update the csv file and run (for Arabic)
lib/wnf.py --import_messages ar app/translations/ar.csv
On 28-May-2013, at 12:21 PM, Syed Qadeer <sd...@gmail.com> wrote:
thanks for the response, rusabh.
but i. found the locale folder in the app/accounts/somepage/locale and it contains ar.json file
so please tell me , how should i translate , should i just go to the ar.csv or those json as well
On Tuesday, 28 May 2013 09:45:11 UTC+3, rushabh wrote:
Syed,
You will have to understand a bit more how the translation works. Like I said earlier, all translations are in the app/translations folder. You can update the csv file and run (for Arabic)
lib/wnf.py --import_messages ar app/translations/ar.csv
i have tried what u have told me, but there’s no luck as it keeps on giving me UTF-8 issue all the time, i am sure that the csv file is utf-8 as i set the encoding to utf-8,
i have even opened the file in notepad and set the encoding as utf-8 and uploaded back , and i have downloaded your file from the github , uploaded it and yet it doesnt work in ar.csv but i tried to import messages from fr.csv , yet it works perfectly, i dont know what is the problem it keeps on throwing the following error:
ro…@system:/var/www/erpnext# python lib/wnf.py --import_messages ar app/translations/ar.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/dafater/lib/webnotes/translate.py”, line 245, in import_messages _update_lang_file(‘doc’) File “/var/www/dafater/lib/webnotes/translate.py”, line 228, in _update_lang_file langdata = get_lang_data(basepath, lang, mtype) File “/var/www/dafater/lib/webnotes/translate.py”, line 267, in get_lang_data langdata = json.loads(langfile.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 0xff in position 0: invalid start byte
On Tuesday, 28 May 2013 09:04:06 UTC+3, Syed Qadeer wrote:
hello friends,
i need to .do the translation for the desktop page and i need to know where is the translation file. for the desktop.
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.