Download presentation
Presentation is loading. Please wait.
Published bySusanna Elliott Modified over 9 years ago
1
Spring 20116.813/6.831 User Interface Design and Implementation1 Lecture 22: Internationalization
2
UI Hall of Fame or Shame? Spring 20116.813/6.831 User Interface Design and Implementation2 Source: UI Hall of Shame
3
Nanoquiz closed book, closed notes submit before time is up (paper or web) we’ll show a timer for the last 20 seconds Spring 201136.813/6.831 User Interface Design and Implementation
4
1.Which of the following are likely to result in disabilities in technology use? (choose all good answers) A. Low vision B. Walking down the street C. Color blindness D. Driving a car 2.Which of the following techniques help users with visual impairments? (choose all good answers) A. Screen readers B. Rear Window captioning C. Ctrl-+ in a web browser D. Alt attributes and elements in HTML 3.Which of the following are polite ways to treat a guest lecturer? (choose all good answers) A. Asking tough questions. B. Using your laptop during the lecture. C. Attempting to reconfigure the built-in computers that belong to the room. D. Using one of the built-in computers for any purpose at all beyond a nanoquiz. 2019181716151413121110 9 8 7 6 5 4 3 2 1 0 Spring 201146.813/6.831 User Interface Design and Implementation
5
Today’s Topics Internationalization Design challenges Implementation techniques Spring 20116.813/6.831 User Interface Design and Implementation5
6
Internationalization and Localization Spring 20116.813/6.831 User Interface Design and Implementation6
7
Translation All user-visible text has to be translated –Component level OK –Stroke level canvas.fillText( “ Name: ”, … ) –Pixel level Error messages too Spring 20116.813/6.831 User Interface Design and Implementation7
8
Risks of Translation Spring 20116.813/6.831 User Interface Design and Implementation8
9
Different Scripts Cyrillic Hangul (Korean) Chinese Greek Arabic Spring 20116.813/6.831 User Interface Design and Implementation9 Все люди рождаются свободными
10
Text Direction Some scripts don ’ t read left-to-right –Arabic, Hebrew are right-to-left –Affects drawing, screen layout, even icons Spring 20116.813/6.831 User Interface Design and Implementation10
11
Sort Order Unicode order isn ’ t even right for English Uppercase/lowercase, accents affect order Norwegian: … x y z æ ø å Traditional Spanish: c, ch, d, …, l, ll, m, … Spring 20116.813/6.831 User Interface Design and Implementation11 U+0123456789ABCDEF 0000 NULSOHSTXETXEOTENQACKBELBSHTLFVTFFCRSOSI 0010 DLEDC1DC2DC3DC4NAKSYNETBCANEMSUBESCFSGSRSUS 0020 SP !"#$%&'()*+,-./ 0030 0123456789:;<=>? 0040 @ABCDEFGHIJKLMNO 0050 PQRSTUVWXYZ[\]^_ 0060 `abcdefghijklmno 0070 pqrstuvwxyz{|}~ DEL 0080 PADHOPBPHNBHINDNELSSAESAHTSHTJVTSPLDPLURISS2SS3 0090 DCSPU1PU2STSCCHMWSPAEPASOSSGCISCICSISTOSCPMAPC 00A0 NBSP ¡¢£¤¥¦§¨©ª«¬ SHY ®¯ 00B0 °±²³´µ¶·¸¹º»¼½¾¿ 00C0 ÀÁÂÃÄÅÆÇÈÉ ËÌÍÎÏ 00D0 ÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß 00E0 àáâãäåæçèéêëìíîï 00F0 ðñòóôõö÷øùúûüýþÿ
12
Formatting Numbers –US/UK72,350.55 –France72 350,55 –Germany72.350,55 Date & time formatting –US10/31/2006(M/D/Y) –Everywhere else31/10/2006(D/M/Y) Spring 20116.813/6.831 User Interface Design and Implementation12
13
Color Conventions Spring 20116.813/6.831 User Interface Design and Implementation13 White Red USChina
14
Icons Familiar icons in one culture aren’t in others Spring 20116.813/6.831 User Interface Design and Implementation14
15
Implementation Support for I18N Message files Unicode Bidirectionality Formatting libraries Separating structure from presentation Spring 20116.813/6.831 User Interface Design and Implementation15
16
Message Files A message file separates localizable messages from source code –Called resource bundles in Java Human translators generate a message file for each supported locale –Doesn’t require translators to read source code or recompile Messages with dynamic parts can be tricky –“ users have visited since ” Spring 20116.813/6.831 User Interface Design and Implementation16
17
Character Sets and Encodings Character sets –ASCII: A-Z, a-z, 0-9, punctuation, control characters –Latin-1: ASCII + accented Latin alphabet –Unicode: Latin-1 + Greek, Cyrilic, CJK, math symbols,... Fonts map characters to visual appearance Encodings map characters to numbers –ASCII: A-Z map to 65-90 –Latin-1: À maps to 192 –UCS-2: each character maps to 2 bytes –UTF-8: each character maps to 1-3 bytes Spring 20116.813/6.831 User Interface Design and Implementation17
18
Bidirectionality Bidirectional text display and editing –String in memory: This is arabic text –Drawn on screen: (base direction English) This is txet cibara (base direction Arabic) txet cibara This is Bidirectional layout –FlowLayout goes right-to-left Spring 20116.813/6.831 User Interface Design and Implementation18
19
Formatting Libraries Library support for parsing and printing numbers, dates, currency –NumberFormatter –DateFormatter Spring 20116.813/6.831 User Interface Design and Implementation19
20
Separating Structure From Presentation Replaceable icons and images Fonts Colors Spring 20116.813/6.831 User Interface Design and Implementation20
21
Summary Internationalization abstracts a user interface so that it can be localized for different locales –Languages –Scripts –Formatting conventions –Cultures Spring 20116.813/6.831 User Interface Design and Implementation21
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.