SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Downloaden Sie, um offline zu lesen
Creating a multilingual site 
with WPML 
+ 
Anthony Hortin 
@maddisondesigns 
maddisondesigns.com
About me 
Designer/Developer @ Maddison Designs 
! 
WordPress Theme & Plugin Developer 
! 
WordPress Theme & Plugin Directory contributor 
! 
Provides support on official WordPress Support Forum 
! 
Created Easy WP Guide (over 100K downloads) 
! 
Co-Organiser Melbourne WordPress WordCamp 2013 
! 
Co-Organiser for monthly WP Melbourne WordPress Meetups
Last month [May 2014], for the first time 
in history, the non-English downloads of 
WordPress passed the English downloads. 
In the future, if we do our job right, the 
usage of WordPress will democratise 
publishing. It will resemble every language 
in the world. “ 
— Matt Mullenweg
Making your Dashboard Multilingual
Changing (Dashboard) languages is now even easier
Making your theme Translatable 
__( $text, $domain ) 
(two underscores) 
$translated = __( ‘Hello World!’, ‘mytextdomain’ ); 
The most basic translation function. Returns the text in the 
correct language.
_e( $text, $domain ) 
_e( ‘Some text to translate and display.’, ‘mytextdomain’ ); 
The same as __() except it echoes the text instead of returning 
the value.
_n( $single, $plural, $number, $domain ) 
_n( ‘There is a comment’, ‘There are comments’, get_comments_number(), ‘mytextdomain’ ); 
Return the plural or single form based on the $number
_x( $text, $context, $domain ) 
_x( ‘post link’, ‘A link to the post’, ‘mytextdomain’ ); 
_x( ‘post link’, ‘Submit a link’, ‘mytextdomain’ ); 
Used when there’s the chance the text could be found in more 
than two places, but with different context. Allows you to 
provide a short description to clarify the text being translated.
_ex( $text, $context, $domain ) 
_ex( ‘post link’, ‘A link to the post’, ‘mytextdomain’ ); 
_ex( ‘post link’, ‘Submit a link’, ‘mytextdomain’ ); 
The same as _x() except it echoes the text instead of returning 
the value.
_nx( $single, $plural, $number, $context, $domain ) 
_nx( ‘A comment!’, ‘Yay! Multiple comments!’, $number, ‘Comments title’, ‘mytextdomain’ ); 
A hybrid of _n() and _x(). It supports contexts and plurals.
Making your Content Translatable 
With the WPML plugins, you can… 
! 
- provide your content in over 40 languages 
! 
- give your site visitors handy tools like ‘language switchers’ 
! 
- access powerful translation management tools 
! 
- get easy access to professional translators (for a cost) 
! 
- make your WooCommerce store multilingual 
! 
- translate theme & plugin texts
After activating, click Configure to step through the setup process
Select your primary language
Select the languages your want to provide on your site
Set the Language Switcher options
When editing content, you now have a new Language panel
Add your content for each of your langauges
Easily view which pages have been translated
Easily switch views on the front-end with the language switchers
Voilà, c'est français! C'est bon!
You can only switch languages on pages that are translated
Where to Go for Help 
Translating WordPress 
http://codex.wordpress.org/Translating_WordPress 
! 
Official WordPress Translators Team Blog 
http://make.wordpress.org/polyglots 
WPML 
http://wpml.org 
! 
WPML Getting Started Guide 
http://wpml.org/documentation/getting-started-guide 
! 
Translating your Theme 
http://code.tutsplus.com/tutorials/translating-your-theme--wp-25014
Questions? 
I’m Anthony Hortin 
You can find me here 
! 
@maddisondesigns 
maddisondesigns.com 
! 
@easywpguide 
easywpguide.com 
! 
! 
! 
!

Weitere ähnliche Inhalte

Ähnlich wie Creating a multilingual site with WPML

WordPress internationalization, localization, and multilingual
WordPress internationalization, localization, and multilingualWordPress internationalization, localization, and multilingual
WordPress internationalization, localization, and multilingual
mbigul
 
Your Business. Your Language. Your Code - dpc13
Your Business. Your Language. Your Code - dpc13Your Business. Your Language. Your Code - dpc13
Your Business. Your Language. Your Code - dpc13
Stephan Hochdörfer
 

Ähnlich wie Creating a multilingual site with WPML (20)

WordPress Theme Workshop: Internationalization
WordPress Theme Workshop: InternationalizationWordPress Theme Workshop: Internationalization
WordPress Theme Workshop: Internationalization
 
Writing Multilingual Plugins and Themes - WCMIA 2016
Writing Multilingual Plugins and Themes - WCMIA 2016Writing Multilingual Plugins and Themes - WCMIA 2016
Writing Multilingual Plugins and Themes - WCMIA 2016
 
WordPress Plugin Localization
WordPress Plugin LocalizationWordPress Plugin Localization
WordPress Plugin Localization
 
What is the Responsibility of Plugin Developers?
What is the Responsibility of Plugin Developers?What is the Responsibility of Plugin Developers?
What is the Responsibility of Plugin Developers?
 
