Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Query on bootstrap_translations

By
kazaf
on 7/3/13, 7:42 AM 567 views

Dear All,

In source code ~/addons/web/controllers/main.py, function 'bootstrap_translations(self, req, mods)', there exists a remark, saying,

# For performance reasons we only load a single translation, so for # sub-languages (that should only be partially translated) we load the # main language PO instead - that should be enough for the login screen.

Actually I don't understand why loading sub-languages will affect the performance. According to the codes, only 1 exact language will be loaded, say, zh_CN, so no matter what the browser language is, there will not be any loopings. So, I really don't understand why OpenERP need to exclude the sub-languages.

Can anybody kindly help to tell me why?

Thank you very much.

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 7/3/13, 7:42 AM
Seen: 567 times
Last updated: 3/16/15, 8:10 AM