1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Apply i18n to combo box

This allows i18n in order to accommodate languages, that use a different percentage display format; like Turkish and French.
This commit is contained in:
Emir SARI 2023-05-05 22:51:25 +00:00 committed by Juraj Oravec
parent 619df89f5f
commit 0710ede514

View File

@ -295,7 +295,7 @@ Preferences::Preferences(BrowserWindow* window)
const auto levels = WebView::zoomLevels(); const auto levels = WebView::zoomLevels();
for (int level : levels) { for (int level : levels) {
ui->defaultZoomLevel->addItem(QString("%1%").arg(level)); ui->defaultZoomLevel->addItem(tr("%1%").arg(QString::number(level)));
} }
ui->defaultZoomLevel->setCurrentIndex(settings.value("DefaultZoomLevel", WebView::zoomLevels().indexOf(100)).toInt()); ui->defaultZoomLevel->setCurrentIndex(settings.value("DefaultZoomLevel", WebView::zoomLevels().indexOf(100)).toInt());
ui->closeAppWithCtrlQ->setChecked(settings.value("closeAppWithCtrlQ", true).toBool()); ui->closeAppWithCtrlQ->setChecked(settings.value("closeAppWithCtrlQ", true).toBool());