Language list in user profile

Hello guys,

i have installed the frappe-bench and when i try to change the language, 'português brasileiro' is not listed, but is listed in languages.txt.
So i changed the code and for now this is solved for me. Here the modification, if this is usefull for you:

file: frappe-bench/apps/frappe/frappe/translate.py, line 81

Original:
def get_lang_dict():
    return dict([[a[1], a[0]] for a in [a.split() for a in get_lang_info()]])

Modified:
def get_lang_dict():
    return dict([[' '.join(a[1::]), a[0]] for a in [a.split() for a in get_lang_info()]])

Cheers,
Israel Cristiano Korndörfer



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/59e36da6-2bbb-4810-b6d3-79aa973043d7%40googlegroups.com.

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