FileDocCategorySizeDatePackage
LocalizedStrings.javaAPI DocphoneME MR2 API (J2ME)5291Wed May 02 18:00:02 BST 2007com.sun.midp.l10n

LocalizedStrings

public class LocalizedStrings extends LocalizedStringsBase implements com.sun.midp.i18n.ResourceBundle
The English-US localization of ResourceBundle (the default, in the absence of any locale info specified). This also acts like a template for future localization experts to work on, when creating locale specific strings. Look for the message "L10N: REPLACE WITH LOCALE SPECIFIC VALUES" and replace with locale specific values. LocalizedStringsBase.java is generated from src/configuration/configurator/share/l10n/en-US.xml

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetLocalizedDateString(java.lang.String dayOfWeek, java.lang.String date, java.lang.String month, java.lang.String year)
Overrides ResourceBundle.getLocalizedDateString. Returns a string representing the date in locale specific date format.

param
dayOfWeek a String representing the day of the week.
param
date a String representing the date.
param
month a String representing the month.
param
year a String representing the year.
return
a formatted date string that is suited for the target language. In English, this will return: "Dec 05, 2003" (L10N: REPLACE WITH LOCALE SPECIFIC VALUE)

        return month + " " + date + ", " + year;
    
public java.lang.StringgetLocalizedDateTimeString(java.lang.String dayOfWeek, java.lang.String date, java.lang.String month, java.lang.String year, java.lang.String hour, java.lang.String min, java.lang.String sec, java.lang.String ampm)
Overrides ResourceBundle.getLocalizedDateTimeString. Returns the localized date time string value.

param
dayOfWeek a String representing the day of the week.
param
date a String representing the date.
param
month a String representing the month.
param
year a String representing the year.
param
hour a String representing the hour.
param
min a String representing the minute.
param
sec a String representing the second.
param
ampm a String representing am or pm. Note that ampm can be null.
return
a formatted date and time string that is suited for the. target language. In English, this will return: "Fri, 05 Dec 2000 10:05:59 PM" (L10N: REPLACE WITH LOCALE SPECIFIC VALUE)

	return getLocalizedDateString(dayOfWeek, date, month, year) + " " +
	    getLocalizedTimeString(hour, min, sec, ampm);
    
public intgetLocalizedFirstDayOfWeek()
Returns the locale specific first day of the week.

return
the first day of the week is; e.g., Sunday in US. (L10N: REPLACE WITH LOCALE SPECIFIC VALUE)

        return java.util.Calendar.SUNDAY;
    
public java.lang.StringgetLocalizedTimeString(java.lang.String hour, java.lang.String min, java.lang.String sec, java.lang.String ampm)
Overrides ResourceBundle.getLocalizedTimeString. Returns a string representing the time in locale specific time format.

param
hour a String representing the hour.
param
min a String representing the minute.
param
sec a String representing the second.
param
ampm a String representing am or pm. Note that ampm can be null.
return
a formatted time string that is suited for the target language. In English, this will return; "10:05:59 PM" (L10N: REPLACE WITH LOCALE SPECIFIC VALUE)

        return (hour + ":" + min + ((ampm == null) ? "" : (" " + ampm)));
    
public java.lang.StringgetString(int index)
Fetch the entire resource content.

return
2 dimension array of keys and US English strings.

        return getContent(index);
    
public booleanisLocalizedAMPMafterTime()
Returns whether AM_PM field comes after the time field or not in this locale.

return
true for US. (L10N: REPLACE WITH LOCALE SPECIFIC VALUE)

        return true;