Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Multi-lingual sites with WordPress
Search
Rich Holman
March 02, 2012
Programming
2
160
Multi-lingual sites with WordPress
An introduction to building Multi-lingual sites with WordPress
Rich Holman
March 02, 2012
Tweet
Share
Other Decks in Programming
See All in Programming
CSC305 Lecture 25
javiergs
PRO
0
130
MCP with Cloudflare Workers
yusukebe
2
220
fs2-io を試してたらバグを見つけて直した話
chencmd
0
220
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
300
DevFest Tokyo 2025 - Flutter のアプリアーキテクチャ現在地点
wasabeef
5
900
【re:Growth 2024】 Aurora DSQL をちゃんと話します!
maroon1st
0
770
testcontainers のススメ
sgash708
1
120
Scalaから始めるOpenFeature入門 / Scalaわいわい勉強会 #4
arthur1
1
300
これが俺の”自分戦略” プロセスを楽しんでいこう! - Developers CAREER Boost 2024
niftycorp
PRO
0
190
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
700
暇に任せてProxmoxコンソール 作ってみました
karugamo
1
720
ブラウザ単体でmp4書き出すまで - muddy-web - 2024-12
yue4u
2
460
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
460
33k
How GitHub (no longer) Works
holman
311
140k
For a Future-Friendly Web
brad_frost
175
9.4k
Building Your Own Lightsaber
phodgson
103
6.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
Faster Mobile Websites
deanohume
305
30k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
4 Signs Your Business is Dying
shpigford
181
21k
Code Review Best Practice
trishagee
65
17k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
Building Adaptive Systems
keathley
38
2.3k
Transcript
An introduction to building Multi-lingual sites with WordPress
Introduction à la création d'un site multi-langues avec WordPress
Introducción a la creación de un sitio múlti idiomas con
WordPress
About myself
None
Wordpress codex http://codex.wordpress.org/ WordPress_in_Your_Language
Discovery Understanding the need
Discovery - the need * Editorial - localisation * Translation
- internationalisation * Informs solution e.g. multi-site or single site
Discovery - user journeys * Site level * Post level
Design Designing for multi-lingual sites
Design - layout Allow enough space
None
None
Design - layout Designing blind
Design - layout RTL - flip the design
None
The Build Architecting a solution
Language context * ?lang=es * /es/ * es. * body
class=es
HTML Language codes <html lang="en"> <html lang="es"> <html lang="fr"> http://www.w3schools.com/tags/
ref_language_codes.asp
Text Direction HTML <p dir="rtl">!"ود%&ا ه)* ل,-</p> CSS p {direction:rtl;}
Character encoding Unicode & ISO 10646 <meta charset="UTF-8"> Should about
cover everything
Language files - Admin /wp-content/languages/ http://codex.wordpress.org/ WordPress_in_Your_Language
None
Language files - Admin * wp-config.php: single site define('WPLANG', 'pt_BR');
multi site define('WPLANG', ''); then set in admin
None
Declare theme text domain <?php load_theme_textdomain('my_theme', get_template_directory() . '/ languages');
?>
Abstract terms in theme <?php _e('Hello World', my_theme'); ?> .
__( 'Hello World', 'my_theme' ) . http://codex.wordpress.org/ Translating_WordPress
Language files - Theme * Poedit - .po > .mo
None
None
None
Customisation * Taxonomies/Tags - arghhhh * Queries - there be
dragons * Widgets * Plugins * Feeds - flickr, facebook etc * RSS - http://codex.wordpress.org/ Customizing_Feeds
Plugins * WPML * xili-language * qTranslate * Polylang *
Google AJAX Translation * Multisite Language Switcher http://codex.wordpress.org/ Multilingual_WordPress
Polylang List view WPML qTranslate
qTranslate qTranslate xili Polylang Post view WPML
WPML WPML xili qTranslate Polylang Categories
Don’t switch between them ;) qTranslate > Polylang
Translation services * ICANLOCALIZE * Community of translators * $0.07
per word
None
Translation APIs * Google Translate - Pay per request $20
per 1 M characters Limit 2M chars/day. * Bing Translator - Free
To sum up...
Thankyou twitter: @dogwonder