Chapter 6 - Going live¶
Translations¶
Congratulations! Your client has a beautifully designed homepage and contact page, and the eCommerce is fully adapted to the Airproof design. Amazing!
Now, the client wants the website translated into French. To do so:
Add French to the website in the settings and enable the language switcher in the header via presets.
Then for the translation itself, you have two options. We shall therefore test both:
Translate the content of the homepage carousel through the backend.
But for the menu, make the translations through the frontend.
Export the French
.po
file for your Airproof module and place it in the/i18n
translations folder.If you would like, you can add more translations directly by editing the
.po
file. (Using Poedit software, your code editor, or another translation tool.)
Pour plus d'infos
See reference documentation on Backend and Frontend translations, and how to Export them.
Note
Be careful when using Poedit, as it doesn’t handle tags with styles well and generates an
.mo
file.To see the changes made directly via the
.po
file, you will need to manually import the file.
Take a look at what the file i18n/fr_BE.po of our Airproof example looks like.
Module import¶
Great job! The website is now completely finished and your module is ready for installation in the client’s SaaS database.
Just before that, test the import process on a new database.
Pour plus d'infos
See reference documentation on how to deploy a module on an Odoo SaaS database.
Astuce
Ensure the
base_import_module
is installed on the database before the module installation.Verify all required applications are installed.
Skip the theme installation steps and start from scratch.
Manually import translations after module installation, as they won’t apply automatically.
Conclusion¶
Congratulations on completing the Build a module for a website theme tutorial! You’ve successfully navigated through every stage, from setting up your development environment to launching a fully customized Odoo website theme.
Throughout this journey, you’ve mastered: