mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-12 01:36:26 -04:00
Fix up translation on badges
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user