SlideShare una empresa de Scribd logo
1 de 123
Descargar para leer sin conexión
2200+ different ways to
view a website
42 languages, 54 currencies, 1 CSS
@shiota ConFoo 2015
@shiota
eshiota.com
contato@eshiota.com
slideshare.net/eshiota
Crafting a global
website
Getting a small website
going might be fairly
straightforward…
R$
pt-BR
… but sometimes you
need to speak more
than one language.
around
83%
do not speak English
(as a first or second language)
http://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers
http://www.worldometers.info/world-population/
Sometimes you need
to show the prices the
right way.
Sometimes you need
to understand more
than one culture.
And every world event
might affect you.
200+ countries
600.000+ properties
150 offices
42 languages
54 currencies
Our design and code must
support all languages, all
currencies, and allow
multicultural solutions.
Dealing with
languages
There are a few HTML
attributes and CSS
properties you must know:
`dir` attribute
<html>
<html dir="ltr">
<html dir="rtl">
`direction` property
html {
direction: ltr;
}
html {
direction: rtl;
}
`:lang` selector
<p class="love" lang="en">
I love the web!
</p>
<p class="love" lang="pt-BR">
Eu amo a web!
</p>
<p class="love" lang="nl">
Ik hou van het Web!
</p>
.love {
padding: 1em;
}
.love:lang(en) {
background-color: royalblue;
}
.love:lang(pt-BR) {
background-color: mediumseagreen;
}
.love:lang(nl) {
background-color: orange;
}
You may also add a
html/body class via
server-side.
<body class="dir-rtl lang-nl">
Remember to take care
of right-to-left script
languages.
<div class="content">
<div class="box box1">
<p>BOX 1</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer
took a galley of type and scrambled it to make a type specimen book. It has survived not only
five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum
passages, and more recently with desktop publishing software like Aldus PageMaker including
versions of Lorem Ipsum.</p>
</div>
<div class="box box2">
<p>BOX 2</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer
took a galley of type and scrambled it to make a type specimen book. It has survived not only
five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum
passages, and more recently with desktop publishing software like Aldus PageMaker including
versions of Lorem Ipsum.</p>
</div>
</div>
.box {
width: 300px;
padding: 10px;
background-color: royalblue;
color: #fff;
float: left;
margin-right: 20px;
}
.box2 {
background-color: firebrick;
}
wrong
Know and understand
different CSS solutions,
use what fits best.
inline-block
/*
remember to account for additional
space between elements
*/
.box {
display: inline-block;
}
[dir="ltr"] .box {
margin-right: 20px;
}
[dir="rtl"] .box {
margin-left: 20px;
}
table/table-cell
.content {
display: table;
}
.box {
display: table-cell;
}
[dir="ltr"] .box {
border-right: 20px solid #fff; /* cheat */
}
[dir="rtl"] .box {
border-left: 20px solid #fff; /* cheat */
}
Flexbox
.content {
display: flex;
}
[dir="ltr"] .box {
margin-right: 20px;
}
[dir="rtl"] .box {
margin-left: 20px;
}
Floats
[dir="ltr"] .box {
margin-right: 20px;
float: left;
}
[dir="rtl"] .box {
float: right;
margin-left: 20px;
}
“If you work with multiple
languages and still support
legacy browsers, a table is
your best friend.”
— Eduardo Shiota, a developer who hopes to use only
flexbox in a near future
Remember to adjust
positions, margins,
paddings etc.
.powered-by-html {
font-size: 72px;
padding-left: 80px;
position: relative;
}
.powered-by-html:before {
content: "";
background-image: url("html.svg");
background-size: cover;
width: 72px;
height: 72px;
position: absolute;
left: 0;
top: 50%;
margin-top: -36px;
}
wrong
[dir="ltr"] .powered-by-html {
padding-left: 80px;
}
[dir="ltr"] .powered-by-html:before {
left: 0;
}
[dir="rtl"] .powered-by-html {
padding-right: 80px;
}
[dir="rtl"] .powered-by-html:before {
right: 0;
}
(or use inline-block)
A short word in your
language might be a
huge one in another.
(always view your layout
in greek and cyrillic)
Each language has its
own perks.
1 rouble
2 roubles
3 roubles
4 roubles
5 roubles
1 рубль
2 рубля
3 рубля
4 рубля
5 рублей
If you have a good
localisation tool, use
resources instead of words.
"I love the web"
i_love_the_web
copywriter
content
translators
tag
<p class="powered-by-html">
I love the web!
</p>
<p class="powered-by-html">
<TMPL_VAR i_love_the_web>
</p>
Be careful about the
typefaces you choose.
UTF-8 ALL THINGS
Ask for help.
“This is completely wrong.”
— Karim Naguib, Designer
Pay attention to
small details.
Dealing with
currencies
Not everyone in the
world uses R$, € or U$.
€ 90,00
R$ 278,05
$ 114.73
¥ 12,467.08
Prepare your layout for
large numbers.
1,374,521.70rp
Remember each currency
and country uses
different separators.
R$ 90,00
$ 90.00
€ 90,00
€ 90.00
Be careful about doing
math with JavaScript.
parseFloat("10.58"); // 10.58
parseFloat("10,58"); // 10
Provide a consistent
rounding on both client
and server code.
Dealing with
culture
Some symbols might
have different meanings
on different countries.
Each country has its
own habits.
Beware of local laws.
A language’s John Smith
might be another’s
Jacques Martin.
john.smith@company.com
jacques.martin@société.com
joao.silva@empresa.com
jan.jansen@bedrijf.nl
juan.perez@empresa.com
taro.yamada@company.com
Either be neutral or
very focused on your
layouts.
“If you talk to a man in a
language he understands,
that goes to his head. If you
talk to him in his language,
that goes to his heart.”
— Nelson Mandela
Keep the customer at
the centre of
everything you do.
Thanks!
Credits (in order):
Map of Brazil - Single Color by FreeVectorMaps.com
Map of World - Single Color by FreeVectorMaps.com
http://commons.wikimedia.org/wiki/File:Exchange_Money_Conversion_to_Foreign_Currency.jpg
https://www.flickr.com/photos/leandrociuffo/6932936401
https://www.flickr.com/photos/karlocamero/9768744423
https://www.flickr.com/photos/ishanz/4688443134
Paula Abrahão — @darkdiva
https://www.flickr.com/photos/darkdiva/14022904161/
Jamie McDonald/Getty Images
https://www.flickr.com/photos/112078056@N07/14424444150
http://en.wikipedia.org/wiki/File:Fimmvorduhals_2010_03_27_dawn.jpg
http://flagpedia.net/
iStockphoto

