Skip to content

Commit

Permalink
Fix phrase in _just_time to use chosen instead of value
Browse files Browse the repository at this point in the history
  • Loading branch information
Petro31 committed Nov 20, 2023
1 parent a591708 commit 1973329
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions easy_time.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -1195,13 +1195,14 @@
{%- else %}
{%- set chosen = value %}
{%- endif %}
{%- set chosen = value | int %}
{%- if short %}
{%- set units = translate('time', item, index=0, language=language) %}
{%- else %}
{%- set units = translate('time', item, index=2, language=language) if value != 1 else translate('time', item, index=1, language=language) %}
{%- set units = translate('time', item, index=2, language=language) if chosen != 1 else translate('time', item, index=1, language=language) %}
{%- set units = ' %s' % units %}
{%- endif %}
{%- set ns.ret = ns.ret + [ '%s%s' % (chosen | int, units) ] %}
{%- set ns.ret = ns.ret + [ '%s%s' % (chosen, units) ] %}
{%- if biggest and ns.ret | length == 1 %}
{%- break %}
{%- endif %}
Expand Down

0 comments on commit 1973329

Please sign in to comment.