SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Downloaden Sie, um offline zu lesen
Translation Engine in Odoo
Ranjit Pillai (rpi-odoo)
Jr. Application Engineer
Tiny ERP Pvt. Ltd.
Agenda
● Architecture of Translation Engine
● Load Translation from po file
● Export Translation into pot file
● About Transifex
● Integrate Translation Web Service: Gengo
Architecture of Translation Engine
Odoo
Translation
Engine
(ir.translation)
po file pot file
Webpage/View
Transifex
(Translator)
Import/Load Export
Template FileTranslated File
Language
in context
Translated
View
UTW
TW
❖ UTW - Untranslated Words
❖ TW - Translated Words
Load Translation
● Load the particular language Settings>Translation>Load a Translation
● Change the user’s language Preferences>Language
Odoo
Translation
Engine
(ir.translation)
po file
Import/Load
Webpage/View
Language
in context
Translated
View
Export Translation into POT file
● To generate .pot file go to Settings>Translation>Import/Export>Export
Translation
Odoo
Translation
Engine
(ir.translation)
pot file
Export
Translation Export Types
Implicit exports
● Odoo automatically exports translatable strings like:
○ In non-QWeb views, all text nodes are exported as well as the content of the “string”, “help”,
“sum”, “confirm” and “placeholder” attributes.
○ In QWeb templates, all text nodes are exported except inside t-translation=’off’ blocks, the
content of the “title”, “alt”, “label” and “placeholder” attributes are also exported.
○ for class:`openerp.fields.Field`, unless their field is marked with “translate = False”: their “string”
and “help” attributes are exported.
○ If “selection” is present and a list (or tuple), it is exported.
○ help/error messages of `openerp.models.Model._constraints` and `openerp.models.Model.
_sql_constraints` are exported.
Translation Export Types(Cont.)
Explicit exports
● When it comes to more "imperative" situations in Python code or
Javascript code, Odoo cannot automatically export translatable terms so
they must be marked explicitly for export. This is done by wrapping a
literal string in a function call.
○ In Python, the wrapping function is :`openerp._`
■ title = _("Bank Accounts")
○ In JavaScript, the wrapping function is generally :`openerp.web._t`
■ title = _t("Bank Accounts")
Structure of translation terms
Note.pot
fr.po (inside note/i18n)
ir.translation
model
● Example of type = model:
Structure of translation terms(cont.)
Stock.pot
fr.po (inside stock/i18n)
ir.translation
model
● Example of type = code:
● Other types are selection, constraint and sql_constraint
Directory Structure of i18n in Odoo
POT files are basically the template files for PO files. It
will have all the translation strings (the msgstr parts) left
empty.
PO files are the files which contain the actual
translations. Each language will have its own PO file, for
example, for French there would be a fr.po file, for
german there would be a de.po and so on..
Translating Odoo with Transifex
● The easiest way to translate Odoo is to use the dedicated Translation
interface on Transifex.
● Transifex provides a web-based translation interface, which can be used
to translate.
● Translation Teams on Transifex
○ Every language is managed by a dedicated translation team. Anyone is free to join any translation
team at any point. Within each team, members can have different roles:
■ Translator: free to join, can submit translation suggestions (this is your role when you initially join a
team)
■ Reviewer: can approve translation suggestions from Translators.
■ Coordinator: can manage the members of the team and appoint Reviewers.
Translating Odoo with Transifex(cont.)
● Architecture of Transifex
<module>.pot Transifex
<lang>.po
<lang>.po
<lang>.po
<lang>.po
Gengo Translation
● Gengo is a web-based human translation platform.
● In Odoo, Gengo is used to translate the text of the Website.
Send Words
Receive Translated
Words
Thank You !!!
References
References:
● https://github.com/odoo/odoo/wiki/Translations
● https://www.odoo.
com/documentation/master/reference/translations.html
Useful Links:
● Transifex Tutorial : http://docs.transifex.com/tutorials/client/
● Odoo & Transifex : https://www.transifex.com/odoo/public/
● GNU gettext : http://www.gnu.
org/software/gettext/manual/gettext.html

Weitere ähnliche Inhalte

Was ist angesagt?

インクルーシブデザイン導入事例
インクルーシブデザイン導入事例インクルーシブデザイン導入事例
インクルーシブデザイン導入事例克彦 岡本
 
Scale Up! The Business Game
Scale Up! The Business GameScale Up! The Business Game
Scale Up! The Business GameOdoo
 
Say Goodbye to Excel with the New built-in Odoo Spreadsheets
Say Goodbye to Excel with the New built-in Odoo SpreadsheetsSay Goodbye to Excel with the New built-in Odoo Spreadsheets
Say Goodbye to Excel with the New built-in Odoo SpreadsheetsOdoo
 
Odoo presentation corporate
Odoo presentation corporateOdoo presentation corporate
Odoo presentation corporateRishi Pujara
 
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach foodOdoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach foodOdoo
 
Odoo Features | Opensource ERP | Odoo Ecommerce
Odoo Features | Opensource ERP | Odoo EcommerceOdoo Features | Opensource ERP | Odoo Ecommerce
Odoo Features | Opensource ERP | Odoo EcommerceTech Receptives
 
Budget Management in Odoo 15 Accounting
Budget Management in Odoo 15 AccountingBudget Management in Odoo 15 Accounting
Budget Management in Odoo 15 AccountingCeline George
 
Odoo Inc. PLO - Brochure SPA (1).pdf
Odoo Inc. PLO - Brochure SPA (1).pdfOdoo Inc. PLO - Brochure SPA (1).pdf
Odoo Inc. PLO - Brochure SPA (1).pdfPozoZaphir
 
OpenERP Management system modules
OpenERP Management system modulesOpenERP Management system modules
OpenERP Management system modulesMaxime Chambreuil
 
Odoo implementation
Odoo implementationOdoo implementation
Odoo implementationOdoo Thaidev
 
Odoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-ViewerOdoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-ViewerOdoo
 
scaffold method odoo 16
scaffold method odoo 16scaffold method odoo 16
scaffold method odoo 16Celine George
 
projec kickoff presentation template
 projec kickoff presentation template projec kickoff presentation template
projec kickoff presentation templatedadiiskandar4
 
All in one Odoo Advanced Helpdesk Support Ticket and Issue Management Module
All in one Odoo Advanced Helpdesk Support Ticket and Issue Management ModuleAll in one Odoo Advanced Helpdesk Support Ticket and Issue Management Module
All in one Odoo Advanced Helpdesk Support Ticket and Issue Management ModuleAxis Technolabs
 
Doing a GAP Analysis Before Choosing a New ERP
Doing a GAP Analysis Before Choosing a New ERPDoing a GAP Analysis Before Choosing a New ERP
Doing a GAP Analysis Before Choosing a New ERPOdoo
 

Was ist angesagt? (20)

インクルーシブデザイン導入事例
インクルーシブデザイン導入事例インクルーシブデザイン導入事例
インクルーシブデザイン導入事例
 
Scale Up! The Business Game
Scale Up! The Business GameScale Up! The Business Game
Scale Up! The Business Game
 
Say Goodbye to Excel with the New built-in Odoo Spreadsheets
Say Goodbye to Excel with the New built-in Odoo SpreadsheetsSay Goodbye to Excel with the New built-in Odoo Spreadsheets
Say Goodbye to Excel with the New built-in Odoo Spreadsheets
 
Odoo presentation corporate
Odoo presentation corporateOdoo presentation corporate
Odoo presentation corporate
 
Flutter for web
Flutter for webFlutter for web
Flutter for web
 
Git Flow y GitOps
Git Flow y GitOpsGit Flow y GitOps
Git Flow y GitOps
 
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach foodOdoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
Odoo Implementation in Phases - Success Story of a Retail Chain 3Sach food
 
Odoo Features | Opensource ERP | Odoo Ecommerce
Odoo Features | Opensource ERP | Odoo EcommerceOdoo Features | Opensource ERP | Odoo Ecommerce
Odoo Features | Opensource ERP | Odoo Ecommerce
 
Budget Management in Odoo 15 Accounting
Budget Management in Odoo 15 AccountingBudget Management in Odoo 15 Accounting
Budget Management in Odoo 15 Accounting
 
Odoo Inc. PLO - Brochure SPA (1).pdf
Odoo Inc. PLO - Brochure SPA (1).pdfOdoo Inc. PLO - Brochure SPA (1).pdf
Odoo Inc. PLO - Brochure SPA (1).pdf
 
OpenERP Management system modules
OpenERP Management system modulesOpenERP Management system modules
OpenERP Management system modules
 
Odoo implementation
Odoo implementationOdoo implementation
Odoo implementation
 
Odoo 12 Functional Training
Odoo 12 Functional TrainingOdoo 12 Functional Training
Odoo 12 Functional Training
 
Odoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-ViewerOdoo 3D Product View with Google Model-Viewer
Odoo 3D Product View with Google Model-Viewer
 
4 (uml basic)
4 (uml basic)4 (uml basic)
4 (uml basic)
 
The benefits of odoo
The benefits of odoo The benefits of odoo
The benefits of odoo
 
scaffold method odoo 16
scaffold method odoo 16scaffold method odoo 16
scaffold method odoo 16
 
projec kickoff presentation template
 projec kickoff presentation template projec kickoff presentation template
projec kickoff presentation template
 
All in one Odoo Advanced Helpdesk Support Ticket and Issue Management Module
All in one Odoo Advanced Helpdesk Support Ticket and Issue Management ModuleAll in one Odoo Advanced Helpdesk Support Ticket and Issue Management Module
All in one Odoo Advanced Helpdesk Support Ticket and Issue Management Module
 
Doing a GAP Analysis Before Choosing a New ERP
Doing a GAP Analysis Before Choosing a New ERPDoing a GAP Analysis Before Choosing a New ERP
Doing a GAP Analysis Before Choosing a New ERP
 

Andere mochten auch

OpenERP - Whole Company Meeting
OpenERP - Whole Company MeetingOpenERP - Whole Company Meeting
OpenERP - Whole Company MeetingOdoo
 
Workflow functional concept on openerp7
Workflow functional concept on openerp7Workflow functional concept on openerp7
Workflow functional concept on openerp7Aziza Mohamed
 
Odoo accounting or financial module:
Odoo accounting or financial module:Odoo accounting or financial module:
Odoo accounting or financial module:Aspirant Labs
 
Odoo acces rights & groups
Odoo acces rights & groupsOdoo acces rights & groups
Odoo acces rights & groupsLithin Thampan
 
Odoo 8 tutorial part 2
Odoo 8 tutorial   part 2Odoo 8 tutorial   part 2
Odoo 8 tutorial part 2Md Omar Bare
 
Odoo 8 tutorial HR Module part 1
Odoo 8 tutorial   HR Module part 1Odoo 8 tutorial   HR Module part 1
Odoo 8 tutorial HR Module part 1Md Omar Bare
 
Odoo Accounting Roadmap
Odoo Accounting RoadmapOdoo Accounting Roadmap
Odoo Accounting RoadmapOdoo
 
Odoo (OpenERP) User Manual - Human Resource
Odoo (OpenERP) User Manual - Human Resource Odoo (OpenERP) User Manual - Human Resource
Odoo (OpenERP) User Manual - Human Resource Shivam Dixit
 
Odoo 8 tutorial accounting part 1
Odoo 8 tutorial   accounting part 1Odoo 8 tutorial   accounting part 1
Odoo 8 tutorial accounting part 1Md Omar Bare
 
