Multilingual WordPress - Problems And Solutions

Post on 19-May-2015

261 views 1 download

description

WordPress Multilingual plugins, problems, and solutions.

Transcript of Multilingual WordPress - Problems And Solutions

Multilingual WordPress

Problems and Solutions

Translation Tools

• WMPL - Plug In

• qTranslate - Plug In

• WP Network - WP Core Setup

WPML• wp_posts holds ONE row for each translation

• Problems

• Additional JOINS, that degrades performance.

• Number of SQL Queries increases 3 times in average.

• Without WPML: 217 - With WPML: 745

• Without WPML: 34 - With WPML: 111

qTranslate• post translations in the SAME DB RAW

• Problems

• HUGE performance degradation

• Search in one language, practically impossible

• Number of articles in particular language - ?

• UGLY DB / fragile

WP Network

• Wordpress Network set-up

• Each translation is one WP site on network.

• Problems

• Media library is not common for all languages

• async translation model

The Solution

• WP Network with Custom Meta Boxes

• Assumptions:

• One primary language

• Featured image, photo gallery, YouTube video in primary language.

The Solution

Ideas…

• Change wp_posts table structure: add a translation field

• …?

The EndThank You!

edgar@peyotto.comblog.smartwebsitetips.com