SlideShare ist ein Scribd-Unternehmen logo
1 von 67
Downloaden Sie, um offline zu lesen
Multilingual
Wordpress
Nov 15-16, 2014
WordCamp Toronto
Matt Smith
msmith@lingotek.com
smithworx
How to make
a WordPress site
multilingual!
● Out of the box
● Decisions, not options
● Design for the majority
● Clean, lean, and mean
● Striving for simplicity
● Deadlines are not arbitrary
● Vocal minority
WordPress Philosophy
https://wordpress.org/about/philosophy/
● Multilingual Basics
● Multilingual Site Audit
● Multilingual Plugins
○ One language per site (multisite)
○ One language per post
○ All languages in one post
● Additional Automation
Overview
Multilingual Basics
WordPress multilingual readiness,
terminology, and translation files
● WordPress core does not support bilingual
or multilingual out-of-the-box
● Plugins developed by the community
enable multilingual functionality
Multilingual in Wordpress
source: http://codex.wordpress.org/Multilingual_WordPress
( unilingual is supported )
● Internationalization (i18n) - the process
of preparing a plugin or theme to be
multilingual ready (e.g., using __(), _n())
● Localization (L10n) - the process of
adapting internationalized software for a
specific region or language (e.g., translation,
message)
Terminology
18 characters
10 characters
.pot (portable object template)
.po (portable object)
.mo (machine object)
Translation files
Internationalization (i18n)
No translations
Translations
__()
_e()
_x()
WordPress i18n
Basic translation functions
Any text that should be
translatable must be wrapped in
an i18n function
also echos the text
allows for context
translate() alias
for theme & plugin
developers
_x() _ex() _n()
esc_html__() esc_html_e()
esc_html_x() esc_attr__()
esc_attr_e() esc_attr_x()
WordPress i18n
Additional translation functions
These are used less frequently
for theme & plugin
developers
for theme & plugin
developers
1. Thou shalt not use PHP variables of any kind
inside a translation function’s strings.
2. Thou shalt always translate phrases and not
words.
3. Thou shalt disambiguate when needed.
WordPress i18n - Otto's Laws
"You're probably doing it wrong"
source: http://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong
● Translation - communication of the
meaning of a source-language text by
means of an equivalent target-language
text.
○ Machine translation (MT) - algorithmic
○ Human translation - professional
○ Crowd-sourced - ordinary people
Terminology - L10n
● Locale - combination of language and
regional identifier
● Examples
○ en_US English for the United States
○ fr_CA French for Canada
○ en_CA English for Canada
○ de_DE German for Germany
Terminology - L10n
Multilingual Audit
What is typically responsible for
the translatable content
on your website?
Multilingual Plugin
user generated content
Translation Files
theme, plugins, core
?
?
What is responsible for
the translatable content
on this page?
or
.po, .mo
Multilingual Plugin
user generated content
Translation Files
theme, plugins, core
?
?
What is responsible for
the translatable content
on this page?
or
.po, .mo
Multilingual Plugin
user generated content
Translation Files
theme, plugins, core
10
6
What is responsible for
the translatable content
on this page?
or
.po, .mo
Posts
Menus (or Post Title)
Strings
(site title,
plugin specific)
Categories
Multilingual Plugins
Which plugins extend Wordpress core
to provide multilingual capabilities?
● One language per site (multisite)
● One language per post
● All languages in one post
● Plugins that direct you to external
translation services: machine, community,
professional
Types of multilingual plugins
source: http://codex.wordpress.org/Multilingual_WordPress
German Chinese
Multisite:
one language per site
English
Stay tuned for next talk:
Multisite for Multilingual
Single site:
one language per post
German
site
post
English
Chinese
post
post
Single site:
all languages in one post
English
ChineseGerman
sitepost
German Chinese
Multisite:
one language per site
English
Stay tuned for next talk:
Multisite for Multilingual
Free
● Multisite Language Switcher
● Multilingual Press
● Zanto WP Translation
Multisite:
one language per site
Stay tuned for next talk:
Multisite for Multilingual
Multisite:
one language per site
Multilingual Press Zanto WP TranslationMultisite Language Switcher
Last updated: Oct 15, 2014
Stay tuned for next talk:
Multisite for Multilingual
Multisite Language Switcher
Stay tuned for next talk:
Multisite for Multilingual
Stay tuned for next talk:
Multisite for Multilingual
Stay tuned for next talk:
Multisite for Multilingual
Multilingual Press
Stay tuned for next talk:
Multisite for Multilingual
Zanto WP Translation
Stay tuned for next talk:
Multisite for Multilingual
Single site:
one language per post
German
site
post
English
Chinese
post
post
Free
● Polylang (+
Lingotek)
● xili-language
● Bogo
● Babble
Paid
● WPML
○ $29-$79/year, or
○ $195 one-time
Single site:
one language per post
Not in WP plugin
repository
Polylang xili-language Bogo
Single site:
one language per post - free
Last updated: Sep 24, 2014
Only uses WP core
database tables
(no extra tables)
Single site:
one language per post - paid
WPML Example
Single site:
one language per post - paid
WPML Example
Single site:
one language per post - paid
WPML Example
One post per language - paid
WPML Example
One post per language - paid
WPML Example
xili-language Example
Add content overview page in Polylang
Polylang
Polylang
Polylang ExamplePolylang
Babble
Babble
Babble
Babble
Single site:
all languages in one post
English
ChineseGerman
sitepost
Free
● qTranslate
● mqTranslate
mqTranslate adds:
- Protection of concurrent edits of different languages
- Language selection for editor accounts (allows translators
to see only their source and target languages)
Single site:
all languages in one post
All languages in one post
Last updated: Sep 24, 2014
qTranslate mqTranslate
All languages in one post
qTranslate / mqTranslate
● Less flexible
publishing
● Import/export
challenges
● Uninstallation can
be challenging
Comparison Overview
Pros
Cons
Multisite
One language
per post
All languages
in one post
● Each site has its
own posts
● Easy migration
● Flexible publishing
● More work to
manage all of the
different servers /
installations
● Translation
associations
● Non-cluttered edit
page
● Easy import/export *
● Flexible publishing
● Complex content
listing*
● Translation
associations
● Content type support*
● Side-by-side editing
● No additional tables
varies by plugin*
Additional Automation
Service Providers
● Prisna
● Transposh
● Polylang + Lingotek
● Global Translate WordPress
● mqTranslate
Machine Translation
Plugins for WordPress
● Transposh
● Polylang + Lingotek
Community Translation
Plugins for WordPress
● Polylang + Lingotek
● mqTranslate
● WPML
Professional Translation
Plugins for WordPress
Add mqTranslate screens.
qTranslate
Example
Professional
or Machine
qTranslate / mqTranslate
One post per language - paid
WPML Example
Add WPML Professional translation screenshots.
WPML Example
Polylang + Lingotek
Polylang + Lingotek
Polylang + Lingotek
Polylang + Lingotek
Polylang + Lingotek
Polylang + Lingotek
Polylang + Lingotek
Polylang + Lingotek
● Multilingual Basics
● Multilingual Site Audit
● Multilingual Plugins
○ One language per site (multisite)
○ One language per post
○ All languages in one post
● Additional Automation
Conclusion
Q & A

