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

@@ -518,16 +518,13 @@ void Widget::resetAccount() {
const auto days = (seconds + 59) / 86400;
const auto hours = ((seconds + 59) % 86400) / 3600;
const auto minutes = ((seconds + 59) % 3600) / 60;
auto when = tr::lng_signin_reset_minutes(
tr::now,
lt_count,
minutes);
auto when = tr::lng_minutes(tr::now, lt_count, minutes);
if (days > 0) {
const auto daysCount = tr::lng_signin_reset_days(
const auto daysCount = tr::lng_days(
tr::now,
lt_count,
days);
const auto hoursCount = tr::lng_signin_reset_hours(
const auto hoursCount = tr::lng_hours(
tr::now,
lt_count,
hours);
@@ -540,7 +537,7 @@ void Widget::resetAccount() {
lt_minutes_count,
when);
} else if (hours > 0) {
const auto hoursCount = tr::lng_signin_reset_hours(
const auto hoursCount = tr::lng_hours(
tr::now,
lt_count,
hours);