WordCamp Lancaster 2014: A11Y? I18N? L10N? UTF8? WTF?
WordCamp Lancaster 2014: A11Y? I18N? L10N? UTF8? WTF?WordCamp Lancaster 2014: A11Y? I18N? L10N? UTF8? WTF?
WordCamp Lancaster 2014: A11Y? I18N? L10N? UTF8? WTF?
 
MWLUG 2017 - Elementary!
MWLUG 2017 - Elementary!MWLUG 2017 - Elementary!
MWLUG 2017 - Elementary!
 
MAKE YOUR THEMES AND PLUGINS READY FOR TRANSLATION
MAKE YOUR THEMES AND PLUGINS READY FOR TRANSLATIONMAKE YOUR THEMES AND PLUGINS READY FOR TRANSLATION
MAKE YOUR THEMES AND PLUGINS READY FOR TRANSLATION
 
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"
 
Translating WordPress themes and plugins WordCamp Bhopal 2015
Translating WordPress themes and plugins WordCamp Bhopal 2015Translating WordPress themes and plugins WordCamp Bhopal 2015
Translating WordPress themes and plugins WordCamp Bhopal 2015
 
Creating Multilingual WordPress Websites
Creating Multilingual WordPress WebsitesCreating Multilingual WordPress Websites
Creating Multilingual WordPress Websites
 
Typography for WordPress
Typography for WordPressTypography for WordPress
Typography for WordPress
 
WordPress Theme & Plugin i18n & L10n
WordPress Theme & Plugin i18n & L10nWordPress Theme & Plugin i18n & L10n
WordPress Theme & Plugin i18n & L10n
 
Creating Multilingual WordPress Websites
Creating Multilingual WordPress WebsitesCreating Multilingual WordPress Websites
Creating Multilingual WordPress Websites
 
Drupalcamp Atlanta 2010 Internationalization Presentation
Drupalcamp Atlanta 2010 Internationalization PresentationDrupalcamp Atlanta 2010 Internationalization Presentation
Drupalcamp Atlanta 2010 Internationalization Presentation
 
WCRI 2015 I18N L10N
WCRI 2015 I18N L10NWCRI 2015 I18N L10N
WCRI 2015 I18N L10N
 
Multilingualism tutorial : rubedo cms
Multilingualism tutorial : rubedo cmsMultilingualism tutorial : rubedo cms
Multilingualism tutorial : rubedo cms
 
WordPress internationalization, localization, and multilingual
WordPress internationalization, localization, and multilingualWordPress internationalization, localization, and multilingual
WordPress internationalization, localization, and multilingual
 
What if-your-application-could-speak, by Marcos Silveira
What if-your-application-could-speak, by Marcos SilveiraWhat if-your-application-could-speak, by Marcos Silveira
What if-your-application-could-speak, by Marcos Silveira
 
What if-your-application-could-speak
What if-your-application-could-speakWhat if-your-application-could-speak
What if-your-application-could-speak
 
Your Business. Your Language. Your Code - dpc13
Your Business. Your Language. Your Code - dpc13Your Business. Your Language. Your Code - dpc13
Your Business. Your Language. Your Code - dpc13
 

Mehr von Anthony Hortin

Mehr von Anthony Hortin (20)

Why you should be using WordPress child themes
Why you should be using WordPress child themesWhy you should be using WordPress child themes
Why you should be using WordPress child themes
 
Working with WooCommerce Custom Fields
Working with WooCommerce Custom FieldsWorking with WooCommerce Custom Fields
Working with WooCommerce Custom Fields
 
WordPress Gutenberg
WordPress GutenbergWordPress Gutenberg
WordPress Gutenberg
 
Developing for the WordPress Customizer
Developing for the WordPress CustomizerDeveloping for the WordPress Customizer
Developing for the WordPress Customizer
 
Developing For The WordPress Customizer
Developing For The WordPress CustomizerDeveloping For The WordPress Customizer
Developing For The WordPress Customizer
 
Introduction to Advanced Custom Fields
Introduction to Advanced Custom FieldsIntroduction to Advanced Custom Fields
Introduction to Advanced Custom Fields
 
The Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child ThemesThe Why, When, How of WordPress Child Themes
The Why, When, How of WordPress Child Themes
 
Essential plugins for your WordPress Website
Essential plugins for your WordPress WebsiteEssential plugins for your WordPress Website
Essential plugins for your WordPress Website
 
Building a Membership Site with WooCommerce Memberships
Building a Membership Site with WooCommerce MembershipsBuilding a Membership Site with WooCommerce Memberships
Building a Membership Site with WooCommerce Memberships
 
Building a Membership Site with WooCommerce
Building a Membership Site with WooCommerceBuilding a Membership Site with WooCommerce
Building a Membership Site with WooCommerce
 
Getting to Grips with Firebug
Getting to Grips with FirebugGetting to Grips with Firebug
Getting to Grips with Firebug
 
Getting to Know WordPress May 2015
Getting to Know WordPress May 2015Getting to Know WordPress May 2015
Getting to Know WordPress May 2015
 
