Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Anyone who knows how I can change the way the translation languages are displayed in the automatic footer?
I want to put a country flag for each language instead of the name of the language.
For example I want to display the Swedish flag for the Swedish language instead of the word "Swedish".
You have to replace the following code in automatic footer
<t t-set="url_return" t-value="url_for('', '[lang]') + '?' + keep_query()"/>
<i class="fa fa-plus-circle"/>
Add a language...
with this code:
<t t-if="lang_name == ' Deutsch'">
<img alt="german" src="/theme_teamdoc/static/src/img/kastrup_genberg/ger.png"/>
<t t-if="lang_name == 'English'">
<img alt="english" src="/theme_teamdoc/static/src/img/kastrup_genberg/uk.png"/>
As you see I wrote a t-if with the language name (lang_name="theLanguageIwant") and in this t-tag I inserted the image of the flag.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/22/15, 7:20 AM|
|Seen: 865 times|
|Last updated: 11/18/15, 4:52 AM|