After installing the module language-flags, I get an internal server error and my website does not display anymore.
Does anyone encountered this already an have a solution for this ?
In the mean time I have found a solution myself
add a file ir_http.py with the following content to the website_language_flags module in the models directory.
from openerp.osv import orm, osv, fields
from openerp.http import request
def get_nearest_lang(self, lang):
# Try to find a similar lang. Eg: fr_BE and fr_FR
if lang in request.website.get_languages():
short = lang.split('_')
for code, name, lang_obj in request.website.get_languages():
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/22/15, 3:28 PM|
|Seen: 828 times|
|Last updated: 9/27/15, 4:43 AM|