Use tr:: instead of lang().

This commit is contained in:
John Preston
2019-06-19 17:09:03 +02:00
parent d3ca6b96a1
commit 87fc066e67
168 changed files with 1905 additions and 1744 deletions

View File

@@ -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)
+ " / "