2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -284,14 +284,8 @@ void SetupLocalPasscode(
lt_minutes_count,
QString::number(minutes))
: minutes
? tr::lng_passcode_autolock_minutes(
tr::now,
lt_count,
minutes)
: tr::lng_passcode_autolock_hours(
tr::now,
lt_count,
hours);
? tr::lng_minutes(tr::now, lt_count, minutes)
: tr::lng_hours(tr::now, lt_count, hours);
});
AddButtonWithLabel(
@@ -511,13 +505,13 @@ void SetupCloudPassword(
const auto hours = left / kHour;
const auto minutes = left / kMinute;
return days
? tr::lng_group_call_duration_days(tr::now, lt_count, days)
? tr::lng_days(tr::now, lt_count, days)
: hours
? tr::lng_group_call_duration_hours(tr::now, lt_count, hours)
? tr::lng_hours(tr::now, lt_count, hours)
: minutes
? tr::lng_group_call_duration_minutes(tr::now, lt_count, minutes)
? tr::lng_minutes(tr::now, lt_count, minutes)
: left
? tr::lng_group_call_duration_seconds(tr::now, lt_count, left)
? tr::lng_seconds(tr::now, lt_count, left)
: QString();
});