i18n: Do not mark to translate predefined criterion types

FEA: ItEr76S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-07-03 08:08:59 +02:00
parent e35e3319d3
commit 759cc913d2

View file

@ -20,8 +20,6 @@
*/ */
package org.libreplan.business.resources.entities; package org.libreplan.business.resources.entities;
import static org.libreplan.business.i18n.I18nHelper._;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
@ -36,21 +34,21 @@ import org.libreplan.business.common.Registry;
*/ */
public enum PredefinedCriterionTypes implements ICriterionType<Criterion> { public enum PredefinedCriterionTypes implements ICriterionType<Criterion> {
LOCATION(_("LOCATION"), "Worker location", LOCATION("LOCATION", "Worker location",
false, true, true, ResourceEnum.WORKER) { false, true, true, ResourceEnum.WORKER) {
@Override @Override
public List<String> getPredefined() { public List<String> getPredefined() {
return LocationCriteria.getCriterionNames(); return LocationCriteria.getCriterionNames();
} }
}, },
CATEGORY(_("CATEGORY"), "Professional category", true, true, true, CATEGORY("CATEGORY", "Professional category", true, true, true,
ResourceEnum.WORKER) { ResourceEnum.WORKER) {
@Override @Override
public List<String> getPredefined() { public List<String> getPredefined() {
return CategoryCriteria.getCriterionNames(); return CategoryCriteria.getCriterionNames();
} }
}, },
SKILL(_("SKILL"), "Worker skill", true, true, true, SKILL("SKILL", "Worker skill", true, true, true,
ResourceEnum.WORKER) { ResourceEnum.WORKER) {
@Override @Override
public List<String> getPredefined() { public List<String> getPredefined() {