Localization Flashcards

1
Q

Which term describes an application that can adapt to various languages and regions without recompilation?

A

internationalized

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which two language code types are acceptable for the Locale constructor?

A

ISO 639 language code or an 8-character language subtag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four ways to create a Locale object?

A

1) Constant (Locale.US)
2) builder forLanague(x).forRegion(r).build();
3) Constructor Locale(lang,region)
4) forLanguageTag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Using SimpleDateFormat class, what does the pattern letter s represent?

A

seconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Using SimpleDateFormat class, what do the pattern letters z,Z and X represent?

A

timezone

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which term describes the process of adapting an internationalized application to a specific region or language?

A

localization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a properties file used in localization?

A

A text file that contains name/value pairs for a specified resource bundle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the requirements for naming a properties file?

A

filename_lang_region_ss.properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What would be the properties filename for the resource bundle TextData for the Spanish Mexican locale?

A

TextData.es.MX.properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What would be the properties filename for the resource bundle TextData for the French language?

A

TextData_fr.properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Using SimpleDateFormat class, what does the pattern letter G represent?

A

Era

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Using SimpleDateFormat class, what does the pattern letter M represent?

A

Month of year

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Using SimpleDateFormat class, what does the pattern letter H represent?

A

Hours 0-23

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Using SimpleDateFormat class, what do the pattern letters h and K represent?

A

Hours AM/PM
h = 1-12
k = 0-11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the syntax for properties in a properties file?

A

name = value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What would be the properties filename for the resource bundle TextData for the French Canadian locale?

A

TextData_fr_CA.properties

17
Q

Using SimpleDateFormat class, what does the pattern letter W represent?

A

week in month

18
Q

Using SimpleDateFormat class, what does the pattern letter a represent?

A

am/pm marker

19
Q

Using SimpleDateFormat class, what does the pattern letter m represent?

A

minutes

20
Q

Using SimpleDateFormat class, what does the pattern letter S represent?

A

Milliseconds

21
Q

Which two aspects does a locale identify?

A

Language, Region

22
Q

Using SimpleDateFormat class, what does the pattern letter w represent?

A

Week in year

23
Q

Using SimpleDateFormat class, what does the pattern letter D represent?

A

Day in year

24
Q

Using SimpleDateFormat class, what does the pattern letter d represent?

A

Day in month

25
Q

What does the DateFormat Class do?

A

DateFormat is an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner.

26
Q

What classes extend DateFormat?

A

SimpleDateFormat

27
Q

How to get a DateFormat instance?

A

DateFormat.getDateInstance(),
DateFormat.getDateInstance(style[, locale]),
DateFormat.getDateTimeInstance(dateStyle, timeStyle[, locale])
DateFormat.getInstance() // SHORT syle

28
Q

Is DateFormat a class or interface?

A

AbstractClass that extends abstract class Format