Arabic version of ERP Next

Hi
I downloaded the latest version of ERPNext and tried to change the ar.csv
file but this is not reflecting in changes…

please advice if we are missing something



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+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/GBoRM3c3U8wJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

1 Like
Mohamed,

Do 

lib/wnf.py --translate ar

and it should update the layouts.

- Rushabh


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

On 13-Feb-2013, at 1:12 PM, Mohamed El Ersh <mo...@tahrirtech.com> wrote:

Hi
I downloaded the latest version of ERPNext and tried to change the ar.csv
file but this is not reflecting in changes...

please advice if we are missing something



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+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/GBoRM3c3U8wJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




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+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Dear Rushabh,


I tried to run the mentioned command on the virtual image “erpnext-1302.ova”, and I get the below messages:

er…@erpnext-VirtualBox:/var/www/erpnext$ sudo lib/wnf.py --translate ar
[sudo] password for erpnext: 
Extracting messages…
For ar:
Compiling messages in one file…
Translating via Google Translate…
translating: #,###.###
Traceback (most recent call last):
  File “lib/wnf.py”, line 494, in <module>
    run()
  File “lib/wnf.py”, line 487, in run
    google_translate(lang, ‘_lang_tmp.csv’, filename)
  File “/var/www/erpnext/lib/webnotes/translate.py”, line 314, in google_translate
    “key”: conf.google_api_key,
AttributeError: ‘module’ object has no attribute ‘google_api_key’
er…@erpnext-VirtualBox:/var/www/erpnext$ 

Please advice

Regards,
Mohamed Abdellatif



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+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/lCW1pg8e7uIJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Hi you will need to register yourself and get a Google API

https://developers.google.com/translate/v2/getting_started

and set it in conf.py

or why don't you mail me the file and I can integrate it.

best,
Rushabh


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

On 22-Feb-2013, at 2:05 AM, Mohamed Abdellatif <m....@gmail.com> wrote:

Dear Rushabh,

I tried to run the mentioned command on the virtual image "erpnext-1302.ova", and I get the below messages:

er...@erpnext-VirtualBox:/var/www/erpnext$ sudo lib/wnf.py --translate ar
[sudo] password for erpnext: 
Extracting messages...
For ar:
Compiling messages in one file...
Translating via Google Translate...
translating: #,###.###
Traceback (most recent call last):
  File "lib/wnf.py", line 494, in <module>
    run()
  File "lib/wnf.py", line 487, in run
    google_translate(lang, '_lang_tmp.csv', filename)
  File "/var/www/erpnext/lib/webnotes/translate.py", line 314, in google_translate
    "key": conf.google_api_key,
AttributeError: 'module' object has no attribute 'google_api_key'
er...@erpnext-VirtualBox:/var/www/erpnext$ 

Please advice

Regards,
Mohamed Abdellatif



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+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/lCW1pg8e7uIJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




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+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Thanks a lot for your timely responses.


I’ve tried what you mentioned and added the google_api_key configuration to conf.py with generated API key.

However, I received another error:

er…@erpnext-VirtualBox:/var/www/erpnext$ sudo lib/wnf.py --translate ar
Extracting messages…
For ar:
Compiling messages in one file…
Translating via Google Translate…
translating: #,###.###
Traceback (most recent call last):
  File “lib/wnf.py”, line 494, in <module>
    run()
  File “lib/wnf.py”, line 487, in run
    google_translate(lang, ‘_lang_tmp.csv’, filename)
  File “/var/www/erpnext/lib/webnotes/translate.py”, line 320, in google_translate
    row[1] = response.json[“data”][“translations”][0][“translatedText”]
TypeError: ‘instancemethod’ object has no attribute ‘getitem

I had to comment the call to google_translate() from wnf.py then my ar.csv translations were compiled and updated successfully. I see that the problem because I’m not using billing for my Google Translate API account. Actually Google Translate API is no more free, and it’s not as useful to use for this very specific purpose.

For providing the current CSV file, I’m now trying a POC on providing improved Arabic translation using the csv file since this is as best as I can get from a professional translation service.

