WordPress: Internationalization
1h 23mIntermediate2023-05-25
Authors

Carrie Dils
Development, WordPress
Course details
The WordPress content management system powers over 40% of the web. And the WordPress user base and developer network isn't limited to English–WordPress is global software supporting a variety of languages, and its internationalization features allow developers to configure their code so they can be easily translated for any locale. In this course, Carrie Dils introduces the specific functions and tools WordPress developers can use to make their code translatable to any language. Join Carrie as she shows how to work with various translation functions in WordPress, how to make themes and plugins translatable, and even generate language files. Plus, if you know another language, find out how you can help the entire WordPress community by contributing to the WordPress translation project on GlotPress, an open-source platform used to translate WordPress.
Skills covered
WordPressContent Management Systems (CMS)Front-End Web DevelopmentWeb DevelopmentOpen SourceOne-Off
Concepts
0. Introduction
- 01 - WordPress internationalization
- 02 - What you need to know
- 03 - Project overview and exercise files
1. Introducing Internationalization
- 04 - What is internationalization
- 05 - Why internationalize code
- 06 - Internationalization vs. localization
2. Internationalization Concepts
- 07 - What is gettext
- 08 - Using text domains
- 09 - Translation functions
3. Working with Translation Functions in PHP
- 10 - Translating strings
- 11 - Translate HTML
- 12 - Use placeholders
- 13 - Argument swapping
- 14 - Working with plurals
- 15 - Adding context
4. Working with Translation Functions in JavaScript
- 16 - Including wp-i18n
- 17 - Using translation functions
- 18 - Loading translations
5. Make a Plugin Translation-Ready
- 19 - Introducing the project
- 20 - Best practices for internationalization
- 21 - Add text domain and set domain path
- 22 - Add translation functions to PHP
- 23 - Create and enqueue a script with wp18n
- 24 - Add translation functions to JavaScript
- 25 - Create a translation file
- 26 - Include an additional translation with your plugin
- 27 - Generate MO and JSON files
- 28 - Load translations
6. Advanced Concepts
- 29 - Automating text domains
- 30 - Language packs
- 31 - Internationalization Security
7. Contributing to Open Source
- 32 - Translating for WordPress with GlotPress
- 33 - Contributing to GlotPress
Conclusion
- 34 - What next
Related courses
- No-Code Solutions for Web Sites and Apps
- Upgrading Legacy WordPress Projects: Modernize Workflows and Codebase
- Build and Manage a WordPress Multisite
- Custom WordPress Plugins: Design, Develop, and Distribute
- PHP for WordPress
- WordPress Essential Training
- WordPress: Mastering Full Site Editing
- Technical WordPress SEO