ItEr54S04ValidacionEProbasFuncionaisItEr53S04: [Bug #377] Added i18n support to HoursManagementEnum and PositionInWorkReportEnum
This commit is contained in:
parent
9186a552f8
commit
54aecc4530
2 changed files with 15 additions and 5 deletions
|
|
@ -23,11 +23,13 @@
|
|||
*/
|
||||
package org.navalplanner.business.workreports.entities;
|
||||
|
||||
import static org.navalplanner.business.i18n.I18nHelper._;
|
||||
|
||||
public enum HoursManagementEnum {
|
||||
|
||||
NUMBER_OF_HOURS("Number of assigned hours."), HOURS_CALCULATED_BY_CLOCK(
|
||||
"Number of hours caculated by clock."), NUMBER_OF_HOURS_AND_CLOCK(
|
||||
"Number of assigned hours and the time.");
|
||||
NUMBER_OF_HOURS(_("Number of assigned hours.")),
|
||||
HOURS_CALCULATED_BY_CLOCK(_("Number of hours calculated by clock.")),
|
||||
NUMBER_OF_HOURS_AND_CLOCK(_("Number of assigned hours and the time."));
|
||||
|
||||
private String description;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,19 +23,27 @@
|
|||
*/
|
||||
package org.navalplanner.business.workreports.entities;
|
||||
|
||||
import static org.navalplanner.business.i18n.I18nHelper._;
|
||||
|
||||
/**
|
||||
* @author Susana Montes Pedreira <smontes@wirelessgalicia.com>
|
||||
*/
|
||||
public enum PositionInWorkReportEnum {
|
||||
|
||||
HEADING, LINE;
|
||||
HEADING(_("heading")), LINE(_("line"));
|
||||
|
||||
private String displayName;
|
||||
|
||||
private PositionInWorkReportEnum(String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
public static PositionInWorkReportEnum getDefault() {
|
||||
return LINE;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return name().toLowerCase();
|
||||
return displayName;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue