From 0710ede514acef905e7afe921e3a55d39e1f53df Mon Sep 17 00:00:00 2001 From: Emir SARI Date: Fri, 5 May 2023 22:51:25 +0000 Subject: [PATCH] Apply i18n to combo box This allows i18n in order to accommodate languages, that use a different percentage display format; like Turkish and French. --- src/lib/preferences/preferences.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/preferences/preferences.cpp b/src/lib/preferences/preferences.cpp index 627f3dfbb..05b6895a8 100644 --- a/src/lib/preferences/preferences.cpp +++ b/src/lib/preferences/preferences.cpp @@ -295,7 +295,7 @@ Preferences::Preferences(BrowserWindow* window) const auto levels = WebView::zoomLevels(); 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->closeAppWithCtrlQ->setChecked(settings.value("closeAppWithCtrlQ", true).toBool());