SlideShare a Scribd company logo
Magento 2
Enhanced Theme/Skin Localization
Sergii Shymko
Software Engineer, Magento,
a division of X.commerce, Inc. (an eBay company)
Introduction
• Theme/Skin – graphical appearance
of an application
• Magento distinguishes theme & skin
– Responsibility
– File types
– Web-access
Magento Theme
• Theme – markup & text, blocks presence &
rendering order
• Theme files – dynamically processed, no web
access
Magento Skin
• Skin – look and feel of a theme, colors & styles
• Skin files – static, web-accessible
Magento 1.x Design Configuration
Text Fields
Magento 1.x Skin
• Skins are located separately from themes
• Any skin can be chosen for any theme
• Incompatible skin can be chosen for a theme
“example” package“example” package
“default” theme“default” theme
“mobile” theme“mobile” theme
“default” skin“default” skin
“modern” skin“modern” skin
“simple” skin“simple” skin
• Skin belongs to one theme only
• Skin files are located in a theme
• Skin files web-access challenge
“example” package“example” package
Magento 2 Skin
“default” theme“default” theme
“mobile” theme“mobile” theme
“default” skin“default” skin
“modern” skin“modern” skin
“simple” skin“simple” skin
Magento 2 Design Configuration
Package Theme
Skin
LOCALIZATION
IN MAGENTO 1.X
Challenges of
Example 1
• Logo variations
– Default
– German (de_DE locale)
– French (fr_FR locale)
– Brazilian (pt_BR locale)
– …
Magento 1.x Locale Configuration
Admin Panel
Magento 1.x Locale Configuration
Text is translated
Logo is NOT localized
• New skin for every locale
• Inconsistent configuration: locale + localized skin
“example” package“example” package
Magento 1.x "Localization Skins"
“default” theme“default” theme
“german” skin“german” skin
“default” skin“default” skin
“french” skin“french” skin
• Skin provides files for multiple locales
• Consistent configuration: locale
“example” package“example” package
Magento 2 Skin Files Localization
“default” theme“default” theme
“default” skin“default” skin
“de_DE” locale“de_DE” locale
“fr_FR” locale“fr_FR” locale
Example 2
• Logo variations
– Default
– Christmas
– New Year
– Halloween
– ...
• Slogan variations
– Default
– German (de_DE)
– Brazilian (pt_BR)
– ...
Halloween @ Magento Headquarters
HOW TO SCHEDULE DESIGN
FOR HOLIDAYS?
Magento 1.x Design Change Rules
• Custom theme can be specified
• Skin “default” is used implicitly
Package Theme
Dates
“example” package“example” package
“default” theme“default” theme
Magento 1.x Implementation
“default” skin“default” skin
slogan.png
“german” skin“german” skin
slogan.png
“brazilian” skin“brazilian” skin
slogan.png
logo.png
“christmas” theme“christmas” theme
“default” skin“default” skin
slogan.png logo.png
“christmas_de_DE” theme“christmas_de_DE” theme
“default” skin“default” skin
slogan.png logo.png
“christmas_pt_BR” theme“christmas_pt_BR” theme
“default” skin“default” skin
slogan.png logo.png
“new_year” theme“new_year” theme
“default” skin“default” skin
slogan.png logo.png
“new_year _de_DE” theme“new_year _de_DE” theme
“default” skin“default” skin
slogan.png logo.png
“new_year _pt_BR” theme“new_year _pt_BR” theme
“default” skin“default” skin
slogan.png logo.png
inheritance
Lots of Copy & Paste
Magento 2 Design Change Rules
Package Theme
Skin
“example” package“example” package
“default” theme“default” theme
Magento 2 Implementation
“default” skin“default” skin
logo.png
“de_DE” locale“de_DE” locale
slogan.png
slogan.png
“pt_BR” locale“pt_BR” locale
slogan.png
“christmas” skin“christmas” skin
logo.png
“new_year” skin“new_year” skin
logo.png
“halloween” skin“halloween” skin
logo.png
inheritance
Summary
• Magento 2
– Skin belongs to a theme
– Single design configuration field
– Skin provides localized files
– Consistent locale configuration
– No skin files duplication
Magento 2 Links
Repository
github.com/magento/magento2
Documentation
wiki.magento.com/display/MAGE2PROJECT
wiki.magento.com/display/MAGE2DOC
Thank You!
Q & A
Sergii Shymko
sshymko@ebay.com
sergey@shymko.net

More Related Content

PPTX
Magento 2 Theme Localization
PPTX
Magento 2 View Layer Evolution
PDF
File Naming Conventions
PDF
Carrington Theme Framework for WordPress (Refresh Denver)
PDF
Hostingultraso com (southaffrica)
ODP
Drupal Themes
PPT
Chapter4
PDF
Drupal 7 Theme System
Magento 2 Theme Localization
Magento 2 View Layer Evolution
File Naming Conventions
Carrington Theme Framework for WordPress (Refresh Denver)
Hostingultraso com (southaffrica)
Drupal Themes
Chapter4
Drupal 7 Theme System

