Fix up translation on badges

This commit is contained in:
Brenda Wallace
2019-02-08 14:27:28 +13:00
parent fcd147412c
commit aa8ed5bb3a
2 changed files with 7 additions and 5 deletions

View File

@@ -10,17 +10,15 @@
- else
.badge{'data-toggle': "tooltip", 'data-placement': "top", title: 'Days until planting is finished'}
= finished_icon
= days_from_now_to_finished(planting)
=t 'label.days'
= t('label.days_until_finished', number: days_from_now_to_finished(planting))
// Harvest times
- unless planting.super_late?
- if planting.harvest_time?
.badge.badge-harvest{'data-toggle': "tooltip", 'data-placement': "top", title: 'Planting is ready for harvesting now'}
= harvest_icon
harvesting now
= t('label.harvesting_now')
- elsif planting.before_harvest_time?
.badge{'data-toggle': "tooltip", 'data-placement': "top", title: 'Predicted days until harvest'}
= harvest_icon
= days_from_now_to_first_harvest(planting)
= t 'label.days'
= t('label.days_until_harvest', number: days_from_now_to_first_harvest(planting))

View File

@@ -190,6 +190,10 @@ en:
number_crops_linktext: "%{count} crops"
number_gardens_linktext: "%{count} gardens"
number_plantings_linktext: "%{count} times"
label:
days_until_harvest: "%{number} days until harvest"
days_until_finished: "%{number} days until finished"
harvesting_now: harvesting now
layouts:
header:
account: Account