summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander V. Wolf <alex.v.wolf@gmail.com>2022-02-02 05:09:06 +0700
committerAlexander V. Wolf <alex.v.wolf@gmail.com>2022-02-02 05:09:06 +0700
commit9305c7056894b2f925ec7e59cbf6b92597b90ddd (patch)
tree056cfd805751a76f9346cf21a26c247af1ae2443
parent8a25704ea97287ae4c753c9e42388a58e6c58e40 (diff)
Fix tooltip and update stellarium.pot file
-rw-r--r--po/stellarium/stellarium.pot13
-rw-r--r--src/gui/LightPollutionWidget.cpp5
2 files changed, 8 insertions, 10 deletions
diff --git a/po/stellarium/stellarium.pot b/po/stellarium/stellarium.pot
index 526ef0ae19..fbc9708ec6 100644
--- a/po/stellarium/stellarium.pot
+++ b/po/stellarium/stellarium.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: stellarium@googlegroups.com\n"
-"POT-Creation-Date: 2022-02-01 15:38+0700\n"
+"POT-Creation-Date: 2022-02-02 05:08+0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -6822,12 +6822,11 @@ msgstr ""
msgid "inner-city sky"
msgstr ""
-#: src/gui/LightPollutionWidget.cpp:317
-msgid "Bortle class"
-msgstr ""
-
-#: src/gui/LightPollutionWidget.cpp:318
-msgid "Naked-eye limiting magnitude"
+#: src/gui/LightPollutionWidget.cpp:316
+#, qt-format
+msgid ""
+"Bortle class %1: %2\n"
+"Naked-eye limiting magnitude: %3"
msgstr ""
#: src/scripting/StelScriptMgr.cpp:369 src/ui_configurationDialog.h:1691
diff --git a/src/gui/LightPollutionWidget.cpp b/src/gui/LightPollutionWidget.cpp
index 490ad72cc5..6a6ff0fee7 100644
--- a/src/gui/LightPollutionWidget.cpp
+++ b/src/gui/LightPollutionWidget.cpp
@@ -313,9 +313,8 @@ void LightPollutionWidget::updateBortleScaleToolTip()
const auto nelm = StelCore::luminanceToNELM(luminanceValue_);
const auto bortleIndex = StelCore::nelmToBortleScaleIndex(nelm);
- QString tooltip = QString("%1 %2: %3\n%4: %5")
- .arg(q_("Bortle class"), QString::number(bortleIndex), list.at(bortleIndex - 1),
- q_("Naked-eye limiting magnitude"), QString::number(std::round(nelm*10)*0.1, 'f', 1));
+ QString tooltip = q_("Bortle class %1: %2\nNaked-eye limiting magnitude: %3")
+ .arg(bortleIndex).arg(list.at(bortleIndex - 1)).arg(std::round(nelm*10)*0.1);
ui->manualSlider->setToolTip(tooltip);
ui->fromSQMmag_SB->setToolTip(tooltip);