how do i - localization and internationalization (l10n, i18n)
TRANSCRIPT
![Page 1: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/1.jpg)
How do I?
![Page 2: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/2.jpg)
I18N & L10N Internationalization & Localization
![Page 3: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/3.jpg)
I18N & L10N
© Codename One 2017 all rights reserved
✦ I18N - Internationalization the process of making one app that works everywhere for every “locale”
✦L10N - Localization is the process of adapting to each locale
✦Locale - unlike language locale goes deeper it’s how we write our numbers, dates, phrase our sentences etc.
![Page 4: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/4.jpg)
Translation
© Codename One 2017 all rights reserved
✦Resource bundles installed in UIManager ✦Seamless to code… ✦But can be used manually ✦Missing MessageFormat functionality: This is the {0}
time ✦Cultural translations can be done on top: colors,
images, gender, politics…
![Page 5: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/5.jpg)
![Page 6: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/6.jpg)
![Page 7: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/7.jpg)
![Page 8: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/8.jpg)
![Page 9: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/9.jpg)
![Page 10: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/10.jpg)
![Page 11: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/11.jpg)
![Page 12: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/12.jpg)
![Page 13: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/13.jpg)
![Page 14: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/14.jpg)
![Page 15: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/15.jpg)
![Page 16: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/16.jpg)
Formatting
© Codename One 2017 all rights reserved
✦L10NManager & com.codename1.l10n.SimpleDateFormat
✦Allow formatting dates and numbers based on locale, currency etc
![Page 17: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/17.jpg)
Orientation
© Codename One 2017 all rights reserved
✦RTL (Right to Left) or BiDi (Bi-directional) represents the problem posed by some ancient languages (Hebrew, Arabic etc.)
✦RTL languages are written from right to left but the numbers within (or english) is written from left to right (hence bidi)
✦ In these languages the entire UI should be flipped or it will look odd, this includes the alignment of the elements. Codename One does that implicitly
![Page 18: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/18.jpg)
![Page 19: How do i - localization and internationalization (l10n, i18n)](https://reader031.vdocuments.mx/reader031/viewer/2022022415/5a6698037f8b9a0c768b49eb/html5/thumbnails/19.jpg)
Thank You!