25 WordPress Plugins to Complement Your Site
25 WordPress Plugins to Complement Your Site25 WordPress Plugins to Complement Your Site
25 WordPress Plugins to Complement Your Site
 
WordCamp San Francisco & WooCommerce Conference Recap
WordCamp San Francisco & WooCommerce Conference RecapWordCamp San Francisco & WooCommerce Conference Recap
WordCamp San Francisco & WooCommerce Conference Recap
 
WordPress Visual Editor Mastery
WordPress Visual Editor MasteryWordPress Visual Editor Mastery
WordPress Visual Editor Mastery
 
Getting to know WordPress
Getting to know WordPressGetting to know WordPress
Getting to know WordPress
 
Do's & Don'ts for WordPress Theme Development
Do's & Don'ts for WordPress Theme DevelopmentDo's & Don'ts for WordPress Theme Development
Do's & Don'ts for WordPress Theme Development
 
Getting Started with WooCommerce
Getting Started with WooCommerceGetting Started with WooCommerce
Getting Started with WooCommerce
 
Submitting to the WordPress Theme Directory
Submitting to the WordPress Theme DirectorySubmitting to the WordPress Theme Directory
Submitting to the WordPress Theme Directory
 
WordPress Queries - the right way
WordPress Queries - the right wayWordPress Queries - the right way
WordPress Queries - the right way
 

Kürzlich hochgeladen

哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
ayvbos
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Monica Sydney
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 

Kürzlich hochgeladen (20)

哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
 
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call GirlsMira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
 
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime BalliaBallia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime NagercoilNagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
 

Creating a multilingual site with WPML

  • 1. Creating a multilingual site with WPML + Anthony Hortin @maddisondesigns maddisondesigns.com
  • 2. About me Designer/Developer @ Maddison Designs ! WordPress Theme & Plugin Developer ! WordPress Theme & Plugin Directory contributor ! Provides support on official WordPress Support Forum ! Created Easy WP Guide (over 100K downloads) ! Co-Organiser Melbourne WordPress WordCamp 2013 ! Co-Organiser for monthly WP Melbourne WordPress Meetups
  • 3. Last month [May 2014], for the first time in history, the non-English downloads of WordPress passed the English downloads. In the future, if we do our job right, the usage of WordPress will democratise publishing. It will resemble every language in the world. “ — Matt Mullenweg
  • 4. Making your Dashboard Multilingual
  • 5.
  • 6. Changing (Dashboard) languages is now even easier
  • 7. Making your theme Translatable __( $text, $domain ) (two underscores) $translated = __( ‘Hello World!’, ‘mytextdomain’ ); The most basic translation function. Returns the text in the correct language.
  • 8. _e( $text, $domain ) _e( ‘Some text to translate and display.’, ‘mytextdomain’ ); The same as __() except it echoes the text instead of returning the value.
  • 9. _n( $single, $plural, $number, $domain ) _n( ‘There is a comment’, ‘There are comments’, get_comments_number(), ‘mytextdomain’ ); Return the plural or single form based on the $number
  • 10. _x( $text, $context, $domain ) _x( ‘post link’, ‘A link to the post’, ‘mytextdomain’ ); _x( ‘post link’, ‘Submit a link’, ‘mytextdomain’ ); Used when there’s the chance the text could be found in more than two places, but with different context. Allows you to provide a short description to clarify the text being translated.
  • 11. _ex( $text, $context, $domain ) _ex( ‘post link’, ‘A link to the post’, ‘mytextdomain’ ); _ex( ‘post link’, ‘Submit a link’, ‘mytextdomain’ ); The same as _x() except it echoes the text instead of returning the value.
  • 12. _nx( $single, $plural, $number, $context, $domain ) _nx( ‘A comment!’, ‘Yay! Multiple comments!’, $number, ‘Comments title’, ‘mytextdomain’ ); A hybrid of _n() and _x(). It supports contexts and plurals.
  • 13. Making your Content Translatable With the WPML plugins, you can… ! - provide your content in over 40 languages ! - give your site visitors handy tools like ‘language switchers’ ! - access powerful translation management tools ! - get easy access to professional translators (for a cost) ! - make your WooCommerce store multilingual ! - translate theme & plugin texts
  • 14. After activating, click Configure to step through the setup process
  • 16. Select the languages your want to provide on your site
  • 17. Set the Language Switcher options
  • 18. When editing content, you now have a new Language panel
  • 19. Add your content for each of your langauges
  • 20. Easily view which pages have been translated
  • 21. Easily switch views on the front-end with the language switchers
  • 23. You can only switch languages on pages that are translated
  • 24. Where to Go for Help Translating WordPress http://codex.wordpress.org/Translating_WordPress ! Official WordPress Translators Team Blog http://make.wordpress.org/polyglots WPML http://wpml.org ! WPML Getting Started Guide http://wpml.org/documentation/getting-started-guide ! Translating your Theme http://code.tutsplus.com/tutorials/translating-your-theme--wp-25014
  • 25.
  • 26. Questions? I’m Anthony Hortin You can find me here ! @maddisondesigns maddisondesigns.com ! @easywpguide easywpguide.com ! ! ! !