applications, we must keep in mind that internationalization is not easy. It might cost us a lot of time and resources, if by any case we need to go fixing things in entire application later.
speaking? Which language does he view content in? In which language does he want to see content? Most expensive to get it right. Locale Language preferences, region settings, calendar type, default currency. Cannot use for: physical location, identifying language. Region Settings Specific date, time, energy, mass, distance, currency formatting settings. On mobile, many things supported out-of-the-box. A couple of terms
is that okay? Lets look at few examples of regular time formats. Most common time formatters are usually wrong. Formatting time 17:26 অপরাh ৫:২৬ 午後5:26 5:26 PM م٥:٢٦ 下午5:26 17.26
“Neskladenjska raba pike: Med deli številk, da ločijo enote različnih stopenj (npr. ure od minut, tolarje od stotinov, včasih tudi tisočice od nižjih enot) ali kot znamenje množenja.” Does it seem weird?
Locale Date Time English (U.S.) Jun 3, 2014 10:14 AM English (U.K.) Jun 3, 2014 10:14 am French (France) juin 3, 2014 10:14 AM Chinese (China) 6⽉月 3, 2014 10:14 上午 Do not use hardcoded format strings (“MMM d, y h:mm a” - in this example).
Locale Date Time English (U.S.) Jun 3, 2014 10:14 AM English (U.K.) 3 Jun 2014 10:14 French (France) 3 juin 2014 10:14 Chinese (China) 2014年6⽉月3⽇日 上午10:14 Use correct date or time style formatters that output correct format based on configured locale.
French Chinese One hour, fifty minutes Une heure et cinquante minutes ⼀一⼩小时五⼗十分钟 1 hour, 50 minutes 1 heure et 50 minutes 1⼩小时50分钟 1:50 1:50 1:50 About 2 hours Environ 2 heures 约2⼩小时 In certain cases, we must display time as a duration, not explicit date and time.
French Chinese June 2 - 6, 2014 2-6 juin 2014 2014年6⽉月2⽇日⾄至6⽇日 9:00 AM - 4:30 PM 9:00 - 16:30 上午9:00 - 下午4:30 June 2, 9:00 AM - June 6, 4:30 PM 2 juin 9:00 - 6 juin 16:30 6⽉月2⽇日 上午9:00 - 6⽉月6⽇日 下午4:30 June 3, 9:00 - 10:00 AM 3 juin 9:00 - 10:00 6⽉月3⽇日 上午9:00⾄至10:00
French Chinese 234 Cal 980 kJ 980 千焦 26.2 miles 42,2 kilomètres 42.2公⾥里 128 lb 58 kg 58千克 74°F 23°C 23°C Various quantities are displayed differently in different regions.
Yuan yuan renminbi chinois ⼈人民币 Pound Sterling livre sterling 英镑 Japanese Yen Yen japonais ⽇日元 Formatting currency needs a special attention, as it depends on both language and locale!
Buddhist Calendar Different Keyboards Languages such as Arabic are written right-to-left. Need to understand the context of this, so all labels are correctly placed on canvas. There are many types of calendar available, not everyone may use the Gregorian calendar. Must ensure all calendars are supported. On mobile devices, languages and locales can have different on-screen keyboards, especially with glyph languages such as Japanese. Does not end here…
thought of in the beginning. 1 2 Formatting properly represents a hard problem for developers. 3 Careful with dates, times, units, names and text alignment. 4 Why can’t we all just speak the same language? :( Formatting Language v k Summary