Take your WordPress site worldwide. Use the built-in internationalization features and functions to make your themes and plugins translation-ready.
Overview
Syllabus
Introduction
- WordPress internationalization
- What you need to know
- Project overview and exercise files
- What is internationalization?
- Why internationalize code?
- Internationalization vs. localization
- What is gettext?
- Using text domains
- Translation functions
- Translating strings
- Translate HTML
- Use placeholders
- Argument swapping
- Working with plurals
- Adding context
- Including wp-i18n
- Using translation functions
- Loading translations
- Introducing the project
- Best practices for internationalization
- Add text domain and set domain path
- Add translation functions to PHP
- Create and enqueue a script with wp18n
- Add translation functions to JavaScript
- Create a translation file
- Include an additional translation with your plugin
- Generate MO and JSON files
- Load translations
- Automating text domains
- Language packs
- Internationalization Security
- Translating for WordPress with GlotPress
- Contributing to GlotPress
- What next?
Taught by
Carrie Dils