Methods Summary |
---|
public static java.lang.String | getString(java.lang.String msg)Retrieves a message which has no arguments.
// END android-changed
// BEGIN android-changed
ResourceBundle bundle = MsgHelp.loadBundle(sResource);
if (bundle == null) {
return msg;
}
// END android-changed
try {
return bundle.getString(msg);
} catch (MissingResourceException e) {
return msg;
}
|
public static java.lang.String | getString(java.lang.String msg, java.lang.Object arg)Retrieves a message which takes 1 argument.
return getString(msg, new Object[] { arg });
|
public static java.lang.String | getString(java.lang.String msg, int arg)Retrieves a message which takes 1 integer argument.
return getString(msg, new Object[] { Integer.toString(arg) });
|
public static java.lang.String | getString(java.lang.String msg, char arg)Retrieves a message which takes 1 character argument.
return getString(msg, new Object[] { String.valueOf(arg) });
|
public static java.lang.String | getString(java.lang.String msg, java.lang.Object arg1, java.lang.Object arg2)Retrieves a message which takes 2 arguments.
return getString(msg, new Object[] { arg1, arg2 });
|
public static java.lang.String | getString(java.lang.String msg, java.lang.Object[] args)Retrieves a message which takes several arguments.
String format = msg;
// BEGIN android-added
ResourceBundle bundle = MsgHelp.loadBundle(sResource);
// END android-added
if (bundle != null) {
try {
format = bundle.getString(msg);
} catch (MissingResourceException e) {
}
}
return MsgHelp.format(format, args);
|