UpdateInfo: Tr::tr

Change-Id: I7167f675bf58793cb38e11bfd58902bb7537c4b9
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2023-01-20 10:04:40 +01:00
parent 3244819d3a
commit d92be80610
13 changed files with 58 additions and 155 deletions

View File

@@ -39691,7 +39691,7 @@ Filtr: %2
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name> <name>::UpdateInfo</name>
<message> <message>
<source>Could not determine location of maintenance tool. Please check your installation if you did not enable this plugin manually.</source> <source>Could not determine location of maintenance tool. Please check your installation if you did not enable this plugin manually.</source>
<translation>Nepodařilo se najít umístění nástroje na správu. Prověřte, prosím, svoji instalaci, pokud jste tento přídavný modul nezapnuli ručně.</translation> <translation>Nepodařilo se najít umístění nástroje na správu. Prověřte, prosím, svoji instalaci, pokud jste tento přídavný modul nezapnuli ručně.</translation>
@@ -53948,7 +53948,7 @@ monitor reset</source>
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsWidget</name> <name>::UpdateInfo</name>
<message> <message>
<source>Configure Filters</source> <source>Configure Filters</source>
<translation>Nastavit filtry</translation> <translation>Nastavit filtry</translation>
@@ -55406,11 +55406,7 @@ se vyskytla chyba</translation>
</message> </message>
</context> </context>
<context> <context>
<name>Update</name> <name>::UpdateInfo</name>
<message>
<source>Update</source>
<translation>Aktualizovat</translation>
</message>
</context> </context>
<context> <context>
<name>::Valgrind</name> <name>::Valgrind</name>

View File

@@ -36367,14 +36367,11 @@ Vil blive anvendt på blanktegn i kommentarer og strenge.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>Update</name> <name>::UpdateInfo</name>
<message> <message>
<source>Update</source> <source>Update</source>
<translation>Opdater</translation> <translation>Opdater</translation>
</message> </message>
</context>
<context>
<name>UpdateInfo::Internal::SettingsPage</name>
<message> <message>
<source>Daily</source> <source>Daily</source>
<translation>Dagligt</translation> <translation>Dagligt</translation>
@@ -36403,9 +36400,6 @@ Vil blive anvendt på blanktegn i kommentarer og strenge.</translation>
<source>Not checked yet</source> <source>Not checked yet</source>
<translation>Endnu ikke tjekket</translation> <translation>Endnu ikke tjekket</translation>
</message> </message>
</context>
<context>
<name>UpdateInfo::Internal::SettingsWidget</name>
<message> <message>
<source>Configure Filters</source> <source>Configure Filters</source>
<translation>Konfigurer filtre</translation> <translation>Konfigurer filtre</translation>
@@ -36426,10 +36420,6 @@ Vil blive anvendt på blanktegn i kommentarer og strenge.</translation>
<source>Last check date:</source> <source>Last check date:</source>
<translation>Sidste tjekdato:</translation> <translation>Sidste tjekdato:</translation>
</message> </message>
<message>
<source>Not checked yet</source>
<translation>Endnu ikke tjekket</translation>
</message>
<message> <message>
<source>Check Now</source> <source>Check Now</source>
<translation>Tjek nu</translation> <translation>Tjek nu</translation>
@@ -36438,9 +36428,6 @@ Vil blive anvendt på blanktegn i kommentarer og strenge.</translation>
<source>Automatically runs a scheduled check for updates on a time interval basis. The automatic check for updates will be performed at the scheduled date, or the next startup following it.</source> <source>Automatically runs a scheduled check for updates on a time interval basis. The automatic check for updates will be performed at the scheduled date, or the next startup following it.</source>
<translation>Kører automatisk en planlagt søgning efter opdateringer et tidsinterval basis. Den automatiske søgning efter opdateringer udføres den planlagte dato eller den næste opstart som kommer efter.</translation> <translation>Kører automatisk en planlagt søgning efter opdateringer et tidsinterval basis. Den automatiske søgning efter opdateringer udføres den planlagte dato eller den næste opstart som kommer efter.</translation>
</message> </message>
</context>
<context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name>
<message> <message>
<source>Qt Updater</source> <source>Qt Updater</source>
<translation>Qt opdatering</translation> <translation>Qt opdatering</translation>

View File

@@ -21063,7 +21063,7 @@ Außer: %3
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name> <name>::UpdateInfo</name>
<message> <message>
<source>Checking for Updates</source> <source>Checking for Updates</source>
<translation>Aktualisierungen werden gesucht</translation> <translation>Aktualisierungen werden gesucht</translation>
@@ -45718,7 +45718,7 @@ Do you want to display them anyway?</source>
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::UpdateInfoSettingsPage</name> <name>::UpdateInfo</name>
<message> <message>
<source>Daily</source> <source>Daily</source>
<translation>Täglich</translation> <translation>Täglich</translation>

View File

@@ -38227,7 +38227,7 @@ Filtre : %2
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name> <name>::UpdateInfo</name>
<message> <message>
<source>Could not determine location of maintenance tool. Please check your installation if you did not enable this plugin manually.</source> <source>Could not determine location of maintenance tool. Please check your installation if you did not enable this plugin manually.</source>
<translation>Impossible de déterminer l&apos;emplacement de l&apos;outil de maintenant. Veuillez vérifier votre installation si vous n&apos;avez pas activé ce module manuellement.</translation> <translation>Impossible de déterminer l&apos;emplacement de l&apos;outil de maintenant. Veuillez vérifier votre installation si vous n&apos;avez pas activé ce module manuellement.</translation>
@@ -50651,7 +50651,7 @@ réinitialisation du moniteur</translation>
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsWidget</name> <name>::UpdateInfo</name>
<message> <message>
<source>Configure Filters</source> <source>Configure Filters</source>
<translation>Configurer les filtres</translation> <translation>Configurer les filtres</translation>
@@ -52056,11 +52056,7 @@ Veuillez fermer toutes les instances de votre application en cours d&apos;exécu
</message> </message>
</context> </context>
<context> <context>
<name>Update</name> <name>::UpdateInfo</name>
<message>
<source>Update</source>
<translation>Mettre à jour</translation>
</message>
</context> </context>
<context> <context>
<name>::Valgrind</name> <name>::Valgrind</name>

View File

@@ -8586,7 +8586,7 @@ Utječe na uvlačenje neprekinutih redaka.
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsWidget</name> <name>::UpdateInfo</name>
<message> <message>
<source>Configure Filters</source> <source>Configure Filters</source>
<translation>Konfiguriraj filtre</translation> <translation>Konfiguriraj filtre</translation>
@@ -35324,14 +35324,11 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima.</translation
</message> </message>
</context> </context>
<context> <context>
<name>Update</name> <name>::UpdateInfo</name>
<message> <message>
<source>Update</source> <source>Update</source>
<translation>Aktualiziraj</translation> <translation>Aktualiziraj</translation>
</message> </message>
</context>
<context>
<name>UpdateInfo::Internal::SettingsPage</name>
<message> <message>
<source>Daily</source> <source>Daily</source>
<translation>Dnevno</translation> <translation>Dnevno</translation>
@@ -35356,13 +35353,6 @@ Neće se primijeniti na bjeline u komentarima i znakovnim nizovima.</translation
<source>Checking for updates...</source> <source>Checking for updates...</source>
<translation>Provjeravanje nadogradnji </translation> <translation>Provjeravanje nadogradnji </translation>
</message> </message>
<message>
<source>Not checked yet</source>
<translation>Još nije provjereno</translation>
</message>
</context>
<context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name>
<message> <message>
<source>Qt Updater</source> <source>Qt Updater</source>
<translation>Qt Updater</translation> <translation>Qt Updater</translation>

View File

@@ -6776,7 +6776,7 @@ Influences the indentation of continuation lines.
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsWidget</name> <name>::UpdateInfo</name>
<message> <message>
<source>Configure Filters</source> <source>Configure Filters</source>
<translation></translation> <translation></translation>
@@ -30565,7 +30565,7 @@ Will not be applied to whitespace in comments and strings.</source>
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name> <name>::UpdateInfo</name>
<message> <message>
<source>Updater</source> <source>Updater</source>
<translation></translation> <translation></translation>
@@ -30591,9 +30591,6 @@ Will not be applied to whitespace in comments and strings.</source>
<source>Check for Updates</source> <source>Check for Updates</source>
<translation></translation> <translation></translation>
</message> </message>
</context>
<context>
<name>Update</name>
<message> <message>
<source>Update</source> <source>Update</source>
<translation></translation> <translation></translation>
@@ -41643,7 +41640,7 @@ Android パッケージソースディレクトリのファイルはビルドデ
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsPage</name> <name>::UpdateInfo</name>
<message> <message>
<source>Daily</source> <source>Daily</source>
<translation></translation> <translation></translation>
@@ -41668,10 +41665,6 @@ Android パッケージソースディレクトリのファイルはビルドデ
<source>Checking for updates...</source> <source>Checking for updates...</source>
<translation>...</translation> <translation>...</translation>
</message> </message>
<message>
<source>Not checked yet</source>
<translation></translation>
</message>
</context> </context>
<context> <context>
<name>::Valgrind</name> <name>::Valgrind</name>
@@ -48674,35 +48667,7 @@ Row: %4, Column: %5
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::UpdateInfoSettingsPage</name> <name>::UpdateInfo</name>
<message>
<source>Daily</source>
<translation></translation>
</message>
<message>
<source>Weekly</source>
<translation></translation>
</message>
<message>
<source>Monthly</source>
<translation></translation>
</message>
<message>
<source>New updates are available.</source>
<translation></translation>
</message>
<message>
<source>No new updates are available.</source>
<translation></translation>
</message>
<message>
<source>Checking for updates...</source>
<translation>...</translation>
</message>
<message>
<source>Not checked yet</source>
<translation></translation>
</message>
<message> <message>
<source>Update</source> <source>Update</source>
<comment>Update</comment> <comment>Update</comment>

View File

@@ -18231,7 +18231,7 @@ Wykluczenia: %3
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name> <name>::UpdateInfo</name>
<message> <message>
<source>Updater</source> <source>Updater</source>
<translation>Aktualizator</translation> <translation>Aktualizator</translation>
@@ -25566,7 +25566,7 @@ Zdalny: %4</translation>
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsWidget</name> <name>::UpdateInfo</name>
<message> <message>
<source>Configure Filters</source> <source>Configure Filters</source>
<translation>Konfiguracja filtrów</translation> <translation>Konfiguracja filtrów</translation>
@@ -26846,7 +26846,7 @@ Proszę zamknąć wszystkie instancje tej aplikacji przed uruchomieniem budowani
</message> </message>
</context> </context>
<context> <context>
<name>Update</name> <name>::UpdateInfo</name>
<message> <message>
<source>Update</source> <source>Update</source>
<translation>Uaktualnij</translation> <translation>Uaktualnij</translation>
@@ -33326,7 +33326,7 @@ Ustawianie pułapek w liniach plików może się nie udać.</translation>
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsPage</name> <name>::UpdateInfo</name>
<message> <message>
<source>Daily</source> <source>Daily</source>
<translation>Codziennie</translation> <translation>Codziennie</translation>
@@ -33351,10 +33351,6 @@ Ustawianie pułapek w liniach plików może się nie udać.</translation>
<source>Checking for updates...</source> <source>Checking for updates...</source>
<translation>Sprawdzanie dostępności aktualizacji...</translation> <translation>Sprawdzanie dostępności aktualizacji...</translation>
</message> </message>
<message>
<source>Not checked yet</source>
<translation>Jeszcze nie sprawdzano</translation>
</message>
</context> </context>
<context> <context>
<name>::VcsBase</name> <name>::VcsBase</name>

View File

