wcdk - Making your WordPress Multilingual

Post on 08-May-2015

610 views 0 download

description

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

Transcript of wcdk - Making your WordPress Multilingual

Hejمرحبا

Going global

how to make your WordPress site 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

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

Languages of the World

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

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

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

How to do it right

For developers● Follow the codex - its awesome

● Localize everything (slugs, CPT, admin texts)

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?

i18n

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' ); ?>

WordCamp Porto | 9, 10 Nov

> Multilingual vs localisedPOT(Portable Object Template)

PO (Portable Object)

MO (Machine Object)

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

switcher4. translate your content5. keep updated

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

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

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

Making your WordPress site a multilingual site

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

switcher4. translate your content5. keep updated

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

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

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?

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?

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

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

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

eCommerce shops is rapidly growing

● check ahead if your multilingual plugin supports eCommerce

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: eyal@icanlocalize.com

Questions - or catch me later - @amitkvint- amit.k@icanlocalize.com- wpclases.com

* having a drink in the happiness bar