language list in user profile

21 views
Skip to first unread message

kornd...@gmail.com

unread,
Apr 23, 2014, 8:26:55 AM4/23/14
to erpnext-dev...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages