SlideShare una empresa de Scribd logo
1 de 95
Descargar para leer sin conexión
Building Multilingual Websites
                    with Drupal 7



Wednesday, 11 January, 12
About Me
                             Suzanne Kennedy
                             Front-end Developer
                             Co-founder of Evolving Web in
                             Montreal
                             evolvingweb.ca
                             @suzanne_kennedy


Wednesday, 11 January, 12
Languages + Drupal

                       With Drupal, you can build:
               • Foreign Language Site
               • Multilingual Site
               • Multilingual Site with Translation

Wednesday, 11 January, 12
Languages + Drupal
                                  Foreign language site:

                                  •   Locale

                                  Multilingual site

                                  •   Internationalization (i18n) 

                                  Multilingual site with translation:

                                  •   Content Translation (Nodes)

                                  •   Entity Translation (Fields)


Wednesday, 11 January, 12
Questions before you start

                    • Is content symmetric across languages?
                    • How is untranslated content treated?
                    • Is language associated with location/region?
                    • How will the content/UI be translated?
                    • What is the default language of the site?

Wednesday, 11 January, 12
Symmetric Content




Wednesday, 11 January, 12
 
                       Asymmetric Content




Wednesday, 11 January, 12
Half-Symmetric Content




Wednesday, 11 January, 12
Untranslated Content




Wednesday, 11 January, 12
Does Language = Region




Wednesday, 11 January, 12
Translation Workflow




Wednesday, 11 January, 12
Types of Text to Translate



Wednesday, 11 January, 12
What Gets Translated?




Wednesday, 11 January, 12
Variables




Wednesday, 11 January, 12
Text from Modules




Wednesday, 11 January, 12
User-Entered Text Settings




Wednesday, 11 January, 12
Content: Nodes




Wednesday, 11 January, 12
Content: Entities




Wednesday, 11 January, 12
Text Groups




Wednesday, 11 January, 12
Setting up a Multilingual
                        Website


Wednesday, 11 January, 12
Installing Languages
                            Configuration > Regional & language > Languages




Wednesday, 11 January, 12
Language Detection & Selection
 Configuration > Regional & language > Languages > Detection and Selection




Wednesday, 11 January, 12
Types of UI Text

                    • Variables
                    • Built-in UI (provided by modules)
                    • Built-in UI (provided by you)



Wednesday, 11 January, 12
Variables



Wednesday, 11 January, 12
Wednesday, 11 January, 12
Selecting Variables
        Configuration > Regional & language > Multilingual Settings > Variables




Wednesday, 11 January, 12
Translating Variables




Wednesday, 11 January, 12
Non-Text Variables




Wednesday, 11 January, 12
Translating
                 Text Strings from Code



Wednesday, 11 January, 12
Text Strings from Code




Wednesday, 11 January, 12
Text Strings from Code
       Configuration > Regional & language > Translation Interface > Translate




Wednesday, 11 January, 12
Text Strings from Code




Wednesday, 11 January, 12
Translating
                            User-entered Strings



Wednesday, 11 January, 12
User-entered Strings




Wednesday, 11 January, 12
User-entered Strings




Wednesday, 11 January, 12
User-entered Strings
       Configuration > Regional & language > Translation Interface > Translate




Wednesday, 11 January, 12
User-entered Strings




Wednesday, 11 January, 12
Translating Content



Wednesday, 11 January, 12
Translating Content




Wednesday, 11 January, 12
Translating Content




Wednesday, 11 January, 12
Node Translation


                    • New node for each translation
                    • Nodes are mapped together
                    • Uses the Content Translation module (core)


Wednesday, 11 January, 12
Translating a Node




Wednesday, 11 January, 12
Wednesday, 11 January, 12
Wednesday, 11 January, 12
Wednesday, 11 January, 12
Field-Level Translation

                    • Translation of fields instead of nodes
                    • Entity Translation module (contrib)
                            provides the UI
                    • Fields are translatable in core


Wednesday, 11 January, 12
Example: Products




Wednesday, 11 January, 12
Example: Issues




Wednesday, 11 January, 12
Setting up Field Translation




Wednesday, 11 January, 12
Setting up Field Translation




Wednesday, 11 January, 12
Adding a Translation




Wednesday, 11 January, 12
Adding a Translation




Wednesday, 11 January, 12
Field Translation UI




Wednesday, 11 January, 12
Translating the Title




Wednesday, 11 January, 12
Translating the Title




Wednesday, 11 January, 12
Enabling Language Switcher




Wednesday, 11 January, 12
Comment Filtering




Wednesday, 11 January, 12
Comment Filtering




Wednesday, 11 January, 12
Translate Other Entities



Wednesday, 11 January, 12
Configure Entity Translation




Wednesday, 11 January, 12
Translate Users




Wednesday, 11 January, 12
Synchronize Translations




Wednesday, 11 January, 12
Views Translation Filters



Wednesday, 11 January, 12
Unfiltered View




Wednesday, 11 January, 12
Adding a Filter




Wednesday, 11 January, 12
Filtered Views




Wednesday, 11 January, 12
Translating Other Elements



Wednesday, 11 January, 12
Other Elements to Translate

                    • Blocks
                    • Field elements (i.e. help text, default values,
                            options)
                    • Menu items
                    • Taxonomy terms
                    • Paths
Wednesday, 11 January, 12
Blocks



Wednesday, 11 January, 12
Block Translation

               • Translate custom blocks
               • Uses the Block Translation module in the
                       i18n suite
               • Allows you to target blocks for certain
                       languages



Wednesday, 11 January, 12
Block Translation




Wednesday, 11 January, 12
Block Translation UI




Wednesday, 11 January, 12
Blocks Per Language




Wednesday, 11 January, 12
Field Translation
                              (translating field settings)




Wednesday, 11 January, 12
Field Translation

               • Translating field settings (label, help text,
                       default text)
               • Uses the Field Translation module in the i18n
                       suite
               • Only translates core field settings (not date
                       fields, file fields, etc.)



Wednesday, 11 January, 12
Field Translation




Wednesday, 11 January, 12
Field Translation




Wednesday, 11 January, 12
Menu Items



Wednesday, 11 January, 12
Menu Translation


               • Allows you to translate menu items OR
                       target a menu at a single language
               • Uses Menu Translation module in the i18n
                       suite




Wednesday, 11 January, 12
Menu Translation
               Menu Options:
               • Fixed Language
               • Translate and Localize
               Menu items
               • Linked to nodes
               • Translate custom menu items
Wednesday, 11 January, 12
Menu Translation




Wednesday, 11 January, 12
Menu Translation




Wednesday, 11 January, 12
Taxonomy



Wednesday, 11 January, 12
Options per Vocabulary




Wednesday, 11 January, 12
Translating a Term




Wednesday, 11 January, 12
Other Multilingual Modules



Wednesday, 11 January, 12
Localization Update




Wednesday, 11 January, 12
Localization Client




Wednesday, 11 January, 12
Translation Overview




Wednesday, 11 January, 12
Challenges

                    • Choosing contributed modules
                    • Translating custom elements (Webforms)
                    • Multilingual audiences
                    • Improve Translation UI
                    • Out-sourced translation workflows
                    • Keeping track of UI strings to translate

Wednesday, 11 January, 12
What’s Next?



Wednesday, 11 January, 12
D8 Multilingual Initiative




Wednesday, 11 January, 12
Learn More




Wednesday, 11 January, 12
Learn More
                            evolvingweb.ca/training




Wednesday, 11 January, 12
Resources
               Documentation on drupal.org
               http://drupal.org/documentation/multilingual

               My Blog Posts about D7 Multilingual
               http://evolvingweb.ca/story/drupal-7-multilingual-whats-new-i18n
               http://evolvingweb.ca/story/content-translation-drupal-7

               Gabor Hojtsy's Posts about Multilingual D7
               http://hojtsy.hu/blog/2011-jan-19/drupal-7039s-new-multilingual-systems-part-1-
               basics

               Presentation at DrupalCon London
               http://london2011.drupal.org/conference/sessions/multilingual-drupal-solutions-use-
               cases-and-modules

               Drupal 8 Multilingual Initiative (with Video)
               http://drupal.org/node/1260534




Wednesday, 11 January, 12

Más contenido relacionado

Más de Acquia

Más de Acquia (20)

May Partner Bootcamp 2022
May Partner Bootcamp 2022May Partner Bootcamp 2022
May Partner Bootcamp 2022
 
April Partner Bootcamp 2022
April Partner Bootcamp 2022April Partner Bootcamp 2022
April Partner Bootcamp 2022
 
How to Unify Brand Experience: A Hootsuite Story
How to Unify Brand Experience: A Hootsuite Story How to Unify Brand Experience: A Hootsuite Story
How to Unify Brand Experience: A Hootsuite Story
 