@@ -46127,7 +46127,7 @@ The trace data is lost.</source>
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsWidget</name> <name>::UpdateInfo</name>
<message> <message>
<source>Configure Filters</source> <source>Configure Filters</source>
<translation>Настройка фильтров</translation> <translation>Настройка фильтров</translation>
@@ -46160,9 +46160,6 @@ The trace data is lost.</source>
<source>Automatically runs a scheduled check for updates on a time interval basis. The automatic check for updates will be performed at the scheduled date, or the next startup following it.</source> <source>Automatically runs a scheduled check for updates on a time interval basis. The automatic check for updates will be performed at the scheduled date, or the next startup following it.</source>
<translation>Проверка на наличие обновлений будет запускаться периодически. Она осуществляется в запланированное время или при следующем запуске среды разработки.</translation> <translation>Проверка на наличие обновлений будет запускаться периодически. Она осуществляется в запланированное время или при следующем запуске среды разработки.</translation>
</message> </message>
</context>
<context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name>
<message> <message>
<source>Checking for Updates</source> <source>Checking for Updates</source>
<translation>Проверка обновлений</translation> <translation>Проверка обновлений</translation>
@@ -46195,9 +46192,6 @@ The trace data is lost.</source>
<source>Check for Updates</source> <source>Check for Updates</source>
<translation>Проверить обновления</translation> <translation>Проверить обновления</translation>
</message> </message>
</context>
<context>
<name>UpdateInfo::Internal::UpdateInfoSettingsPage</name>
<message> <message>
<source>Daily</source> <source>Daily</source>
<translation>Ежедневно</translation> <translation>Ежедневно</translation>
@@ -46222,10 +46216,6 @@ The trace data is lost.</source>
<source>Checking for updates...</source> <source>Checking for updates...</source>
<translation>Проверка обновлений...</translation> <translation>Проверка обновлений...</translation>
</message> </message>
<message>
<source>Not checked yet</source>
<translation>не выполнялась</translation>
</message>
<message> <message>
<source>Update</source> <source>Update</source>
<comment>Update</comment> <comment>Update</comment>

View File

@@ -20078,7 +20078,7 @@ Will not be applied to whitespace in comments and strings.</source>
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name> <name>::UpdateInfo</name>
<message> <message>
<source>Updater</source> <source>Updater</source>
<translation>Оновлючач</translation> <translation>Оновлючач</translation>
@@ -20119,10 +20119,6 @@ Will not be applied to whitespace in comments and strings.</source>
<source>Updates available</source> <source>Updates available</source>
<translation type="vanished">Доступні оновлення</translation> <translation type="vanished">Доступні оновлення</translation>
</message> </message>
<message>
<source>Update</source>
<translation type="vanished">Оновити</translation>
</message>
</context> </context>
<context> <context>
<name>Utils::CheckableMessageBox</name> <name>Utils::CheckableMessageBox</name>
@@ -33349,7 +33345,7 @@ monitor reset</translation>
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsWidget</name> <name>::UpdateInfo</name>
<message> <message>
<source>Configure Filters</source> <source>Configure Filters</source>
<translation>Налаштування фільтрів</translation> <translation>Налаштування фільтрів</translation>
@@ -34755,7 +34751,7 @@ Please close all running instances of your application before starting a build.<
</message> </message>
</context> </context>
<context> <context>
<name>Update</name> <name>::UpdateInfo</name>
<message> <message>
<source>Update</source> <source>Update</source>
<translation>Оновити</translation> <translation>Оновити</translation>
@@ -42698,7 +42694,7 @@ Output:
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::SettingsPage</name> <name>::UpdateInfo</name>
<message> <message>
<source>Daily</source> <source>Daily</source>
<translation>Щоденно</translation> <translation>Щоденно</translation>
@@ -42723,10 +42719,6 @@ Output:
<source>Checking for updates...</source> <source>Checking for updates...</source>
<translation>Перевірка оновлень...</translation> <translation>Перевірка оновлень...</translation>
</message> </message>
<message>
<source>Not checked yet</source>
<translation>Ще не перевірялось</translation>
</message>
</context> </context>
<context> <context>
<name>::VcsBase</name> <name>::VcsBase</name>

