mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Use tr:: instead of lang().
This commit is contained in:
@@ -65,38 +65,38 @@ Content ContentFromState(const ProcessingState &state) {
|
||||
};
|
||||
switch (state.step) {
|
||||
case Step::Initializing:
|
||||
pushMain(lang(lng_export_state_initializing));
|
||||
pushMain(tr::lng_export_state_initializing(tr::now));
|
||||
break;
|
||||
case Step::DialogsList:
|
||||
pushMain(lang(lng_export_state_chats_list));
|
||||
pushMain(tr::lng_export_state_chats_list(tr::now));
|
||||
break;
|
||||
case Step::PersonalInfo:
|
||||
pushMain(lang(lng_export_option_info));
|
||||
pushMain(tr::lng_export_option_info(tr::now));
|
||||
break;
|
||||
case Step::Userpics:
|
||||
pushMain(lang(lng_export_state_userpics));
|
||||
pushMain(tr::lng_export_state_userpics(tr::now));
|
||||
pushBytes(
|
||||
"userpic" + QString::number(state.entityIndex),
|
||||
state.bytesName);
|
||||
break;
|
||||
case Step::Contacts:
|
||||
pushMain(lang(lng_export_option_contacts));
|
||||
pushMain(tr::lng_export_option_contacts(tr::now));
|
||||
break;
|
||||
case Step::Sessions:
|
||||
pushMain(lang(lng_export_option_sessions));
|
||||
pushMain(tr::lng_export_option_sessions(tr::now));
|
||||
break;
|
||||
case Step::OtherData:
|
||||
pushMain(lang(lng_export_option_other));
|
||||
pushMain(tr::lng_export_option_other(tr::now));
|
||||
break;
|
||||
case Step::Dialogs:
|
||||
pushMain(lang(lng_export_state_chats));
|
||||
pushMain(tr::lng_export_state_chats(tr::now));
|
||||
push(
|
||||
"chat" + QString::number(state.entityIndex),
|
||||
(state.entityName.isEmpty()
|
||||
? lang(lng_deleted)
|
||||
? tr::lng_deleted(tr::now)
|
||||
: (state.entityType == ProcessingState::EntityType::Chat)
|
||||
? state.entityName
|
||||
: lang(lng_saved_messages)),
|
||||
: tr::lng_saved_messages(tr::now)),
|
||||
(state.itemCount > 0
|
||||
? (QString::number(state.itemIndex)
|
||||
+ " / "
|
||||
|
||||
Reference in New Issue
Block a user