Slightly improved phrases in subtitle of to-do list.

This commit is contained in:
23rd
2025-09-26 13:49:51 +03:00
committed by John Preston
parent 3296a2addb
commit 6183569dc2
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -6176,6 +6176,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_todo_title" = "Checklist"; "lng_todo_title" = "Checklist";
"lng_todo_title_group" = "Group Checklist"; "lng_todo_title_group" = "Group Checklist";
"lng_todo_title_user" = "Checklist";
"lng_todo_completed#one" = "{count} of {total} completed"; "lng_todo_completed#one" = "{count} of {total} completed";
"lng_todo_completed#other" = "{count} of {total} completed"; "lng_todo_completed#other" = "{count} of {total} completed";
"lng_todo_completed_none" = "None of {total} completed"; "lng_todo_completed_none" = "None of {total} completed";
@@ -279,9 +279,11 @@ void TodoList::updateTexts() {
_flags = _todolist->flags(); _flags = _todolist->flags();
_subtitle.setText( _subtitle.setText(
st::msgDateTextStyle, st::msgDateTextStyle,
(_todolist->othersCanComplete() (!_todolist->othersCanComplete()
? tr::lng_todo_title_group(tr::now) ? tr::lng_todo_title(tr::now)
: tr::lng_todo_title(tr::now))); : _parent->data()->history()->peer->isUser()
? tr::lng_todo_title_user(tr::now)
: tr::lng_todo_title_group(tr::now)));
} }
updateTasks(skipAnimations); updateTasks(skipAnimations);
} }