Weitere ähnliche Inhalte

Was ist angesagt?

How to create/improve OSS product and its community (revised)
How to create/improve OSS product and its community (revised)How to create/improve OSS product and its community (revised)
How to create/improve OSS product and its community (revised)
SATOSHI TAGOMORI
 

Was ist angesagt? (19)

Let's create a multilingual site in WordPress
Let's create a multilingual site in WordPressLet's create a multilingual site in WordPress
Let's create a multilingual site in WordPress
 
N tier web applications
N tier web applicationsN tier web applications
N tier web applications
 
What is PHP?
What is PHP?What is PHP?
What is PHP?
 
Advantages of Choosing PHP Web Development
Advantages of Choosing PHP Web DevelopmentAdvantages of Choosing PHP Web Development
Advantages of Choosing PHP Web Development
 
Drupalcamp Atlanta 2010 Internationalization Presentation
Drupalcamp Atlanta 2010 Internationalization PresentationDrupalcamp Atlanta 2010 Internationalization Presentation
Drupalcamp Atlanta 2010 Internationalization Presentation
 
Cgi perl
Cgi  perlCgi  perl
Cgi perl
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
 
How to create/improve OSS product and its community (revised)
How to create/improve OSS product and its community (revised)How to create/improve OSS product and its community (revised)
How to create/improve OSS product and its community (revised)
 
Barcelona Multilanguage
Barcelona MultilanguageBarcelona Multilanguage
Barcelona Multilanguage
 
Lollipop vs Marshmallow: What are the major differences?
Lollipop vs Marshmallow: What are the major differences?Lollipop vs Marshmallow: What are the major differences?
Lollipop vs Marshmallow: What are the major differences?
 
WordPress Code Architecture
WordPress Code ArchitectureWordPress Code Architecture
WordPress Code Architecture
 
Web to App:作業系統革命 Firefox OS
Web to App:作業系統革命  Firefox OSWeb to App:作業系統革命  Firefox OS
Web to App:作業系統革命 Firefox OS
 
PHP, LAMP Stack & WordPress
PHP, LAMP Stack & WordPressPHP, LAMP Stack & WordPress
PHP, LAMP Stack & WordPress
 
Multi language for php with gettext
Multi language for php with gettextMulti language for php with gettext
Multi language for php with gettext
 
Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015Advanced PHP Web Development Tools in 2015
Advanced PHP Web Development Tools in 2015
 
PHP LICTURES ..........
PHP LICTURES ..........PHP LICTURES ..........
PHP LICTURES ..........
 
Training ppt
Training pptTraining ppt
Training ppt
 
Translating Drupal
Translating DrupalTranslating Drupal
Translating Drupal
 
DevTeach Ottawa - Silverlight5 and HTML5
DevTeach Ottawa - Silverlight5 and HTML5DevTeach Ottawa - Silverlight5 and HTML5
DevTeach Ottawa - Silverlight5 and HTML5
 

