2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Unified general phrases for duration.

This commit is contained in:
23rd
2022-03-31 19:45:11 +03:00
committed by John Preston
parent fb750b69e3
commit d9541b6a6e
17 changed files with 61 additions and 153 deletions

View File

@@ -69,12 +69,9 @@ void GroupCallScheduledLeft::update() {
constexpr auto kDay = 24 * 60 * 60;
if (left >= kDay) {
const auto days = (left / kDay);
_textNonNegative = tr::lng_group_call_duration_days(
tr::now,
lt_count,
days);
_textNonNegative = tr::lng_days(tr::now, lt_count, days);
_text = late
? tr::lng_group_call_duration_days(tr::now, lt_count, -days)
? tr::lng_days(tr::now, lt_count, -days)
: _textNonNegative.current();
} else {
const auto hours = left / (60 * 60);