Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Multi-lingual sites with WordPress
Rich Holman
March 02, 2012
Programming
2
150
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
A Philosophy of Software Design 後半
yosuke_furukawa
PRO
10
2.9k
Cybozu GoogleI/O 2022 LT会 - Input for all screens
jaewgwon
0
400
OSS貢献を気軽にしたい Let's Go Talk #1
yuyaabo
1
130
[월간 데이터리안 세미나 6월] 스스로 성장하는 분석가 커리어 이야기
datarian
0
250
heyにおけるCI/CDの現状と課題
fufuhu
3
560
Licences open source : entre guerre de clochers et radicalité
pylapp
2
510
IE Graduation (IE の功績を讃える)
jxck
20
13k
Lancersをコンテナへ本番移行する取り組み
rvirus0817
1
420
Rector, time to refactor your code easily
guikingone
1
100
Jetpack Composeでの画面遷移
iwata_n
0
200
What's new in Android development tools まとめ
mkeeda
0
410
こそこそアジャイル導入しようぜ!
ichimichi
0
1.3k
Featured
See All Featured
Code Review Best Practice
trishagee
43
9.3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
351
21k
Building Your Own Lightsaber
phodgson
94
4.6k
Art Directing for the Web. Five minutes with CSS Template Areas
malarkey
196
9.4k
The Web Native Designer (August 2011)
paulrobertlloyd
74
1.9k
Imperfection Machines: The Place of Print at Facebook
scottboms
253
12k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
5
520
Unsuck your backbone
ammeep
659
55k
Creatively Recalculating Your Daily Design Routine
revolveconf
207
10k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
315
19k
The Mythical Team-Month
searls
209
39k
The Brand Is Dead. Long Live the Brand.
mthomps
46
2.7k
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