View File

@@ -45228,9 +45228,6 @@ The trace data is lost.</source>
<source>Start Maintenance Tool</source> <source>Start Maintenance Tool</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name>
<message> <message>
<source>Could not determine location of maintenance tool. Please check your installation if you did not enable this plugin manually.</source> <source>Could not determine location of maintenance tool. Please check your installation if you did not enable this plugin manually.</source>
<translation>()</translation> <translation>()</translation>
@@ -45280,9 +45277,6 @@ The trace data is lost.</source>
<source>Check for Updates</source> <source>Check for Updates</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context>
<context>
<name>UpdateInfo::Internal::UpdateInfoSettingsPage</name>
<message> <message>
<source>Configure Filters</source> <source>Configure Filters</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>

View File

@@ -24982,7 +24982,7 @@ Filter: %2
</message> </message>
</context> </context>
<context> <context>
<name>UpdateInfo::Internal::UpdateInfoPlugin</name> <name>::UpdateInfo</name>
<message> <message>
<source>Could not determine location of maintenance tool. Please check your installation if you did not enable this plugin manually.</source> <source>Could not determine location of maintenance tool. Please check your installation if you did not enable this plugin manually.</source>
<translation></translation> <translation></translation>

View File

@@ -24,28 +24,26 @@ namespace Internal {
class UpdateInfoSettingsPageWidget final : public Core::IOptionsPageWidget class UpdateInfoSettingsPageWidget final : public Core::IOptionsPageWidget
{ {
Q_DECLARE_TR_FUNCTIONS(UpdateInfo::Internal::UpdateInfoSettingsPage)
public: public:
UpdateInfoSettingsPageWidget(UpdateInfoPlugin *plugin) UpdateInfoSettingsPageWidget(UpdateInfoPlugin *plugin)
: m_plugin(plugin) : m_plugin(plugin)
{ {
setWindowTitle(tr("Configure Filters")); setWindowTitle(Tr::tr("Configure Filters"));
m_updatesGroupBox = new QGroupBox(tr("Automatic Check for Updates")); m_updatesGroupBox = new QGroupBox(Tr::tr("Automatic Check for Updates"));
m_updatesGroupBox->setCheckable(true); m_updatesGroupBox->setCheckable(true);
m_updatesGroupBox->setChecked(true); m_updatesGroupBox->setChecked(true);
m_infoLabel = new QLabel(tr("Automatically runs a scheduled check for updates on " m_infoLabel = new QLabel(Tr::tr("Automatically runs a scheduled check for updates on "
"a time interval basis. The automatic check for updates " "a time interval basis. The automatic check for updates "
"will be performed at the scheduled date, or the next " "will be performed at the scheduled date, or the next "
"startup following it.")); "startup following it."));
m_infoLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); m_infoLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
m_infoLabel->setWordWrap(true); m_infoLabel->setWordWrap(true);
m_checkIntervalComboBox = new QComboBox; m_checkIntervalComboBox = new QComboBox;
m_nextCheckDateLabel = new QLabel; m_nextCheckDateLabel = new QLabel;
m_checkForNewQtVersions = new QCheckBox(tr("Check for new Qt versions")); m_checkForNewQtVersions = new QCheckBox(Tr::tr("Check for new Qt versions"));
using namespace Utils::Layouting; using namespace Utils::Layouting;
@@ -53,8 +51,8 @@ public:
m_infoLabel, m_infoLabel,
Row { Row {
Form { Form {
new QLabel(tr("Check interval basis:")), m_checkIntervalComboBox, br, new QLabel(Tr::tr("Check interval basis:")), m_checkIntervalComboBox, br,
new QLabel(tr("Next check date:")), m_nextCheckDateLabel new QLabel(Tr::tr("Next check date:")), m_nextCheckDateLabel
}, },
st st
}, },
@@ -63,14 +61,14 @@ public:
m_lastCheckDateLabel = new QLabel; m_lastCheckDateLabel = new QLabel;
m_checkNowButton = new QPushButton(tr("Check Now")); m_checkNowButton = new QPushButton(Tr::tr("Check Now"));
m_messageLabel = new QLabel; m_messageLabel = new QLabel;
Column { Column {
m_updatesGroupBox, m_updatesGroupBox,
Row { Row {
new QLabel(tr("Last check date:")), new QLabel(Tr::tr("Last check date:")),
m_lastCheckDateLabel, m_lastCheckDateLabel,
st, st,
Row { Row {
@@ -84,11 +82,11 @@ public:
m_checkIntervalComboBox->setCurrentIndex(-1); m_checkIntervalComboBox->setCurrentIndex(-1);
m_lastCheckDateLabel->setText(tr("Not checked yet")); m_lastCheckDateLabel->setText(Tr::tr("Not checked yet"));
m_checkIntervalComboBox->addItem(tr("Daily"), UpdateInfoPlugin::DailyCheck); m_checkIntervalComboBox->addItem(Tr::tr("Daily"), UpdateInfoPlugin::DailyCheck);
m_checkIntervalComboBox->addItem(tr("Weekly"), UpdateInfoPlugin::WeeklyCheck); m_checkIntervalComboBox->addItem(Tr::tr("Weekly"), UpdateInfoPlugin::WeeklyCheck);
m_checkIntervalComboBox->addItem(tr("Monthly"), UpdateInfoPlugin::MonthlyCheck); m_checkIntervalComboBox->addItem(Tr::tr("Monthly"), UpdateInfoPlugin::MonthlyCheck);
UpdateInfoPlugin::CheckUpdateInterval interval = m_plugin->checkUpdateInterval(); UpdateInfoPlugin::CheckUpdateInterval interval = m_plugin->checkUpdateInterval();
for (int i = 0; i < m_checkIntervalComboBox->count(); i++) { for (int i = 0; i < m_checkIntervalComboBox->count(); i++) {
if (m_checkIntervalComboBox->itemData(i).toInt() == interval) { if (m_checkIntervalComboBox->itemData(i).toInt() == interval) {
@@ -147,8 +145,8 @@ UpdateInfoPlugin::CheckUpdateInterval UpdateInfoSettingsPageWidget::currentCheck
void UpdateInfoSettingsPageWidget::newUpdatesAvailable(bool available) void UpdateInfoSettingsPageWidget::newUpdatesAvailable(bool available)
{ {
const QString message = available const QString message = available
? tr("New updates are available.") ? Tr::tr("New updates are available.")
: tr("No new updates are available."); : Tr::tr("No new updates are available.");
m_messageLabel->setText(message); m_messageLabel->setText(message);
} }
@@ -169,7 +167,7 @@ void UpdateInfoSettingsPageWidget::checkRunningChanged(bool running)
} }
const QString message = running const QString message = running
? tr("Checking for updates...") : QString(); ? Tr::tr("Checking for updates...") : QString();
m_messageLabel->setText(message); m_messageLabel->setText(message);
} }
@@ -180,7 +178,7 @@ void UpdateInfoSettingsPageWidget::updateLastCheckDate()
if (date.isValid()) if (date.isValid())
lastCheckDateString = date.toString(); lastCheckDateString = date.toString();
else else
lastCheckDateString = tr("Not checked yet"); lastCheckDateString = Tr::tr("Not checked yet");
m_lastCheckDateLabel->setText(lastCheckDateString); m_lastCheckDateLabel->setText(lastCheckDateString);
@@ -209,7 +207,7 @@ SettingsPage::SettingsPage(UpdateInfoPlugin *plugin)
{ {
setId(FILTER_OPTIONS_PAGE_ID); setId(FILTER_OPTIONS_PAGE_ID);
setCategory(Core::Constants::SETTINGS_CATEGORY_CORE); setCategory(Core::Constants::SETTINGS_CATEGORY_CORE);
setDisplayName(UpdateInfoSettingsPageWidget::tr("Update", "Update")); setDisplayName(Tr::tr("Update"));
setWidgetCreator([plugin] { return new UpdateInfoSettingsPageWidget(plugin); }); setWidgetCreator([plugin] { return new UpdateInfoSettingsPageWidget(plugin); });
} }

View File

@@ -153,7 +153,7 @@ void UpdateInfoPlugin::startCheckForUpdates()
connect(d->m_taskTree.get(), &TaskTree::errorOccurred, this, doCleanup); connect(d->m_taskTree.get(), &TaskTree::errorOccurred, this, doCleanup);
d->m_progress = new TaskProgress(d->m_taskTree.get()); d->m_progress = new TaskProgress(d->m_taskTree.get());
d->m_progress->setHalfLifeTimePerTask(30000); // 30 seconds d->m_progress->setHalfLifeTimePerTask(30000); // 30 seconds
d->m_progress->setDisplayName(tr("Checking for Updates")); d->m_progress->setDisplayName(Tr::tr("Checking for Updates"));
d->m_progress->setKeepOnFinish(FutureProgress::KeepOnFinishTillUserInteraction); d->m_progress->setKeepOnFinish(FutureProgress::KeepOnFinishTillUserInteraction);
d->m_progress->setSubtitleVisibleInStatusBar(true); d->m_progress->setSubtitleVisibleInStatusBar(true);
d->m_taskTree->start(); d->m_taskTree->start();
@@ -179,14 +179,14 @@ static QString infoTitle(const QList<Update> &updates, const std::optional<QtPac
{ {
static QString blogUrl("href=\"https://www.qt.io/blog/tag/releases\""); static QString blogUrl("href=\"https://www.qt.io/blog/tag/releases\"");
if (!updates.isEmpty() && newQt) { if (!updates.isEmpty() && newQt) {
return UpdateInfoPlugin::tr( return Tr::tr(
"%1 and other updates are available. Check the <a %2>Qt blog</a> for details.") "%1 and other updates are available. Check the <a %2>Qt blog</a> for details.")
.arg(newQt->displayName, blogUrl); .arg(newQt->displayName, blogUrl);
} else if (newQt) { } else if (newQt) {
return UpdateInfoPlugin::tr("%1 is available. Check the <a %2>Qt blog</a> for details.") return Tr::tr("%1 is available. Check the <a %2>Qt blog</a> for details.")
.arg(newQt->displayName, blogUrl); .arg(newQt->displayName, blogUrl);
} }
return UpdateInfoPlugin::tr("New updates are available. Start the update?"); return Tr::tr("New updates are available. Start the update?");
} }
static void showUpdateInfo(const QList<Update> &updates, static void showUpdateInfo(const QList<Update> &updates,
@@ -195,17 +195,17 @@ static void showUpdateInfo(const QList<Update> &updates,
const std::function<void()> &startPackageManager) const std::function<void()> &startPackageManager)
{ {
InfoBarEntry info(InstallUpdates, infoTitle(updates, newQt)); InfoBarEntry info(InstallUpdates, infoTitle(updates, newQt));
info.addCustomButton(UpdateInfoPlugin::tr("Open Settings"), [] { info.addCustomButton(Tr::tr("Open Settings"), [] {
ICore::infoBar()->removeInfo(InstallQtUpdates); ICore::infoBar()->removeInfo(InstallQtUpdates);
ICore::showOptionsDialog(FILTER_OPTIONS_PAGE_ID); ICore::showOptionsDialog(FILTER_OPTIONS_PAGE_ID);
}); });
if (newQt) { if (newQt) {
info.addCustomButton(UpdateInfoPlugin::tr("Start Package Manager"), [startPackageManager] { info.addCustomButton(Tr::tr("Start Package Manager"), [startPackageManager] {
ICore::infoBar()->removeInfo(InstallQtUpdates); ICore::infoBar()->removeInfo(InstallQtUpdates);
startPackageManager(); startPackageManager();
}); });
} else { } else {
info.addCustomButton(UpdateInfoPlugin::tr("Start Update"), [startUpdater] { info.addCustomButton(Tr::tr("Start Update"), [startUpdater] {
ICore::infoBar()->removeInfo(InstallUpdates); ICore::infoBar()->removeInfo(InstallUpdates);
startUpdater(); startUpdater();
}); });
@@ -216,12 +216,11 @@ static void showUpdateInfo(const QList<Update> &updates,
const QStringList packageNames = Utils::transform(updates, [](const Update &u) { const QStringList packageNames = Utils::transform(updates, [](const Update &u) {
if (u.version.isEmpty()) if (u.version.isEmpty())
return u.name; return u.name;
return UpdateInfoPlugin::tr("%1 (%2)", "Package name and version") return Tr::tr("%1 (%2)", "Package name and version").arg(u.name, u.version);
.arg(u.name, u.version);
}); });
const QString updateText = packageNames.join("</li><li>"); const QString updateText = packageNames.join("</li><li>");
auto label = new QLabel; auto label = new QLabel;
label->setText("<qt><p>" + UpdateInfoPlugin::tr("Available updates:") + "<ul><li>" label->setText("<qt><p>" + Tr::tr("Available updates:") + "<ul><li>"
+ qtText + updateText + "</li></ul></p></qt>"); + qtText + updateText + "</li></ul></p></qt>");
label->setContentsMargins(2, 2, 2, 2); label->setContentsMargins(2, 2, 2, 2);
auto scrollArea = new QScrollArea; auto scrollArea = new QScrollArea;
@@ -272,7 +271,7 @@ void UpdateInfoPlugin::checkForUpdatesFinished()
updates, qtToNag, [this] { startUpdater(); }, [this] { startPackageManager(); }); updates, qtToNag, [this] { startUpdater(); }, [this] { startPackageManager(); });
} else { } else {
if (d->m_progress) if (d->m_progress)
d->m_progress->setSubtitle(tr("No updates found.")); d->m_progress->setSubtitle(Tr::tr("No updates found."));
emit newUpdatesAvailable(false); emit newUpdatesAvailable(false);
} }
} }
@@ -293,13 +292,13 @@ bool UpdateInfoPlugin::initialize(const QStringList & /* arguments */, QString *
loadSettings(); loadSettings();
if (d->m_maintenanceTool.isEmpty()) { if (d->m_maintenanceTool.isEmpty()) {
*errorMessage = tr("Could not determine location of maintenance tool. Please check " *errorMessage = Tr::tr("Could not determine location of maintenance tool. Please check "
"your installation if you did not enable this plugin manually."); "your installation if you did not enable this plugin manually.");
return false; return false;
} }
if (!d->m_maintenanceTool.isExecutableFile()) { if (!d->m_maintenanceTool.isExecutableFile()) {
*errorMessage = tr("The maintenance tool at \"%1\" is not an executable. Check your installation.") *errorMessage = Tr::tr("The maintenance tool at \"%1\" is not an executable. Check your installation.")
.arg(d->m_maintenanceTool.toUserOutput()); .arg(d->m_maintenanceTool.toUserOutput());
d->m_maintenanceTool.clear(); d->m_maintenanceTool.clear();
return false; return false;
@@ -316,7 +315,7 @@ bool UpdateInfoPlugin::initialize(const QStringList & /* arguments */, QString *
mmaintenanceTool->menu()->setTitle(Tr::tr("Qt Maintenance Tool")); mmaintenanceTool->menu()->setTitle(Tr::tr("Qt Maintenance Tool"));
mtools->addMenu(mmaintenanceTool); mtools->addMenu(mmaintenanceTool);
QAction *checkForUpdatesAction = new QAction(tr("Check for Updates"), this); QAction *checkForUpdatesAction = new QAction(Tr::tr("Check for Updates"), this);
checkForUpdatesAction->setMenuRole(QAction::ApplicationSpecificRole); checkForUpdatesAction->setMenuRole(QAction::ApplicationSpecificRole);
Command *checkForUpdatesCommand = ActionManager::registerAction(checkForUpdatesAction, Command *checkForUpdatesCommand = ActionManager::registerAction(checkForUpdatesAction,
"Updates.CheckForUpdates"); "Updates.CheckForUpdates");