[win] online-installer: replacing app name with a placeholder

This commit is contained in:
SimplestStudio
2024-12-19 18:12:08 +02:00
parent d067c6d232
commit 3245f8d9b1
3 changed files with 6 additions and 4 deletions

View File

@ -140,8 +140,8 @@ ru.LABEL_NO_OPTIONS =Дополнительные опции недоступн
en.LABEL_NO_VER_AVAIL =No version available
ru.LABEL_NO_VER_AVAIL =Нет доступной версии
en.LABEL_WARN_CLOSE =This will install ONLYOFFICE Desktop Editors on your computer.\nIt is reccomended that you close all other applications before continuing.
ru.LABEL_WARN_CLOSE =Программа установит ONLYOFFICE Desktop Editors на ваш компьютер.\nРекомендуется закрыть все прочие приложения перед тем, как продолжить.
en.LABEL_WARN_CLOSE =This will install %1 on your computer.\nIt is reccomended that you close all other applications before continuing.
ru.LABEL_WARN_CLOSE =Программа установит %1 на ваш компьютер.\nРекомендуется закрыть все прочие приложения перед тем, как продолжить.
en.LABEL_ALMOST_DONE =Just a bit more and we're done
ru.LABEL_ALMOST_DONE =Еще немного и мы закончим

View File

@ -198,8 +198,10 @@ void MainWindow::initInstallationMode(const std::wstring &url)
});
/* Comment section */
wstring warn_text = _TR(LABEL_WARN_CLOSE);
NS_Utils::Replace(warn_text, L"%1", _T(WINDOW_NAME));
Label *comntLbl = new Label(m_cenPanel);
comntLbl->setText(_TR(LABEL_WARN_CLOSE), true);
comntLbl->setText(warn_text, true);
comntLbl->setGeometry(0, m_cenPanel->size().height - 130, m_cenPanel->size().width, 48);
setLabelStyle(comntLbl);

View File

@ -27,7 +27,7 @@
#define LABEL_UNKN_PACK "unknown package"
#define LABEL_NO_OPTIONS "No additional options available."
#define LABEL_NO_VER_AVAIL "No version available"
#define LABEL_WARN_CLOSE "This will install ONLYOFFICE Desktop Editors on your computer.\nIt is reccomended that you close all other applications before continuing."
#define LABEL_WARN_CLOSE "This will install %1 on your computer.\nIt is reccomended that you close all other applications before continuing."
#define LABEL_ALMOST_DONE "Just a bit more and we're done"
#define LABEL_INSTALL_COMPL "%1 has been successfully installed on your computer.\nTo run the application after closing this installer, select the check box."
#define LABEL_ERR_PROD_CODE "Error while retrieving product code."