intervalUnits = timeUnitText( intervalSeconds, "second" );
} else if ( scheduleType == ScheduleType.WEEKLY ) {
intervalSeconds = 604800;
intervalUnits = Messages.getString( "weekly" );
}
DateTimeFormat timeFormat = DateTimeFormat.getFormat( PredefinedFormat.TIME_MEDIUM );
if ( scheduleType == ScheduleType.WEEKLY ) {
int repeatInterval = getRepeatInterval();
trigDesc =
Messages.getString( "every" ) + " " + ( repeatInterval / 86400 ) + " " + Messages.getString( "daysLower" );
trigDesc += " at " + timeFormat.format( getStartTime() );
} else if ( intervalSeconds != getRepeatInterval() ) {
trigDesc = Messages.getString( "every" ) + " " + intervalUnits;
trigDesc += " at " + timeFormat.format( getStartTime() );
} else {
trigDesc = Messages.getString( "every" ) + " " + intervalUnits;
trigDesc += " at " + timeFormat.format( getStartTime() );
}
if ( getRepeatCount() > 0 ) {
trigDesc += "; " + Messages.getString( "run" ) + " " + getRepeatCount() + " " + Messages.getString( "times" );
// }
}