SlideShare a Scribd company logo
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 Commerce
DrupalDay
 
Drupal Days 2014 - Drupal Commerce Kickstart
Drupal Days 2014 - Drupal Commerce KickstartDrupal Days 2014 - Drupal Commerce Kickstart
Drupal Days 2014 - Drupal Commerce Kickstart
Roberto 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 2014
Studio 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 needs
Pedro Cambra
 
Drupal commerce an overview drupalcamp gent
Drupal commerce an overview   drupalcamp gentDrupal commerce an overview   drupalcamp gent
Drupal commerce an overview drupalcamp gent
wesleydv
 
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
Acquia
 
OS Accelerate London - 09/16/15
OS Accelerate London - 09/16/15OS Accelerate London - 09/16/15
OS Accelerate London - 09/16/15
Appnovation Technologies
 
Drupal As A Jigsaw
Drupal As A JigsawDrupal As A Jigsaw
Drupal As A Jigsaw
nyccamp
 
Introduction to drupal
Introduction to drupalIntroduction to drupal
Introduction to drupal
Pedro 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 conferences
bmeme
 
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 2014
Sergiu 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 Drupal
Anthony Ogbonna
 
Drupal Gardens Overview
Drupal Gardens OverviewDrupal Gardens Overview
Drupal Gardens Overview
Acquia
 
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 DroopyAppStore
Robert Douglass
 
Drupal Training in Delhi
Drupal Training in DelhiDrupal Training in Delhi
Drupal Training in Delhi
APTRON
 
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

Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
kalichargn70th171
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 

Recently uploaded (20)

Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 

DrupalDay - Localizing Drupal Commerce