Service Management with Odoo/OpenERP - Opendays 2014
Service Management with Odoo/OpenERP - Opendays 2014Service Management with Odoo/OpenERP - Opendays 2014
Service Management with Odoo/OpenERP - Opendays 2014Daniel Reis
 
Odoo introduction
Odoo introductionOdoo introduction
Odoo introductionhdarabi
 
Odoo - Business intelligence: Develop cube views for your own objects
Odoo - Business intelligence: Develop cube views for your own objectsOdoo - Business intelligence: Develop cube views for your own objects
Odoo - Business intelligence: Develop cube views for your own objectsOdoo
 
How to manage a service company with Odoo
How to manage a service company with OdooHow to manage a service company with Odoo
How to manage a service company with OdooOdoo
 
Odoo - Presentation documentation v8
Odoo - Presentation documentation v8Odoo - Presentation documentation v8
Odoo - Presentation documentation v8Odoo
 
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...Odoo
 
Improving the performance of Odoo deployments
Improving the performance of Odoo deploymentsImproving the performance of Odoo deployments
Improving the performance of Odoo deploymentsOdoo
 

Andere mochten auch (19)

OpenERP - Whole Company Meeting
OpenERP - Whole Company MeetingOpenERP - Whole Company Meeting
OpenERP - Whole Company Meeting
 
Odoo report
Odoo reportOdoo report
Odoo report
 
Workflow functional concept on openerp7
Workflow functional concept on openerp7Workflow functional concept on openerp7
Workflow functional concept on openerp7
 
Odoo accounting or financial module:
Odoo accounting or financial module:Odoo accounting or financial module:
Odoo accounting or financial module:
 
Odoo acces rights & groups
Odoo acces rights & groupsOdoo acces rights & groups
Odoo acces rights & groups
 
Odoo 8 tutorial part 2
Odoo 8 tutorial   part 2Odoo 8 tutorial   part 2
Odoo 8 tutorial part 2
 
Odoo access rights
Odoo access rightsOdoo access rights
Odoo access rights
 
Odoo 8 tutorial HR Module part 1
Odoo 8 tutorial   HR Module part 1Odoo 8 tutorial   HR Module part 1
Odoo 8 tutorial HR Module part 1
 
Odoo Accounting Roadmap
Odoo Accounting RoadmapOdoo Accounting Roadmap
Odoo Accounting Roadmap
 
Odoo (OpenERP) User Manual - Human Resource
Odoo (OpenERP) User Manual - Human Resource Odoo (OpenERP) User Manual - Human Resource
Odoo (OpenERP) User Manual - Human Resource
 
Odoo 8 tutorial accounting part 1
Odoo 8 tutorial   accounting part 1Odoo 8 tutorial   accounting part 1
Odoo 8 tutorial accounting part 1
 
Service Management with Odoo/OpenERP - Opendays 2014
Service Management with Odoo/OpenERP - Opendays 2014Service Management with Odoo/OpenERP - Opendays 2014
Service Management with Odoo/OpenERP - Opendays 2014
 
Odoo introduction
Odoo introductionOdoo introduction
Odoo introduction
 
Odoo - Business intelligence: Develop cube views for your own objects
Odoo - Business intelligence: Develop cube views for your own objectsOdoo - Business intelligence: Develop cube views for your own objects
Odoo - Business intelligence: Develop cube views for your own objects
 
How to manage a service company with Odoo
How to manage a service company with OdooHow to manage a service company with Odoo
How to manage a service company with Odoo
 
Odoo - Presentation documentation v8
Odoo - Presentation documentation v8Odoo - Presentation documentation v8
Odoo - Presentation documentation v8
 
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
E-commerce: the new Magento - OpenERP Connector: a generic connector to any a...
 
Improving the performance of Odoo deployments
Improving the performance of Odoo deploymentsImproving the performance of Odoo deployments
Improving the performance of Odoo deployments
 
OpenERP Formation Web
OpenERP Formation WebOpenERP Formation Web
OpenERP Formation Web
 

Ähnlich wie Translation engine in odoo

Gettext i18n system - internationalization for gettext
Gettext i18n system - internationalization for gettextGettext i18n system - internationalization for gettext
Gettext i18n system - internationalization for gettextLingoHub
 
Ezodf extension documentation
Ezodf extension documentationEzodf extension documentation
Ezodf extension documentationAnoir Zribi
 
Translation in Odoo 14
Translation in Odoo 14Translation in Odoo 14
Translation in Odoo 14Celine George
 
Tr8n for php - Michael Berkovich
Tr8n for php - Michael BerkovichTr8n for php - Michael Berkovich
Tr8n for php - Michael BerkovichCaroline_Rose
 
Mx trans pack_instructions
Mx trans pack_instructionsMx trans pack_instructions
Mx trans pack_instructionsMX Community
 
Intro to Python with GPIO
Intro to Python with GPIOIntro to Python with GPIO
Intro to Python with GPIOprimeteacher32
 
Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfVaibhavKumarSinghkal
 
Multilingual WordPress
Multilingual WordPressMultilingual WordPress
Multilingual WordPressMatt Smith
 
Experience protocol buffer on android
Experience protocol buffer on androidExperience protocol buffer on android
Experience protocol buffer on androidRichard Chang
 
Drupal 8 customized checkout system
Drupal 8 customized checkout systemDrupal 8 customized checkout system
Drupal 8 customized checkout systemAhmad Hassan
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyTIB Academy
 
Configuring Odoo 15 Project on Pycharm
Configuring Odoo 15 Project on PycharmConfiguring Odoo 15 Project on Pycharm
Configuring Odoo 15 Project on PycharmCeline George
 
Configuring Odoo 15 Project on Pycharm
Configuring Odoo 15 Project on PycharmConfiguring Odoo 15 Project on Pycharm
Configuring Odoo 15 Project on PycharmCeline George
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxAditya Patel
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxManohar k
 

Ähnlich wie Translation engine in odoo (20)

Gettext i18n system - internationalization for gettext
Gettext i18n system - internationalization for gettextGettext i18n system - internationalization for gettext
Gettext i18n system - internationalization for gettext
 
Ezodf extension documentation
Ezodf extension documentationEzodf extension documentation
Ezodf extension documentation
 
Translation in Odoo 14
Translation in Odoo 14Translation in Odoo 14
Translation in Odoo 14
 
Tr8n for php - Michael Berkovich
Tr8n for php - Michael BerkovichTr8n for php - Michael Berkovich
Tr8n for php - Michael Berkovich
 
Mx trans pack_instructions
Mx trans pack_instructionsMx trans pack_instructions
Mx trans pack_instructions
 
Python Training in Chandigarh
Python Training in ChandigarhPython Training in Chandigarh
Python Training in Chandigarh
 
Intro to Python with GPIO
Intro to Python with GPIOIntro to Python with GPIO
Intro to Python with GPIO
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdf
 
Python Programming.pptx
Python Programming.pptxPython Programming.pptx
Python Programming.pptx
 
Multilingual WordPress
Multilingual WordPressMultilingual WordPress
Multilingual WordPress
 
Experience protocol buffer on android
Experience protocol buffer on androidExperience protocol buffer on android
Experience protocol buffer on android
 
Drupal 8 customized checkout system
Drupal 8 customized checkout systemDrupal 8 customized checkout system
Drupal 8 customized checkout system
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
 
Configuring Odoo 15 Project on Pycharm
Configuring Odoo 15 Project on PycharmConfiguring Odoo 15 Project on Pycharm
Configuring Odoo 15 Project on Pycharm
 
Configuring Odoo 15 Project on Pycharm
Configuring Odoo 15 Project on PycharmConfiguring Odoo 15 Project on Pycharm
Configuring Odoo 15 Project on Pycharm
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 

