Mautic Community Forums

Relative date value enhancement #2607

Initially reported on https://github.com/mautic/mautic/issues/2607

Description:
In the PR #1587 and file

mautic/app/bundles/LeadBundle/Entity/LeadListRepository.php
Line 1218 in c44c1ab

it seems you can add relatives values.
Those relative values are given by transifex keys which means that the value is different depending on the language.
‘mautic.lead.list.month_next’,
‘mautic.lead.list.month_this’,
‘mautic.lead.list.today’,
‘mautic.lead.list.tomorrow’,
‘mautic.lead.list.yesterday’,
‘mautic.lead.list.week_last’,
‘mautic.lead.list.week_next’,
‘mautic.lead.list.week_this’,
‘mautic.lead.list.year_last’,
‘mautic.lead.list.year_next’,
‘mautic.lead.list.year_this’
Moreover, those values have to be written manually in the date field where we “expect” to write in the date format.

Suggestions
Add the translated relatives values in the dropdown operator. Then no risk that the user has to manage himself the text and by consequence insert error + generate error if mautic is used in different languages.