StringBuilder sb = new StringBuilder();
Unit[] vals = Unit.values();
for (int i = vals.length - 1; i >= 0; i--) {
Unit u = vals[i];
if (!u.isToLocalizedStringeable())
continue;
if (value >= u.getMilliseconds()) {
long part = value / u.getMilliseconds();
value = value % u.getMilliseconds();
if (part>0) {
String resKey = u.getResourceKey();
if (part>1) {
resKey += "s"; // for plural
}
String message = mb.retrieveMessage(resKey, new String[]{Long.toString(part)});
if (message.length()>0) {