[Bug #783] Fixed problem with ResourceEnum translation.
FEA: ItEr67S04BugFixing
This commit is contained in:
parent
923e816cd7
commit
e0aa75641d
1 changed files with 7 additions and 1 deletions
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
package org.navalplanner.business.resources.entities;
|
||||
|
||||
import static org.navalplanner.business.i18n.I18nHelper._;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -32,6 +31,13 @@ public enum ResourceEnum {
|
|||
WORKER(Worker.class, _("WORKER")),
|
||||
MACHINE(Machine.class, _("MACHINE"));
|
||||
|
||||
/**
|
||||
* Forces to mark the string as needing translation
|
||||
*/
|
||||
private static String _(String string) {
|
||||
return string;
|
||||
}
|
||||
|
||||
private Class<? extends Resource> klass;
|
||||
private final String displayName;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue