Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imagewriter: Use QCoreApplication::translate #805

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
263 changes: 132 additions & 131 deletions src/i18n/rpi-imager_ca.ts

Large diffs are not rendered by default.

259 changes: 134 additions & 125 deletions src/i18n/rpi-imager_de.ts

Large diffs are not rendered by default.

271 changes: 128 additions & 143 deletions src/i18n/rpi-imager_en.ts

Large diffs are not rendered by default.

255 changes: 132 additions & 123 deletions src/i18n/rpi-imager_es.ts

Large diffs are not rendered by default.

259 changes: 134 additions & 125 deletions src/i18n/rpi-imager_fr.ts

Large diffs are not rendered by default.

259 changes: 134 additions & 125 deletions src/i18n/rpi-imager_it.ts

Large diffs are not rendered by default.

261 changes: 133 additions & 128 deletions src/i18n/rpi-imager_ja.ts

Large diffs are not rendered by default.

259 changes: 134 additions & 125 deletions src/i18n/rpi-imager_ko.ts

Large diffs are not rendered by default.

259 changes: 134 additions & 125 deletions src/i18n/rpi-imager_nl.ts

Large diffs are not rendered by default.

263 changes: 136 additions & 127 deletions src/i18n/rpi-imager_pl.ts

Large diffs are not rendered by default.

261 changes: 133 additions & 128 deletions src/i18n/rpi-imager_ru.ts

Large diffs are not rendered by default.

268 changes: 137 additions & 131 deletions src/i18n/rpi-imager_sk.ts

Large diffs are not rendered by default.

270 changes: 136 additions & 134 deletions src/i18n/rpi-imager_sl.ts

Large diffs are not rendered by default.

269 changes: 129 additions & 140 deletions src/i18n/rpi-imager_tr.ts

Large diffs are not rendered by default.

259 changes: 134 additions & 125 deletions src/i18n/rpi-imager_uk.ts

Large diffs are not rendered by default.

259 changes: 134 additions & 125 deletions src/i18n/rpi-imager_zh-TW.ts

Large diffs are not rendered by default.

265 changes: 131 additions & 134 deletions src/i18n/rpi-imager_zh.ts

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions src/imagewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,15 +608,15 @@ QByteArray ImageWriter::getFilteredOSlist() {
}

reference_os_list_array.append(QJsonObject({
{"name", tr("Erase")},
{"description", tr("Format card as FAT32")},
{"name", QApplication::translate("main", "Erase")},
{"description", QApplication::translate("main", "Format card as FAT32")},
{"icon", "icons/erase.png"},
{"url", "internal://format"},
}));

reference_os_list_array.append(QJsonObject({
{"name", tr("Use custom")},
{"description", tr("Select a custom .img from your computer")},
{"name", QApplication::translate("main", "Use custom")},
{"description", QApplication::translate("main", "Select a custom .img from your computer")},
{"icon", "icons/use_custom.png"},
{"url", ""},
}));
Expand Down Expand Up @@ -1377,6 +1377,9 @@ void ImageWriter::replaceTranslator(QTranslator *trans)
{
_engine->retranslate();
}

// Regenerate the OS list, because it has some localised items
emit osListPrepared();
}

QString ImageWriter::detectPiKeyboard()
Expand Down