Reading list Switch to dark mode

    Odoo Language Translation

    Updated 8 December 2022

    INTRODUCTION

    Language translation in Odoo is quite helpful to translate text strings from one language to another. The Odoo language translation allows translating the text to your desired language without customizing the module. Further, Odoo can use different languages for different users and translate website pages into multiple languages. In this article, I will explain how to translate the language for a module in Odoo.

    STEPS TO FOLLOW FOR A LANGUAGE TRANSLATION IN ODOO

    1. Login and enable the Debug mode of your Odoo Instance. And move to ‘Settings> Translation’ and search for the language you want to add.

    Adding-language-in-Odoo-Language-Translation-1

    2. Now, press the ‘Activate and Transalate’ button. It will install that particular language in Odoo. 

    Adding-Language-in-Odoo-Language-Translation-2

    3. In the ‘Add Language’ widget, choose the language you want to add to your Odoo and click on the ‘Add’ button. It will install the language on your Odoo. The loading process might take some time, so wait for the time being.

    Adding-Language-in-Odoo-Language-Translation-3

    4. After language installation, you will see a success popup with the button to ‘Close or Switch Laguage.’

    Searching for an experienced
    Odoo Company ?
    Find out More
    Popup-after-adding-language-in-Odoo-Language-Translation.

    EXPORTING A PO File

    5. Now, you need to add a PO file for this language. PO file contains the actual translation of the module, and each language has its PO file, with the name as country code and the extension as .po. To create a PO file for a particular language (French in our case), follow the below steps.

    6. Go to ‘Settings > Import/Export > Export Translation.’

    Exporting-language-po-file-in-Odoo-Language-Translation-1

    7. In the ‘Export Translation’ wizard, select the Language for which you want to create the PO file, select the File Format as ‘PO File,’ and select the applications you want to translate (Apps To Export). Once done, click on the ‘Export’ button.

    Export-widget-in-Odoo-Language-Translation

    8. After that, a wizard will open, and there will be a generated download link of the PO file, which you can download. Click on the link and download the PO file.

    Export-complete-popup-with-download-file-in-Odoo-Language-Translation

    9. Copy the downloaded file (fr.po) and paste it into the folder i18n (if not present, create it) inside your module.

    10. Open the PO file, and you will find two keywords, ‘msgid and msgstr.’ The msgid contains the actual text, and the msgstr holds the text you want to display for the translation.

    fr.po-file-view

    11. Now, the new language is ready. When a user chooses the french language, they can see the translated text. Similarly, you can translate the text, label, words, strings, etc. in your required language.

    IMPORTING A PO FILE

    12. To Import, go to ‘Settings > Import/Export > Import Translation.’

    Importing-po-file-after-update

    13. In the ‘Import Translation’ wizard, enter the Language name, Code, upload the PO file, and enable ‘Override Existing Terms.’ You can also edit, delete, and download the PO file. Once done, click on the ‘Import’ button.

    Import-translation-wizard

    SEEING THE TRANSLATED TEXT

    14. If you want to see the translated text in the Odoo fields, you can click on the translation icon displayed in the field. I am considering an example of Odoo products.

    Checking-Language-translation-1

    15. You can see the translated product name and view all other installed translations in the popup.

    Checking-Language-translation-2

    That is it.!!!

    NEED HELP?

    Hope you find the guide helpful! Please feel free to share your feedback in the comments below.

    If you still have any issues/queries regarding the module, please raise a ticket at https://webkul.uvdesk.com/en/customer/create-ticket/.

    Also, please explore our Odoo development services & an extensive range of quality Odoo Apps.

    For any doubt, contact us at [email protected].

    Thanks for paying attention!!

    Current Product Version - 1.1

    Supported Framework Version - Odoo 16, 15, 14

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    13 comments

  • B.A.
    • Anisha Bahukhandi (Moderator)
  • mariem
  • Divyansh
    • Jahangir Naik (Moderator)
      • Divyansh
        • Jahangir Naik (Moderator)
  • Divyansh
    • Jahangir Naik (Moderator)
  • Maitree
    • Jahangir Naik (Moderator)
  • Indonesian Editing and Proofreading
    • Jahangir Naik (Moderator)
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home