Más contenido relacionado

Similar a Internationalisation: 2200+ different ways to view a website

Week 3 html recap and css
Week 3   html recap and cssWeek 3   html recap and css
Week 3 html recap and css
brianjihoonlee
 
01 Introduction To CSS
01 Introduction To CSS01 Introduction To CSS
01 Introduction To CSS
crgwbr
 
The Language of the Web - HTML and CSS
The Language of the Web - HTML and CSSThe Language of the Web - HTML and CSS
The Language of the Web - HTML and CSS
kcasavale
 
Handout2 formatting tags
Handout2 formatting tagsHandout2 formatting tags
Handout2 formatting tags
Nadine Guevarra
 

Similar a Internationalisation: 2200+ different ways to view a website (20)

Html Expression Web
Html Expression WebHtml Expression Web
Html Expression Web
 
How To Build And Launch A Successful Globalized App From Day One Or All The ...
How To Build And Launch A Successful Globalized App From Day One  Or All The ...How To Build And Launch A Successful Globalized App From Day One  Or All The ...
How To Build And Launch A Successful Globalized App From Day One Or All The ...
 
Responsive Web Design & Typography
Responsive Web Design & TypographyResponsive Web Design & Typography
Responsive Web Design & Typography
 
Week 3 html recap and css
Week 3   html recap and cssWeek 3   html recap and css
Week 3 html recap and css
 
