Slide 1

Slide 1 text

Recent I18N Improvements in WordPress Core

Slide 2

Slide 2 text

Language Packs

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

WordPress 4.6

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

load_plugin_textdomain( 'myplugin', false, 'languages' )

Slide 7

Slide 7 text

Good bye, load_plugin_textdomain()

Slide 8

Slide 8 text

Just-in-time Loading for Translations

Slide 9

Slide 9 text

WordPress 4.7

Slide 10

Slide 10 text

User Admin Language

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

Back End: Français Front End: English

Slide 13

Slide 13 text

Locale Switching

Slide 14

Slide 14 text

$switched = switch_to_locale( get_user_locale() ) // Do stuff. if ( $switched ) { restore_previous_locale(); }

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Beyond

Slide 17

Slide 17 text

Preferred Languages

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

JavaScript Internationalisation

Slide 20

Slide 20 text

// PHP: wp_localize_script( 'myplugin-script', '_myPluginL10n', array( 'helloWorld' => __( 'Hello World','myplugin' ) ) ); // JS: alert( _myPluginL10n.helloWorld );

Slide 21

Slide 21 text

wp.i18n.__( 'Hello World' )

Slide 22

Slide 22 text

User Timezones

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Thanks!