Skip to content

Commit

Permalink
#309: Add missing translation keys to get rid of hardcoded english wo…
Browse files Browse the repository at this point in the history
…rds.
  • Loading branch information
benitsch committed Jun 24, 2024
1 parent b6d8b40 commit 1f801fa
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ public class RelativeTimeTriggerFactory extends TriggerFactory<RelativeTimeTrigg
new IntegerValue("day")
.setMin(1)
.setDefaultValue(1)
.setName("Day")
.setDescription("Day of participation")
.setName("intervention.factory.trigger.relativeTime.configProps.day")
.setDescription("intervention.factory.trigger.relativeTime.configProps.dayDesc")
.setRequired(true),
new IntegerValue("hour")
.setMin(0)
.setMax(23)
.setDefaultValue(1)
.setName("Hour")
.setDescription("The hour of the given day")
.setName("intervention.factory.trigger.relativeTime.configProps.hour")
.setDescription("intervention.factory.trigger.relativeTime.configProps.hourDesc")
.setRequired(true)
);

Expand All @@ -34,12 +34,12 @@ public String getId() {

@Override
public String getTitle() {
return "Relative Time Trigger";
return "intervention.factory.trigger.relativeTime.title";
}

@Override
public String getDescription() {
return "Triggers an action on a given relative time (day and hour-of-day)";
return "intervention.factory.trigger.relativeTime.description";
}

@Override
Expand Down

0 comments on commit 1f801fa

Please sign in to comment.