Kürzlich hochgeladen

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Kürzlich hochgeladen (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

Translation engine in odoo

  • 1. Translation Engine in Odoo Ranjit Pillai (rpi-odoo) Jr. Application Engineer Tiny ERP Pvt. Ltd.
  • 2. Agenda ● Architecture of Translation Engine ● Load Translation from po file ● Export Translation into pot file ● About Transifex ● Integrate Translation Web Service: Gengo
  • 3. Architecture of Translation Engine Odoo Translation Engine (ir.translation) po file pot file Webpage/View Transifex (Translator) Import/Load Export Template FileTranslated File Language in context Translated View UTW TW ❖ UTW - Untranslated Words ❖ TW - Translated Words
  • 4. Load Translation ● Load the particular language Settings>Translation>Load a Translation ● Change the user’s language Preferences>Language Odoo Translation Engine (ir.translation) po file Import/Load Webpage/View Language in context Translated View
  • 5. Export Translation into POT file ● To generate .pot file go to Settings>Translation>Import/Export>Export Translation Odoo Translation Engine (ir.translation) pot file Export
  • 6. Translation Export Types Implicit exports ● Odoo automatically exports translatable strings like: ○ In non-QWeb views, all text nodes are exported as well as the content of the “string”, “help”, “sum”, “confirm” and “placeholder” attributes. ○ In QWeb templates, all text nodes are exported except inside t-translation=’off’ blocks, the content of the “title”, “alt”, “label” and “placeholder” attributes are also exported. ○ for class:`openerp.fields.Field`, unless their field is marked with “translate = False”: their “string” and “help” attributes are exported. ○ If “selection” is present and a list (or tuple), it is exported. ○ help/error messages of `openerp.models.Model._constraints` and `openerp.models.Model. _sql_constraints` are exported.
  • 7. Translation Export Types(Cont.) Explicit exports ● When it comes to more "imperative" situations in Python code or Javascript code, Odoo cannot automatically export translatable terms so they must be marked explicitly for export. This is done by wrapping a literal string in a function call. ○ In Python, the wrapping function is :`openerp._` ■ title = _("Bank Accounts") ○ In JavaScript, the wrapping function is generally :`openerp.web._t` ■ title = _t("Bank Accounts")
  • 8. Structure of translation terms Note.pot fr.po (inside note/i18n) ir.translation model ● Example of type = model:
  • 9. Structure of translation terms(cont.) Stock.pot fr.po (inside stock/i18n) ir.translation model ● Example of type = code: ● Other types are selection, constraint and sql_constraint
  • 10. Directory Structure of i18n in Odoo POT files are basically the template files for PO files. It will have all the translation strings (the msgstr parts) left empty. PO files are the files which contain the actual translations. Each language will have its own PO file, for example, for French there would be a fr.po file, for german there would be a de.po and so on..
  • 11. Translating Odoo with Transifex ● The easiest way to translate Odoo is to use the dedicated Translation interface on Transifex. ● Transifex provides a web-based translation interface, which can be used to translate. ● Translation Teams on Transifex ○ Every language is managed by a dedicated translation team. Anyone is free to join any translation team at any point. Within each team, members can have different roles: ■ Translator: free to join, can submit translation suggestions (this is your role when you initially join a team) ■ Reviewer: can approve translation suggestions from Translators. ■ Coordinator: can manage the members of the team and appoint Reviewers.
  • 12. Translating Odoo with Transifex(cont.) ● Architecture of Transifex <module>.pot Transifex <lang>.po <lang>.po <lang>.po <lang>.po
  • 13. Gengo Translation ● Gengo is a web-based human translation platform. ● In Odoo, Gengo is used to translate the text of the Website. Send Words Receive Translated Words
  • 15. References References: ● https://github.com/odoo/odoo/wiki/Translations ● https://www.odoo. com/documentation/master/reference/translations.html Useful Links: ● Transifex Tutorial : http://docs.transifex.com/tutorials/client/ ● Odoo & Transifex : https://www.transifex.com/odoo/public/ ● GNU gettext : http://www.gnu. org/software/gettext/manual/gettext.html