wcdk - Making your WordPress Multilingual

28
Hej ﻣرﺣﺑﺎ

description

How to transform your WordPress site into a Multilingual web site.

Transcript of wcdk - Making your WordPress Multilingual

Page 1: wcdk - Making your WordPress Multilingual

Hejمرحبا

Page 2: wcdk - Making your WordPress Multilingual

Going global

how to make your WordPress site multilingual

Page 3: wcdk - Making your WordPress Multilingual

About me & OnTheGoSystemsAmit Kvint - (i18n) - @amitkvint

● Multilingual father & eco builder

● Front-end & WordPress developer

● WPML Compatibility project team leader

OnTheGoSystems

● WPML● Toolset plugins● iCanLocalize

Page 4: wcdk - Making your WordPress Multilingual

Agenda● Multilingual website –

why it is worth investing

● What is a multilingual site and what it is not

● How to turn your WordPress site into a full multilingual site

● Tips and hints

Page 5: wcdk - Making your WordPress Multilingual

Languages of the World

Page 6: wcdk - Making your WordPress Multilingual

Languages on the Internet

source: wikipedia http://en.wikipedia.org/wiki/Languages_used_on_the_Internet

The number of non-English pages is rapidly expanding. The use of English online increased by around 281% from 2001 to 2011, however this is far less than Spanish (743%), Chinese (1,277%), Russia

Page 7: wcdk - Making your WordPress Multilingual

WordCamp Porto | 9, 10 Nov

> Why Multilingual?

● ⅔ of the world population speaks more than one language

● companies trading globally improve their productivity by 34%

● the majority of the Internet users prefer to buy products on websites in their native tongues

Page 8: wcdk - Making your WordPress Multilingual

Be nice to your visitors & Google● Google tries to determine the

main language of each one of your pages

● Google ignores code-level language info

● You can help by:

○ sticking to only one language per page

○ using the same language for all elements

● Help Google bots to get your site indexed● automated translations will be

ignored!● cross-link page by page● avoid automatic redirections● provide valuable content

Page 9: wcdk - Making your WordPress Multilingual

How to do it right

Page 10: wcdk - Making your WordPress Multilingual

For developers● Follow the codex - its awesome

● Localize everything (slugs, CPT, admin texts)

Page 11: wcdk - Making your WordPress Multilingual

WordCamp Porto | 9, 10 Nov

> Technical considerations

● In which languages will you have content?● What about the interface and the admin

panel?● Switching between languages?● What URL structure to use?● What about SEO?● What about themes?

Page 12: wcdk - Making your WordPress Multilingual

i18n

Page 13: wcdk - Making your WordPress Multilingual

WordCamp Porto | 9, 10 Nov

> Localize it!

WordPress uses two PHP functions:__('message') used when the message is passed as an argument to another function.

_e('message') used to write the message directly to the page.if you are internationalizing a Theme or Plugin, you should use a "Text Domain"http://codex.wordpress.org/I18n_for_WordPress_Developers

<?php $translated_text = __( 'text', 'domain' ); ?>

Page 14: wcdk - Making your WordPress Multilingual

WordCamp Porto | 9, 10 Nov

> Multilingual vs localisedPOT(Portable Object Template)

PO (Portable Object)

MO (Machine Object)

Page 15: wcdk - Making your WordPress Multilingual

Making your WordPress site a multilingual siteSteps1. choose your solution2. install and configure3. insert the language

switcher4. translate your content5. keep updated

Page 16: wcdk - Making your WordPress Multilingual

Making your WordPress site a multilingual site

Steps1. choose your solution2. install and configure3. insert language

switcher4. translate your content5. keep updated

Different possibilities● Multiple WP installs● WordPress MultiSite● Plugins

○ qTranslate○ WPML○ Multilingual Press ○ Stella○ xili-language

Page 17: wcdk - Making your WordPress Multilingual

Making your WordPress site a multilingual site

Steps1. choose your solution2. install and configure3. insert language

switcher4. translate your content5. keep updated

What to handle● select site languages● select language URL

format● select admin language

Page 18: wcdk - Making your WordPress Multilingual

Making your WordPress site a multilingual site

Steps1. choose your solution2. install and configure3. insert language

switcher4. translate your content5. keep updated

Tips and hints● cross-link all pages● custom lang switcher -

check ahead what your plugin allows for

Page 19: wcdk - Making your WordPress Multilingual

Making your WordPress site a multilingual site

Steps1. choose your solution2. install and configure3. insert language

switcher4. translate your content5. keep updated

Page 20: wcdk - Making your WordPress Multilingual

What to translate● site title● pages and posts● categories, tags● images, menus● widgets● custom post types● custom fields● theme localization● theme options● sticky links ...

Making your WordPress site a multilingual site

Steps1. choose your solution2. install and configure3. insert language

switcher4. translate your content5. keep updated

Page 21: wcdk - Making your WordPress Multilingual

Making your WordPress site a multilingual site

Steps1. choose your solution2. install and configure3. insert language

switcher4. translate your content5. keep updated

When you are done, your site will start living its own life● let your site be easy to

maintain by different users

● be predictable, think ahead about future enhancements

Page 22: wcdk - Making your WordPress Multilingual

Different user roles, different needsSite visitors● comfortable, please● I’d like to understand

everything

Content editors● quick and easy, please● don’t make me think

WP developers● how quickly?● which elements to

handle?

Google● will I recognize the

language?● translated by human?

Page 23: wcdk - Making your WordPress Multilingual

Make it comfortable for non-technicals● can you copy from

original?● can you change your

admin language? ● can you translate

images?● how about the menu

synchronization?

Page 24: wcdk - Making your WordPress Multilingual

Keep your site up to date for all languages● turn ordinary WP users

into translators● let your translators be

notified quickly● while translating let them

see both language versions

● be professional, if you need help ask a qualified translator

Page 25: wcdk - Making your WordPress Multilingual

Plan - Be predictable● Check ahead if your

theme is compatible with your multilingual plugin

● When you get stuck, ask for support

● Your site will grow. Think ahead, think about the future

Page 26: wcdk - Making your WordPress Multilingual

Don’t let eCommerce surprise you● the number of WP

eCommerce shops is rapidly growing

● check ahead if your multilingual plugin supports eCommerce

Page 27: wcdk - Making your WordPress Multilingual

We are hiring ! We are looking for a talented expert WordPress programmers to join our growing company.

The work is done remotely from everywhere. We invite you to join us and enjoy: ● Great team work.● Challenging career. ● rewording conditions How to apply: [email protected]

Page 28: wcdk - Making your WordPress Multilingual

Questions - or catch me later - @amitkvint- [email protected] wpclases.com

* having a drink in the happiness bar