Regards,
Mohamed Abdellatif

On Friday, February 22, 2013 6:14:53 AM UTC+2, rushabh wrote:
Hi you will need to register yourself and get a Google API


and set it in conf.py

or why don’t you mail me the file and I can integrate it.

best,
Rushabh



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

On 22-Feb-2013, at 2:05 AM, Mohamed Abdellatif <m....@gmail.com> wrote:

Dear Rushabh,

I tried to run the mentioned command on the virtual image "erpnext-1302.ova", and I get the below messages:

er...@erpnext-VirtualBox:/var/www/erpnext$ sudo lib/wnf.py --translate ar
[sudo] password for erpnext: 
Extracting messages...
For ar:
Compiling messages in one file...
Translating via Google Translate...
translating: #,###.###
Traceback (most recent call last):
  File "lib/wnf.py", line 494, in <module>
    run()
  File "lib/wnf.py", line 487, in run
    google_translate(lang, '_lang_tmp.csv', filename)
  File "/var/www/erpnext/lib/webnotes/translate.py", line 314, in google_translate
    "key": conf.google_api_key,
AttributeError: 'module' object has no attribute 'google_api_key'
er...@erpnext-VirtualBox:/var/www/erpnext$ 

Please advice

Regards,
Mohamed Abdellatif
 



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+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/nGC6TluAkE8J.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Mohamed,

Happy to note that you were able to fix it ;)

Hope you contribute your updated translation back to the community.

best,
Rushabh


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

On 22-Feb-2013, at 11:54 AM, Mohamed Abdellatif <m....@gmail.com> wrote:

Thanks a lot for your timely responses.

I've tried what you mentioned and added the google_api_key configuration to conf.py with generated API key.

However, I received another error:

er...@erpnext-VirtualBox:/var/www/erpnext$ sudo lib/wnf.py --translate ar
Extracting messages...
For ar:
Compiling messages in one file...
Translating via Google Translate...
translating: #,###.###
Traceback (most recent call last):
  File "lib/wnf.py", line 494, in <module>
    run()
  File "lib/wnf.py", line 487, in run
    google_translate(lang, '_lang_tmp.csv', filename)
  File "/var/www/erpnext/lib/webnotes/translate.py", line 320, in google_translate
    row[1] = response.json["data"]["translations"][0]["translatedText"]
TypeError: 'instancemethod' object has no attribute '__getitem__'

I had to comment the call to google_translate() from wnf.py then my ar.csv translations were compiled and updated successfully. I see that the problem because I'm not using billing for my Google Translate API account. Actually Google Translate API is no more free, and it's not as useful to use for this very specific purpose.

For providing the current CSV file, I'm now trying a POC on providing improved Arabic translation using the csv file since this is as best as I can get from a professional translation service.

Regards,
Mohamed Abdellatif

On Friday, February 22, 2013 6:14:53 AM UTC+2, rushabh wrote:
Hi you will need to register yourself and get a Google API


and set it in conf.py

or why don't you mail me the file and I can integrate it.

best,
Rushabh


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

On 22-Feb-2013, at 2:05 AM, Mohamed Abdellatif <m....@gmail.com> wrote:

Dear Rushabh,

I tried to run the mentioned command on the virtual image "erpnext-1302.ova", and I get the below messages:

er...@erpnext-VirtualBox:/var/www/erpnext$ sudo lib/wnf.py --translate ar
[sudo] password for erpnext: 
Extracting messages...
For ar:
Compiling messages in one file...
Translating via Google Translate...
translating: #,###.###
Traceback (most recent call last):
  File "lib/wnf.py", line 494, in <module>
    run()
  File "lib/wnf.py", line 487, in run
    google_translate(lang, '_lang_tmp.csv', filename)
  File "/var/www/erpnext/lib/webnotes/translate.py", line 314, in google_translate
    "key": conf.google_api_key,
AttributeError: 'module' object has no attribute 'google_api_key'
er...@erpnext-VirtualBox:/var/www/erpnext$ 

Please advice

Regards,
Mohamed Abdellatif
 




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+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/nGC6TluAkE8J.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




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+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.