Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

Pascal Birchler
 @swissspidy

Slide 3

Slide 3 text

What You Will Learn Today

Slide 4

Slide 4 text

WordPress + Internationalization

Slide 5

Slide 5 text

Making a Plugin Translation-Ready

Slide 6

Slide 6 text

Internationalization Workflow Optimization

Slide 7

Slide 7 text

Terminology

Slide 8

Slide 8 text

The process of creating a product in such a way that it can be easily adapted to specific local languages and cultures Internationalization (I18N)

Slide 9

Slide 9 text

The process of adapting a product or service to a particular language, culture, and desired local “look-and-feel.” Localization (L10N)

Slide 10

Slide 10 text

“Localization is like translation but with a cultural twist” Localization

Slide 11

Slide 11 text

Defines the language, region, and cultural preferences. Locale

Slide 12

Slide 12 text

WordPress I18N Efforts

Slide 13

Slide 13 text

Making WordPress Global

Slide 14

Slide 14 text

translate.wordpress.org

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

translate.wordpress.org glotpress.blog poedit.net

Slide 18

Slide 18 text

Language Packs

Slide 19

Slide 19 text

User Locales

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

WordPress Plugin Internationalization Behind the Scenes

Slide 22

Slide 22 text

WordPress Plugin Internationalization WordPress.org

Slide 23

Slide 23 text

Writing a Plugin

Slide 24

Slide 24 text

my-plugin/ my-plugin.php readme.txt

Slide 25

Slide 25 text

Slide 26

Slide 26 text

=== 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.

Slide 27

Slide 27 text

WordPress.org Plugin Directory

Slide 28

Slide 28 text

wordpress.org/plugins/my-plugin

Slide 29

Slide 29 text

translate.wordpress.org

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

wp-content/ languages/ my-plugin-de_DE.mo my-plugin-de_DE.po

Slide 32

Slide 32 text

1. Write Plugin 2. Submit to WordPres.org 3. Translate 4. Done!

Slide 33

Slide 33 text

WordPress Plugin Internationalization Private Plugin

Slide 34

Slide 34 text

Writing a Plugin

Slide 35

Slide 35 text

String Extraction

Slide 36

Slide 36 text

Slide 37

Slide 37 text

makepot grunt-wp-i18n Poedit

Slide 38

Slide 38 text

my-plugin/ my-plugin.php languages/ my-plugin.pot

Slide 39

Slide 39 text

Manual Translation

Slide 40

Slide 40 text

my-plugin/ my-plugin.php languages/ my-plugin.pot my-plugin-de_DE.po my-plugin-de_DE.mo

Slide 41

Slide 41 text

load_plugin_textdomain( 'my-plugin', false, __DIR__ . '/languages' )

Slide 42

Slide 42 text

1. Write Plugin 2. String Extraction 3. Translate 4. Load Translations 5. Done!

Slide 43

Slide 43 text

Comparison

Slide 44

Slide 44 text

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

Slide 45

Slide 45 text

Introducing Traduttore

Slide 46

Slide 46 text

WordPress.org For Everyone

Slide 47

Slide 47 text

translate.wordpress.org For Everyone

Slide 48

Slide 48 text

How it Works

Slide 49

Slide 49 text

WP-CLI

Slide 50

Slide 50 text

# Create a POT file for the WordPress plugin in the current directory $ wp i18n make-pot . languages/my-plugin.pot

Slide 51

Slide 51 text

github.com/wp-cli/i18n-command

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

Required\Traduttore_Registry\add_project( 'plugin', 'my-plugin', 'https://translate.example.com/api/translations/my-plugin/' );

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

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

Slide 56

Slide 56 text

required.com/en/blog/

Slide 57

Slide 57 text

github.com/wearerequired/traduttore github.com/wearerequired/traduttore-registry

Slide 58

Slide 58 text

What's Next

Slide 59

Slide 59 text

Improving Traduttore

Slide 60

Slide 60 text

Improving translate.wordpress.org

Slide 61

Slide 61 text

JavaScript Internationalization

Slide 62

Slide 62 text

Summary

Slide 63

Slide 63 text

I18N Workflows in WordPress

Slide 64

Slide 64 text

Public vs Private Projects

Slide 65

Slide 65 text

Traduttore

Slide 66

Slide 66 text

Future Changes

Slide 67

Slide 67 text

Thank You.