Localization Flashcards
Which term describes an application that can adapt to various languages and regions without recompilation?
internationalized
Which two language code types are acceptable for the Locale constructor?
ISO 639 language code or an 8-character language subtag
What are the four ways to create a Locale object?
1) Constant (Locale.US)
2) builder forLanague(x).forRegion(r).build();
3) Constructor Locale(lang,region)
4) forLanguageTag
Using SimpleDateFormat class, what does the pattern letter s represent?
seconds
Using SimpleDateFormat class, what do the pattern letters z,Z and X represent?
timezone
Which term describes the process of adapting an internationalized application to a specific region or language?
localization
What is a properties file used in localization?
A text file that contains name/value pairs for a specified resource bundle
What are the requirements for naming a properties file?
filename_lang_region_ss.properties
What would be the properties filename for the resource bundle TextData for the Spanish Mexican locale?
TextData.es.MX.properties
What would be the properties filename for the resource bundle TextData for the French language?
TextData_fr.properties
Using SimpleDateFormat class, what does the pattern letter G represent?
Era
Using SimpleDateFormat class, what does the pattern letter M represent?
Month of year
Using SimpleDateFormat class, what does the pattern letter H represent?
Hours 0-23
Using SimpleDateFormat class, what do the pattern letters h and K represent?
Hours AM/PM
h = 1-12
k = 0-11
What is the syntax for properties in a properties file?
name = value