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
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
150
Beyond ORM
77web
4
480
命名をリントする
chiroruxx
1
390
Jakarta EE meets AI
ivargrimstad
0
240
バグを見つけた?それAppleに直してもらおう!
uetyo
0
180
42 best practices for Symfony, a decade later
tucksaun
1
180
数十万行のプロジェクトを Scala 2から3に完全移行した
xuwei_k
0
270
HTTP compression in PHP and Symfony apps
dunglas
2
1.7k
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
140
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
4
1.1k
【re:Growth 2024】 Aurora DSQL をちゃんと話します!
maroon1st
0
770
PHPとAPI Platformで作る本格的なWeb APIアプリケーション(入門編) / phpcon 2024 Intro to API Platform
ttskch
0
170
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
Statistics for Hackers
jakevdp
796
220k
For a Future-Friendly Web
brad_frost
175
9.4k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
5
440
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
A Philosophy of Restraint
colly
203
16k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
RailsConf 2023
tenderlove
29
940
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