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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Rich Holman
March 02, 2012
Programming
2
180
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
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
6
1.1k
Symfony + NelmioApiDocBundle を使った スキーマ駆動開発 / Schema Driven Development with NelmioApiDocBundle
okashoi
0
250
ローカルで稼働するAI エージェントを超えて / beyond-local-ai-agents
gawa
1
180
AI活用のコスパを最大化する方法
ochtum
0
350
Mastering Event Sourcing: Your Parents Holidayed in Yugoslavia
super_marek
0
130
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
160
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
480
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.3k
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
4.9k
Feature Toggle は捨てやすく使おう
gennei
0
380
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
270
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
220
Featured
See All Featured
The Curious Case for Waylosing
cassininazir
0
280
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
240
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
120
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
440
Writing Fast Ruby
sferik
630
63k
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
430
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
120
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
250
Un-Boring Meetings
codingconduct
0
240
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