Webpack & EcmaScript 6 (Webelement #32)
Webpack & EcmaScript 6 (Webelement #32)Webpack & EcmaScript 6 (Webelement #32)
Webpack & EcmaScript 6 (Webelement #32)
 
HTML & CSS Workshop Notes
HTML & CSS Workshop NotesHTML & CSS Workshop Notes
HTML & CSS Workshop Notes
 
01 Introduction To CSS
01 Introduction To CSS01 Introduction To CSS
01 Introduction To CSS
 
The Language of the Web - HTML and CSS
The Language of the Web - HTML and CSSThe Language of the Web - HTML and CSS
The Language of the Web - HTML and CSS
 
Javascript
JavascriptJavascript
Javascript
 
TypeScript, Dart, CoffeeScript and JavaScript Comparison
TypeScript, Dart, CoffeeScript and JavaScript ComparisonTypeScript, Dart, CoffeeScript and JavaScript Comparison
TypeScript, Dart, CoffeeScript and JavaScript Comparison
 
What is Front-End, Back-End and so on!
What is Front-End, Back-End and so on!What is Front-End, Back-End and so on!
What is Front-End, Back-End and so on!
 
Oreilly
OreillyOreilly
Oreilly
 
Words in Code
Words in CodeWords in Code
Words in Code
 
Getting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
Getting to Grips with Firebug - Anthony Hortin - WordCamp SydneyGetting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
Getting to Grips with Firebug - Anthony Hortin - WordCamp Sydney
 
Handout2 formatting tags
Handout2 formatting tagsHandout2 formatting tags
Handout2 formatting tags
 
Internationalised Domain Names & Internet Investigations
Internationalised Domain Names & Internet InvestigationsInternationalised Domain Names & Internet Investigations
Internationalised Domain Names & Internet Investigations
 
The Dynamic Language is not Enough
The Dynamic Language is not EnoughThe Dynamic Language is not Enough
The Dynamic Language is not Enough
 
A quick guide to Css and java script
A quick guide to Css and  java scriptA quick guide to Css and  java script
A quick guide to Css and java script
 
Ruby on Rails 3.1: Let's bring the fun back into web programing
Ruby on Rails 3.1: Let's bring the fun back into web programingRuby on Rails 3.1: Let's bring the fun back into web programing
Ruby on Rails 3.1: Let's bring the fun back into web programing
 
Quick tips for porting your iOS designs to Android
Quick tips for porting your iOS designs to AndroidQuick tips for porting your iOS designs to Android
Quick tips for porting your iOS designs to Android
 

Más de Eduardo Shiota Yasuda

Criando uma arquitetura de front-end do zero
Criando uma arquitetura de front-end do zeroCriando uma arquitetura de front-end do zero
Criando uma arquitetura de front-end do zero
Eduardo Shiota Yasuda
 

Más de Eduardo Shiota Yasuda (14)

Front-end Culture @ Booking.com
Front-end Culture @ Booking.comFront-end Culture @ Booking.com
Front-end Culture @ Booking.com
 
The anatomy of an A/B Test - JSConf Colombia Workshop
The anatomy of an A/B Test - JSConf Colombia WorkshopThe anatomy of an A/B Test - JSConf Colombia Workshop
The anatomy of an A/B Test - JSConf Colombia Workshop
 
Dominating the Web Typography
Dominating the Web TypographyDominating the Web Typography
Dominating the Web Typography
 
Web Audio Band - Playing with a band in your browser
Web Audio Band - Playing with a band in your browserWeb Audio Band - Playing with a band in your browser
Web Audio Band - Playing with a band in your browser
 
RetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio API
RetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio APIRetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio API
RetroJS - Escrevendo músicas da era 8-bits com JavaScript e Web Audio API
 
Criando uma arquitetura de front-end do zero
Criando uma arquitetura de front-end do zeroCriando uma arquitetura de front-end do zero
Criando uma arquitetura de front-end do zero
 
Modular and Event-Driven JavaScript
Modular and Event-Driven JavaScriptModular and Event-Driven JavaScript
Modular and Event-Driven JavaScript
 
Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...
Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...
Baby.com.br: Analisando, adaptando e melhorando a arquitetura da informação e...
 
Desafios do Desenvolvimento de Front-end em um e-commerce
Desafios do Desenvolvimento de Front-end em um e-commerceDesafios do Desenvolvimento de Front-end em um e-commerce
Desafios do Desenvolvimento de Front-end em um e-commerce
 
Arquitetura de Front-end em Aplicações de Larga Escala
Arquitetura de Front-end em Aplicações de Larga EscalaArquitetura de Front-end em Aplicações de Larga Escala
Arquitetura de Front-end em Aplicações de Larga Escala
 
Responsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da WebResponsive Web Design e a Ubiquidade da Web
Responsive Web Design e a Ubiquidade da Web
 
User Experience para Developers
User Experience para DevelopersUser Experience para Developers
User Experience para Developers
 
Sushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire Japan
Sushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire JapanSushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire Japan
Sushi e Interfaces - PechaKucha São Paulo Vol. 8 + Inspire Japan
 
O Design e a Interface no mundo da Programação
O Design e a Interface no mundo da ProgramaçãoO Design e a Interface no mundo da Programação
O Design e a Interface no mundo da Programação
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Internationalisation: 2200+ different ways to view a website