Using Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CX
Using Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CXUsing Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CX
Using Personas to Guide DAM Results: How Life Time Pumped Up Their UX and CX
 
Improve Code Quality and Time to Market: 100% Cloud-Based Development Workflow
Improve Code Quality and Time to Market: 100% Cloud-Based Development WorkflowImprove Code Quality and Time to Market: 100% Cloud-Based Development Workflow
Improve Code Quality and Time to Market: 100% Cloud-Based Development Workflow
 
September Partner Bootcamp
September Partner BootcampSeptember Partner Bootcamp
September Partner Bootcamp
 
August partner bootcamp
August partner bootcampAugust partner bootcamp
August partner bootcamp
 
July 2021 Partner Bootcamp
July  2021 Partner BootcampJuly  2021 Partner Bootcamp
July 2021 Partner Bootcamp
 
May Partner Bootcamp
May Partner BootcampMay Partner Bootcamp
May Partner Bootcamp
 
DRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASY
DRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASYDRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASY
DRUPAL 7 END OF LIFE IS NEAR - MIGRATE TO DRUPAL 9 FAST AND EASY
 
Work While You Sleep: The CMO’s Guide to a 24/7/365 Lead Machine
Work While You Sleep: The CMO’s Guide to a 24/7/365 Lead MachineWork While You Sleep: The CMO’s Guide to a 24/7/365 Lead Machine
Work While You Sleep: The CMO’s Guide to a 24/7/365 Lead Machine
 
Acquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B Leads
Acquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B LeadsAcquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B Leads
Acquia webinar: Leveraging Drupal to Bury Your Sales Team In B2B Leads
 
April partner bootcamp deck cookieless future
April partner bootcamp deck  cookieless futureApril partner bootcamp deck  cookieless future
April partner bootcamp deck cookieless future
 
How to enhance cx through personalised, automated solutions
How to enhance cx through personalised, automated solutionsHow to enhance cx through personalised, automated solutions
How to enhance cx through personalised, automated solutions
 
DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...
DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...
DRUPAL MIGRATIONS AND DRUPAL 9 INNOVATION: HOW PAC-12 DELIVERED DIGITALLY FOR...
 
Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021
Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021
Customer Experience (CX): 3 Key Factors Shaping CX Redesign in 2021
 
Leave Local Dev Behind: Start Writing Your Code In The Cloud
Leave Local Dev Behind: Start Writing Your Code In The CloudLeave Local Dev Behind: Start Writing Your Code In The Cloud
Leave Local Dev Behind: Start Writing Your Code In The Cloud
 
Overwhelmed with data from different sources and systems?
Overwhelmed with data from different sources and systems?Overwhelmed with data from different sources and systems?
Overwhelmed with data from different sources and systems?
 
You've got a CDP, so what?
You've got a CDP, so what?You've got a CDP, so what?
You've got a CDP, so what?
 
CDP vs CRM - What's the difference?
CDP vs CRM - What's the difference?CDP vs CRM - What's the difference?
CDP vs CRM - What's the difference?
 

Último

Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
Nauman Safdar
 
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan CytotecJual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
ZurliaSoop
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
vineshkumarsajnani12
 

Último (20)

Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
WheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond InsightsWheelTug Short Pitch Deck 2024 | Byond Insights
WheelTug Short Pitch Deck 2024 | Byond Insights
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business Potential
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
 
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
Escorts in Nungambakkam Phone 8250092165 Enjoy 24/7 Escort Service Enjoy Your...
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investors
 
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All TimeCall 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
Call 7737669865 Vadodara Call Girls Service at your Door Step Available All Time
 
PARK STREET 💋 Call Girl 9827461493 Call Girls in Escort service book now
PARK STREET 💋 Call Girl 9827461493 Call Girls in  Escort service book nowPARK STREET 💋 Call Girl 9827461493 Call Girls in  Escort service book now
PARK STREET 💋 Call Girl 9827461493 Call Girls in Escort service book now
 
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan CytotecJual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1
 
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
 
Cannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 UpdatedCannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 Updated
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
 
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service AvailableBerhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
Berhampur Call Girl Just Call 8084732287 Top Class Call Girl Service Available
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
Lucknow Housewife Escorts by Sexy Bhabhi Service 8250092165
Lucknow Housewife Escorts  by Sexy Bhabhi Service 8250092165Lucknow Housewife Escorts  by Sexy Bhabhi Service 8250092165
Lucknow Housewife Escorts by Sexy Bhabhi Service 8250092165
 

Building Multilingual Sites with Drupal 7