SlideShare a Scribd company logo
1 of 39
Download to read offline
Localizing Drupal Commerce
a brief glance to how Drupal Commerce become multilingual
ROBERTO PERUZZO
E roberto.peruzzo@studioaqua.it

T @robertoperuzzo
W www.studioaqua.it
In it.linkedin.com/in/robertoperuzzo
Software Developer
Drupal Commerce
Is an Open Source eCommerce framework built from
the ground up on Drupal 7.
Why Drupal Commerce
• Mature project
• Good documentation & community
• Flexible & Extensible
Commerce Guys
Is the company born from the Drupal community.
It develops and supports the Drupal Commerce
project.
Need help? Get help!
• Guides [http://www.drupalcommerce.org/user-guide]
• Videos [http://www.drupalcommerce.org/videos]
• Inquiry [https://commerceguys.com/inquiry]
Store & Storehouse
• How do you store?
• How do you sell?
…Drupal Commerce doesn't care.
Product
• Drupal entity
• Define the product features
or product variation
Product page
• Drupal node
• Gathers product variations
or product display
Product Page
& Product
Globalization
• Internationalisation (i18n)
• Localisation (L10n)
A big headache
translation entity_translation i18n_taxonomy
Product Page
(node)
Product
(entity)
Properties
(taxonomy)
Elements
Modules
Take an aspirin
Product Page
(entity)
Product
(entity)
Property
(entity)
Elements
Modules
entity_translation
+
title
entity_type = node entity_type = product entity_type = taxonomy_term
Modules for translation
$drush dl entity_translation
$drush en entity_translation -y
$drush dl title
$drush en title -y
$drush dl variable
$drush en variable -y
$drush dl i18n
$drush en i18n, i18n_translation, i18n_field, i18n_menu -y
Site configurations
• Are your regional settings correct?
• Add your language
• Configure language detection
• Import language files
• Enable language selector for site visitors
Regional
settings
!
admin/config/regional/settings
Your
language
!
admin/config/regional/language
Language
prefix
admin/config/regional/language/edit/en
Content
language
detection
admin/config/regional/language/configure
Content
language
detection
URL
admin/config/regional/language/configure/url
Import
language
files
admin/config/regional/translate
Drupal core: https://localize.drupal.org/
Drupal Commerce: https://localize.drupal.org/translate/downloads?project=commerce
Import
language
files
admin/config/regional/translate/import
Enable
language
selector
block
admin/structure/block
<?php!
! $block = module_invoke('locale', 'block_view', 'language');!
! print render($block['content']);!
?>
or through the code
Into block setting page
Configure translation
• Select the translatable entity types
• Enable field translation
• Multilingual support for taxonomies
• Set some sensible defaults
Select
translatable
entities
admin/config/regional/entity_translation
Field
translation
for content
types
admin/structure/types/manage/<node-type-machine-name>
Replace title
and enable
fields
translation
admin/structure/types/manage/<content-type-machine-name>/fileds
Convert the title into a translatable field
and edit each field you want to translate
Enable
multilingual
support for
taxonomies
admin/structure/taxonomy/<vocabulary-name>/fields
Convert the name and description
into a translatable field
and enable the translation
Set some
sensible
defaults
admin/config/regional/entity_translation
Translate content
• Translate fields
• Translate taxonomy items
Product
creation
(italian)
node/add/<content-type-name>
Product
variation
(italian)
node/add/<content-type-name>
Product
translation
(english)
node/<nid>/edit/add/it/en?destination=admin/commerce/products
Taxonomy
translation
(italian)
taxonomy/term/<tid>/edit/it
Taxonomy
translation
(english)
taxonomy/term/<tid>/edit/en
Materiale
http://bit.ly/StudioAquaDrupalday2014
E roberto.peruzzo@studioaqua.it

T @robertoperuzzo
Q&A
DrupalDay - Localizing Drupal Commerce

More Related Content

Similar to DrupalDay - Localizing Drupal Commerce

DDAY2014 - Localizing Drupal Commerce
DDAY2014 - Localizing Drupal CommerceDDAY2014 - Localizing Drupal Commerce
DDAY2014 - Localizing Drupal CommerceDrupalDay
 
Drupal Days 2014 - Drupal Commerce Kickstart
Drupal Days 2014 - Drupal Commerce KickstartDrupal Days 2014 - Drupal Commerce Kickstart
Drupal Days 2014 - Drupal Commerce KickstartRoberto Peruzzo
 
Introduzione a Drupal Commerce Kickstart - Drupal Days 2014
Introduzione a Drupal Commerce Kickstart - Drupal Days 2014Introduzione a Drupal Commerce Kickstart - Drupal Days 2014
Introduzione a Drupal Commerce Kickstart - Drupal Days 2014Studio Aqua
 
Drupal Commerce: A perfect match for your e-commerce needs
Drupal Commerce: A perfect match for your e-commerce needsDrupal Commerce: A perfect match for your e-commerce needs
Drupal Commerce: A perfect match for your e-commerce needsPedro Cambra
 
Drupal commerce an overview drupalcamp gent
Drupal commerce an overview   drupalcamp gentDrupal commerce an overview   drupalcamp gent
Drupal commerce an overview drupalcamp gentwesleydv
 
Start Here: How to Prepare for Your Drupal 8 Journey
Start Here: How to Prepare for Your Drupal 8 JourneyStart Here: How to Prepare for Your Drupal 8 Journey
Start Here: How to Prepare for Your Drupal 8 JourneyAcquia
 
Drupal As A Jigsaw
Drupal As A JigsawDrupal As A Jigsaw
Drupal As A Jigsawnyccamp
 
Introduction to drupal
Introduction to drupalIntroduction to drupal
Introduction to drupalPedro Cambra
 
"Eventum project" - A Drupal platform for managing events and conferences
"Eventum project" - A Drupal platform for managing  events and conferences"Eventum project" - A Drupal platform for managing  events and conferences
"Eventum project" - A Drupal platform for managing events and conferencesbmeme
 
WHY SHOULD UPGRADE TO DRUPAL 8?
WHY SHOULD UPGRADE TO DRUPAL 8?WHY SHOULD UPGRADE TO DRUPAL 8?
WHY SHOULD UPGRADE TO DRUPAL 8?Pixel Crayons
 
Drupal Commerce 2014
Drupal Commerce 2014Drupal Commerce 2014
Drupal Commerce 2014Sergiu Savva
 
Why should you upgrade to Drupal 8?
Why should you upgrade to Drupal 8?Why should you upgrade to Drupal 8?
Why should you upgrade to Drupal 8?PixelCrayons
 
Bootstrap + Drupal Commerce in less than 45 minutes!
Bootstrap + Drupal Commerce in less than 45 minutes!Bootstrap + Drupal Commerce in less than 45 minutes!
Bootstrap + Drupal Commerce in less than 45 minutes!Jorge Diaz
 
Introduction To Drupal And The Future of Drupal
Introduction To Drupal And The Future of DrupalIntroduction To Drupal And The Future of Drupal
Introduction To Drupal And The Future of DrupalAnthony Ogbonna
 
Drupal Gardens Overview
Drupal Gardens OverviewDrupal Gardens Overview
Drupal Gardens OverviewAcquia
 
DDAY2014 - Drupal 8 e il mercato Enterprise: questo matrimonio s'ha da fare?
DDAY2014 - Drupal 8 e il mercato Enterprise: questo matrimonio s'ha da fare?DDAY2014 - Drupal 8 e il mercato Enterprise: questo matrimonio s'ha da fare?
DDAY2014 - Drupal 8 e il mercato Enterprise: questo matrimonio s'ha da fare?DrupalDay
 
Sell your code: Announcing the DroopyAppStore
Sell your code: Announcing the DroopyAppStoreSell your code: Announcing the DroopyAppStore
Sell your code: Announcing the DroopyAppStoreRobert Douglass
 
Drupal Training in Delhi
Drupal Training in DelhiDrupal Training in Delhi
Drupal Training in DelhiAPTRON
 
DrupalCon San Francisco- The State of Drupal as a Web Application & Product ...
DrupalCon San Francisco-  The State of Drupal as a Web Application & Product ...DrupalCon San Francisco-  The State of Drupal as a Web Application & Product ...
DrupalCon San Francisco- The State of Drupal as a Web Application & Product ...Zivtech, LLC
 

Similar to DrupalDay - Localizing Drupal Commerce (20)

DDAY2014 - Localizing Drupal Commerce
DDAY2014 - Localizing Drupal CommerceDDAY2014 - Localizing Drupal Commerce
DDAY2014 - Localizing Drupal Commerce
 
Drupal Days 2014 - Drupal Commerce Kickstart
Drupal Days 2014 - Drupal Commerce KickstartDrupal Days 2014 - Drupal Commerce Kickstart
Drupal Days 2014 - Drupal Commerce Kickstart
 
Introduzione a Drupal Commerce Kickstart - Drupal Days 2014
Introduzione a Drupal Commerce Kickstart - Drupal Days 2014Introduzione a Drupal Commerce Kickstart - Drupal Days 2014
Introduzione a Drupal Commerce Kickstart - Drupal Days 2014
 
Drupal Commerce: A perfect match for your e-commerce needs
Drupal Commerce: A perfect match for your e-commerce needsDrupal Commerce: A perfect match for your e-commerce needs
Drupal Commerce: A perfect match for your e-commerce needs
 
Drupal commerce an overview drupalcamp gent
Drupal commerce an overview   drupalcamp gentDrupal commerce an overview   drupalcamp gent
Drupal commerce an overview drupalcamp gent
 
Start Here: How to Prepare for Your Drupal 8 Journey
Start Here: How to Prepare for Your Drupal 8 JourneyStart Here: How to Prepare for Your Drupal 8 Journey
Start Here: How to Prepare for Your Drupal 8 Journey
 
OS Accelerate London - 09/16/15
OS Accelerate London - 09/16/15OS Accelerate London - 09/16/15
OS Accelerate London - 09/16/15
 
Drupal As A Jigsaw
Drupal As A JigsawDrupal As A Jigsaw
Drupal As A Jigsaw
 
Introduction to drupal
Introduction to drupalIntroduction to drupal
Introduction to drupal
 
"Eventum project" - A Drupal platform for managing events and conferences
"Eventum project" - A Drupal platform for managing  events and conferences"Eventum project" - A Drupal platform for managing  events and conferences
"Eventum project" - A Drupal platform for managing events and conferences
 
WHY SHOULD UPGRADE TO DRUPAL 8?
WHY SHOULD UPGRADE TO DRUPAL 8?WHY SHOULD UPGRADE TO DRUPAL 8?
WHY SHOULD UPGRADE TO DRUPAL 8?
 
Drupal Commerce 2014
Drupal Commerce 2014Drupal Commerce 2014
Drupal Commerce 2014
 
Why should you upgrade to Drupal 8?
Why should you upgrade to Drupal 8?Why should you upgrade to Drupal 8?
Why should you upgrade to Drupal 8?
 
Bootstrap + Drupal Commerce in less than 45 minutes!
Bootstrap + Drupal Commerce in less than 45 minutes!Bootstrap + Drupal Commerce in less than 45 minutes!
Bootstrap + Drupal Commerce in less than 45 minutes!
 
Introduction To Drupal And The Future of Drupal
Introduction To Drupal And The Future of DrupalIntroduction To Drupal And The Future of Drupal
Introduction To Drupal And The Future of Drupal
 
Drupal Gardens Overview
Drupal Gardens OverviewDrupal Gardens Overview
Drupal Gardens Overview
 
DDAY2014 - Drupal 8 e il mercato Enterprise: questo matrimonio s'ha da fare?
DDAY2014 - Drupal 8 e il mercato Enterprise: questo matrimonio s'ha da fare?DDAY2014 - Drupal 8 e il mercato Enterprise: questo matrimonio s'ha da fare?
DDAY2014 - Drupal 8 e il mercato Enterprise: questo matrimonio s'ha da fare?
 
Sell your code: Announcing the DroopyAppStore
Sell your code: Announcing the DroopyAppStoreSell your code: Announcing the DroopyAppStore
Sell your code: Announcing the DroopyAppStore
 
Drupal Training in Delhi
Drupal Training in DelhiDrupal Training in Delhi
Drupal Training in Delhi
 
DrupalCon San Francisco- The State of Drupal as a Web Application & Product ...
DrupalCon San Francisco-  The State of Drupal as a Web Application & Product ...DrupalCon San Francisco-  The State of Drupal as a Web Application & Product ...
DrupalCon San Francisco- The State of Drupal as a Web Application & Product ...
 

Recently uploaded

英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
Software Coding for software engineering
Software Coding for software engineeringSoftware Coding for software engineering
Software Coding for software engineeringssuserb3a23b
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalLionel Briand
 

Recently uploaded (20)

英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
Odoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting ServiceOdoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting Service
 
Software Coding for software engineering
Software Coding for software engineeringSoftware Coding for software engineering
Software Coding for software engineering
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
 

DrupalDay - Localizing Drupal Commerce