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
HMSコンペ 11th Solution (team : kansai-kaggler)
t88
1
680
The rollercoaster of releasing an Android, iOS, and macOS app with Kotlin Multiplatform | droidcon Berlin
prof18
0
110
CSC307 Lecture 11
javiergs
PRO
0
240
君たちはどうコードをレビューする (される) か / 大吉祥寺.pm
utgwkk
15
8.5k
[After Kotlin Fest 2024 LT Night @ Sansan] もっともっとKotlinを好きになる!K2 Compiler Pluginで遊んでみよう!
kitakkun
2
260
APIのない大学ログインWebサービスをWKWebViewとJavaScriptでアプリ化した話
akidon0000
1
330
AWS初心者ってどうやってAWSを学ぶ?〜アプリエンジニアがやってよかったアーキテクチャ学習方法〜
yamanashi_ren01
0
190
CSC307 Lecture 14
javiergs
PRO
0
220
Cloudflare Workers x AWS Lambdaの組み合わせユースケース / Cloudflare Workers x AWS Lambda Combination Use Case
seike460
PRO
2
310
Terraformテスト入門
msato
0
520
Javaの現状2024夏 / Java current status 2024 summer
kishida
4
1.4k
AWS CDKにおける「再利用性」を考える / aws-cdk-reusability
gotok365
6
1.3k
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Building Adaptive Systems
keathley
34
2k
Leading Effective Engineering Teams 2024
addyosmani
3
300
What's new in Ruby 2.0
geeforr
338
31k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
13
430
Web Components: a chance to create the future
zenorocha
307
41k
The Language of Interfaces
destraynor
151
23k
Raft: Consensus for Rubyists
vanstee
134
6.5k
Infographics Made Easy
chrislema
238
18k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
23
1.9k
Writing Fast Ruby
sferik
623
60k
A Philosophy of Restraint
colly
200
16k
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