Viewers also liked (12)

PPTX
Ready To Jump (R2J) prezentacja firmy
PPT
R2J application support
PDF
Cómo parar de roncar
PDF
Co-evolving changes in a data-intensive software system
PPTX
Estadísticas de incendios españa 2014
PPT
What is happening to our forests in Southeast Asia? - Synthesis
PDF
What, why and how to A/B test with AI
PDF
Ασκήσεις Πανελληνίων ΑΟΘ
PPTX
WooCommerce Meetup Utrecht
PPTX
Cybercrime in the Modern Market - Legal Remedies Offshore
DOCX
Inscripcion para niños de 3 años
DOC
Serial number soft
Ready To Jump (R2J) prezentacja firmy
R2J application support
Cómo parar de roncar
Co-evolving changes in a data-intensive software system
Estadísticas de incendios españa 2014
What is happening to our forests in Southeast Asia? - Synthesis
What, why and how to A/B test with AI
Ασκήσεις Πανελληνίων ΑΟΘ
WooCommerce Meetup Utrecht
Cybercrime in the Modern Market - Legal Remedies Offshore
Inscripcion para niños de 3 años
Serial number soft
Ad

Similar to Magento 2 Enhanced Theme/Skin Localization (20)

PPT
Themes and layouts
PDF
Knowledge Management inside Alfresco
PPTX
Creating Custom Templates for Joomla! 2.5
PPTX
Bb Tour ANZ 2017 - Workshop - Enhancing Learn CSS
PDF
Le Wagon Tokyo | Build your Landing Page in 2 hours
PDF
Introduction to Drupal (7) Theming
PDF
Le Wagon - 2h Landing
PDF
Le Wagon - Landing page
PPTX
Anatomy and Architecture of a WordPress Theme
PDF
April 2016 - Atlanta WordPress Users Group - Child Themes
PDF
Magento2 Basics for Frontend Development
PDF
Theming moodle technical
PPTX
DevCon - Branding the LMS for your institution - Michael Garner, Blackboard
PDF
Child Theme Frameworks
PDF
skintutorial
PDF
skintutorial
PDF
Evaluating Base Themes
PDF
Jim Tivy: The Localization Lifecycle
PPTX
Rockford WordPress Meetup - Child Themes
PDF
Coder son site web
Themes and layouts
Knowledge Management inside Alfresco
Creating Custom Templates for Joomla! 2.5
Bb Tour ANZ 2017 - Workshop - Enhancing Learn CSS
Le Wagon Tokyo | Build your Landing Page in 2 hours
Introduction to Drupal (7) Theming
Le Wagon - 2h Landing
Le Wagon - Landing page
Anatomy and Architecture of a WordPress Theme
April 2016 - Atlanta WordPress Users Group - Child Themes
Magento2 Basics for Frontend Development
Theming moodle technical
DevCon - Branding the LMS for your institution - Michael Garner, Blackboard
Child Theme Frameworks
skintutorial
skintutorial
Evaluating Base Themes
Jim Tivy: The Localization Lifecycle
Rockford WordPress Meetup - Child Themes
Coder son site web
Ad

More from Sergii Shymko (13)

PPTX
Magento 2 Changes Overview
PPTX
Magento 2 Composer for Extensions Distribution
PPTX
Developing Loosely Coupled Modules with Magento
PPTX
Black Magic of Code Generation in Magento 2
PPTX
Composer in Magento
PPTX
Magento 2 Code Migration Tool
PPTX
Magento 2 Composer for Extensions Distribution
PPTX
Magento Performance Toolkit
PPTX
Developing Loosely Coupled Modules with Magento
PPTX
Running Magento 1.x Extension on Magento 2
PPTX
Code Generation in Magento 2
PPTX
Composer for Magento 1.x and Magento 2
PPTX
Magento 1.x to Magento 2 Code Migration Tools
Magento 2 Changes Overview
Magento 2 Composer for Extensions Distribution
Developing Loosely Coupled Modules with Magento
Black Magic of Code Generation in Magento 2
Composer in Magento
Magento 2 Code Migration Tool
Magento 2 Composer for Extensions Distribution
Magento Performance Toolkit
Developing Loosely Coupled Modules with Magento
Running Magento 1.x Extension on Magento 2
Code Generation in Magento 2
Composer for Magento 1.x and Magento 2
Magento 1.x to Magento 2 Code Migration Tools

Recently uploaded (20)

