# I'd love help to understand a string

**URL:** <https://forums.ankiweb.net/t/id-love-help-to-understand-a-string/51494>\
**Category:** Development\
**Created:** [November 2, 2024, 9:35pm UTC](https://forums.ankiweb.net/t/id-love-help-to-understand-a-string/51494 "2024-11-02T21:35:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArthurMilchior](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/arthurmilchior/32/4684_2.png) [@ArthurMilchior](https://forums.ankiweb.net/u/ArthurMilchior)\
**Post date:** [November 2, 2024, 9:35pm UTC](https://forums.ankiweb.net/t/id-love-help-to-understand-a-string/51494/1 "2024-11-02T21:35:16Z")

</div>

> <https://github.com/ankitects/anki/blob/8b84583433d6400e64359dccfe1e2edde3df3e34/ftl/core/statistics.ftl#L74>

I’ve got one question. It probably does not matter, unless I seriously misunderstand something.

Why is there months and years entries?  
My understanding is that the `statistics-card` corresponds to the time you spent reviewing today.  
Even considering a 25 hours streak the very day where there is winter time saving, you’d get at most one day and one hours of review in a single day.  
So why did you create the theoretically possible to have the string “Studied 2 years today” ?

Admittedly, I’d be able to edit the database so that this string appears. But it’s not like something you’d have to care for.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [November 4, 2024, 2:41pm UTC](https://forums.ankiweb.net/t/id-love-help-to-understand-a-string/51494/2 "2024-11-04T14:41:12Z")

</div>

It’s for aliens doing Anki while traveling near the speed of light 😆  
I don’t think there’s any reason for that.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [November 4, 2024, 8:38pm UTC](https://forums.ankiweb.net/t/id-love-help-to-understand-a-string/51494/3 "2024-11-04T20:38:58Z")

</div>

We have a utility in the code that determines the appropriate unit for a given amount of seconds, and this is used in multiple strings. It was easier to re-use that than add special logic for this case.

---

<div class="post-metadata">

**Author:** ![ArthurMilchior](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/arthurmilchior/32/4684_2.png) [@ArthurMilchior](https://forums.ankiweb.net/u/ArthurMilchior)\
**Post date:** [November 9, 2024, 2:48am UTC](https://forums.ankiweb.net/t/id-love-help-to-understand-a-string/51494/4 "2024-11-09T02:48:24Z")

</div>

Admittedly, I would have expected that it’d be more works for all translators, and probably confusing work. But yeah, it makes sense from a programming point of view

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [December 9, 2024, 2:48am UTC](https://forums.ankiweb.net/t/id-love-help-to-understand-a-string/51494/5 "2024-12-09T02:48:33Z")

</div>

Closed on December 9, 2024, 2:48am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