Ähnlich wie Multilingual WordPress (WordCamp Toronto 2014)

Multi lingual implementations – drupal design approaches for different scenar...
Multi lingual implementations – drupal design approaches for different scenar...Multi lingual implementations – drupal design approaches for different scenar...
Multi lingual implementations – drupal design approaches for different scenar...
Drupal Camp Delhi
 
Babel and Beyond - Professional Multilingual Solutions with Drupal
Babel and Beyond - Professional Multilingual Solutions with DrupalBabel and Beyond - Professional Multilingual Solutions with Drupal
Babel and Beyond - Professional Multilingual Solutions with Drupal
Acquia
 

Ähnlich wie Multilingual WordPress (WordCamp Toronto 2014) (20)

wcdk - Making your WordPress Multilingual
wcdk - Making your WordPress Multilingualwcdk - Making your WordPress Multilingual
wcdk - Making your WordPress Multilingual
 
Managing a Local WordPress Community, WordCamp Europe 2016
Managing a Local WordPress Community, WordCamp Europe 2016Managing a Local WordPress Community, WordCamp Europe 2016
Managing a Local WordPress Community, WordCamp Europe 2016
 
Going Global - WordPress Multilingual
Going Global - WordPress MultilingualGoing Global - WordPress Multilingual
Going Global - WordPress Multilingual
 
Going Global WordPress Multilingual
Going Global WordPress MultilingualGoing Global WordPress Multilingual
Going Global WordPress Multilingual
 
WordPress Multilingual: Benefits and Considerations
WordPress Multilingual: Benefits and ConsiderationsWordPress Multilingual: Benefits and Considerations
WordPress Multilingual: Benefits and Considerations
 
Multilingual Drupal presentation from "Do it With Drupal"
Multilingual Drupal presentation from "Do it With Drupal"Multilingual Drupal presentation from "Do it With Drupal"
Multilingual Drupal presentation from "Do it With Drupal"
 
WordPress Multilingual: WordCamp Antwerp 2016
WordPress Multilingual: WordCamp Antwerp 2016WordPress Multilingual: WordCamp Antwerp 2016
WordPress Multilingual: WordCamp Antwerp 2016
 
WordPress News and #SaigonWordPress 2015 - Saigon WordPress - Jan 17, 2015
WordPress News and #SaigonWordPress 2015  - Saigon WordPress - Jan 17, 2015WordPress News and #SaigonWordPress 2015  - Saigon WordPress - Jan 17, 2015
WordPress News and #SaigonWordPress 2015 - Saigon WordPress - Jan 17, 2015
 
WordPress Internationalization, Localization and Multilingual - Do It Right
WordPress Internationalization, Localization and Multilingual - Do It RightWordPress Internationalization, Localization and Multilingual - Do It Right
WordPress Internationalization, Localization and Multilingual - Do It Right
 
Multilingual website in Drupal 8
Multilingual website in Drupal 8Multilingual website in Drupal 8
Multilingual website in Drupal 8
 
Multilingual WordPress With Polylang
Multilingual WordPress With PolylangMultilingual WordPress With Polylang
Multilingual WordPress With Polylang
 
Plone multi language
Plone multi languagePlone multi language
Plone multi language
 
Improving the MODX Documentation - March 29, 2019
Improving the MODX Documentation - March 29, 2019Improving the MODX Documentation - March 29, 2019
Improving the MODX Documentation - March 29, 2019
 
WordPress Fresh News - Saigon WordPress - Nov 29, 2014
WordPress Fresh News - Saigon WordPress - Nov 29, 2014WordPress Fresh News - Saigon WordPress - Nov 29, 2014
WordPress Fresh News - Saigon WordPress - Nov 29, 2014
 
Multilingual content with WordPress
Multilingual content with WordPressMultilingual content with WordPress
Multilingual content with WordPress
 
Introduction to PHP (SDPHP)
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)
 
Multi lingual implementations – drupal design approaches for different scenar...
Multi lingual implementations – drupal design approaches for different scenar...Multi lingual implementations – drupal design approaches for different scenar...
Multi lingual implementations – drupal design approaches for different scenar...
 
Building Multilingual Websites Using Joomla
Building Multilingual Websites Using JoomlaBuilding Multilingual Websites Using Joomla
Building Multilingual Websites Using Joomla
 
Multilingual Site Building with Drupal 7 at Drupal Camp NYC 10
Multilingual Site Building with Drupal 7 at Drupal Camp NYC 10Multilingual Site Building with Drupal 7 at Drupal Camp NYC 10
Multilingual Site Building with Drupal 7 at Drupal Camp NYC 10
 
Babel and Beyond - Professional Multilingual Solutions with Drupal
Babel and Beyond - Professional Multilingual Solutions with DrupalBabel and Beyond - Professional Multilingual Solutions with Drupal
Babel and Beyond - Professional Multilingual Solutions with Drupal
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
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
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Multilingual WordPress (WordCamp Toronto 2014)