DOCX
573137875-Attendance-Management-System-original
PPT
Mechanical Engineering MATERIALS Selection
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Artificial Intelligence
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Current and future trends in Computer Vision.pptx
PDF
Well-logging-methods_new................
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPT
Project quality management in manufacturing
PPT
introduction to datamining and warehousing
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
OOP with Java - Java Introduction (Basics)
573137875-Attendance-Management-System-original
Mechanical Engineering MATERIALS Selection
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Artificial Intelligence
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Current and future trends in Computer Vision.pptx
Well-logging-methods_new................
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Project quality management in manufacturing
introduction to datamining and warehousing
bas. eng. economics group 4 presentation 1.pptx
Lecture Notes Electrical Wiring System Components
UNIT 4 Total Quality Management .pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Digital Logic Computer Design lecture notes
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
OOP with Java - Java Introduction (Basics)

Magento 2 Enhanced Theme/Skin Localization

  • 1. Magento 2 Enhanced Theme/Skin Localization Sergii Shymko Software Engineer, Magento, a division of X.commerce, Inc. (an eBay company)
  • 2. Introduction • Theme/Skin – graphical appearance of an application • Magento distinguishes theme & skin – Responsibility – File types – Web-access
  • 3. Magento Theme • Theme – markup & text, blocks presence & rendering order • Theme files – dynamically processed, no web access
  • 4. Magento Skin • Skin – look and feel of a theme, colors & styles • Skin files – static, web-accessible
  • 5. Magento 1.x Design Configuration Text Fields
  • 6. Magento 1.x Skin • Skins are located separately from themes • Any skin can be chosen for any theme • Incompatible skin can be chosen for a theme “example” package“example” package “default” theme“default” theme “mobile” theme“mobile” theme “default” skin“default” skin “modern” skin“modern” skin “simple” skin“simple” skin
  • 7. • Skin belongs to one theme only • Skin files are located in a theme • Skin files web-access challenge “example” package“example” package Magento 2 Skin “default” theme“default” theme “mobile” theme“mobile” theme “default” skin“default” skin “modern” skin“modern” skin “simple” skin“simple” skin
  • 8. Magento 2 Design Configuration Package Theme Skin
  • 10. Example 1 • Logo variations – Default – German (de_DE locale) – French (fr_FR locale) – Brazilian (pt_BR locale) – …
  • 11. Magento 1.x Locale Configuration Admin Panel
  • 12. Magento 1.x Locale Configuration Text is translated Logo is NOT localized
  • 13. • New skin for every locale • Inconsistent configuration: locale + localized skin “example” package“example” package Magento 1.x "Localization Skins" “default” theme“default” theme “german” skin“german” skin “default” skin“default” skin “french” skin“french” skin
  • 14. • Skin provides files for multiple locales • Consistent configuration: locale “example” package“example” package Magento 2 Skin Files Localization “default” theme“default” theme “default” skin“default” skin “de_DE” locale“de_DE” locale “fr_FR” locale“fr_FR” locale
  • 15. Example 2 • Logo variations – Default – Christmas – New Year – Halloween – ... • Slogan variations – Default – German (de_DE) – Brazilian (pt_BR) – ...
  • 16. Halloween @ Magento Headquarters
  • 17. HOW TO SCHEDULE DESIGN FOR HOLIDAYS?
  • 18. Magento 1.x Design Change Rules • Custom theme can be specified • Skin “default” is used implicitly Package Theme Dates
  • 19. “example” package“example” package “default” theme“default” theme Magento 1.x Implementation “default” skin“default” skin slogan.png “german” skin“german” skin slogan.png “brazilian” skin“brazilian” skin slogan.png logo.png “christmas” theme“christmas” theme “default” skin“default” skin slogan.png logo.png “christmas_de_DE” theme“christmas_de_DE” theme “default” skin“default” skin slogan.png logo.png “christmas_pt_BR” theme“christmas_pt_BR” theme “default” skin“default” skin slogan.png logo.png “new_year” theme“new_year” theme “default” skin“default” skin slogan.png logo.png “new_year _de_DE” theme“new_year _de_DE” theme “default” skin“default” skin slogan.png logo.png “new_year _pt_BR” theme“new_year _pt_BR” theme “default” skin“default” skin slogan.png logo.png inheritance
  • 20. Lots of Copy & Paste
  • 21. Magento 2 Design Change Rules Package Theme Skin
  • 22. “example” package“example” package “default” theme“default” theme Magento 2 Implementation “default” skin“default” skin logo.png “de_DE” locale“de_DE” locale slogan.png slogan.png “pt_BR” locale“pt_BR” locale slogan.png “christmas” skin“christmas” skin logo.png “new_year” skin“new_year” skin logo.png “halloween” skin“halloween” skin logo.png inheritance
  • 23. Summary • Magento 2 – Skin belongs to a theme – Single design configuration field – Skin provides localized files – Consistent locale configuration – No skin files duplication
  • 25. Thank You! Q & A Sergii Shymko sshymko@ebay.com sergey@shymko.net

Editor's Notes

  • #4: Layouts Templates
  • #14: Magento 1.x skin files localization workaround
  • #16: Logo – image Slogan – fancy font & graphics