More Related Content
Similar to How do I - Localization and Internationalization (l10n, i18n).pdf (15)
More from ShaiAlmog1 (20)
How do I - Localization and Internationalization (l10n, i18n).pdf
- 3. 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.
- 4. 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…
- 16. Formatting
© Codename One 2017 all rights reserved
✦L10NManager &
com.codename1.l10n.SimpleDateFormat
✦Allow formatting dates and numbers based on locale,
currency etc
- 17. 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