Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WordPress Internationalization Workflows

WordPress Internationalization Workflows

With WordPress 5.0 and its new block editor on the horizon, I've updated this talk with new information regarding the JavaScript internationalization functionality in WordPress core.

In this presentation I'm explaining how internationalization and localization work in WordPress and how one can leverage the powers of WordPress, GlotPress, and WP-CLI to improve the translation workflow in their WordPress projects.

Pascal Birchler

November 24, 2018
Tweet

More Decks by Pascal Birchler

Other Decks in Technology

Transcript

  1. <?php /** * Plugin Name: My Super Awesome Plugin *

    Plugin URI: https://wordpress.org/plugins/my-plugin/ * Description: My WordPress plugin that does nothing. * Version: 1.0.0 * Author: Pascal Birchler * Author URI: https://pascalbirchler.com */ __( 'Translate me', 'my-plugin' );
  2. === My Super Awesome Plugin === Contributors: swissspidy Requires at

    least: 4.6 Stable tag: 1.0.0 License: GPLv2 or later My WordPress plugin that does nothing.
  3. <?php /** * Plugin Name: My Super Awesome Plugin *

    Plugin URI: https://wordpress.org/plugins/my-plugin/ * Description: My WordPress plugin that does nothing. * Version: 1.0.0 * Author: Pascal Birchler * Author URI: https://pascalbirchler.com */ __( 'Translate me', 'my-plugin' );
  4. WordPress.org Private Plugin - Very easy to use - Translation

    Platform - Just-in-time Translation Loading - Complicated process - String Extraction - No Translation Community - Manual Translation Loading
  5. WordPress.org & Traduttore Private Plugin - Very easy to use

    - Translation Platform - Just-in-time Translation Loading - JSON Translation Files - Complicated process - String Extraction - No Translation Community - Manual Translation Loading