fix: not able to load translations
This commit is contained in:
parent
c68e82c7c8
commit
fad7a668e3
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
cmake_minimum_required (VERSION 3.9.5)
|
cmake_minimum_required (VERSION 3.9.5)
|
||||||
|
|
||||||
project(pineapple-pictures VERSION 0.8.2) # don't forget to update NEWS file and AppStream metadata.
|
project(pineapple-pictures VERSION 0.8.2.1) # don't forget to update NEWS file and AppStream metadata.
|
||||||
|
|
||||||
include (GNUInstallDirs)
|
include (GNUInstallDirs)
|
||||||
include (FeatureSummary)
|
include (FeatureSummary)
|
||||||
|
|
7
NEWS
7
NEWS
|
@ -1,3 +1,10 @@
|
||||||
|
Version 0.8.2.1
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2024-10-27
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Cannot load translations caused by a change in 0.8.2
|
||||||
|
|
||||||
Version 0.8.2
|
Version 0.8.2
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
Released: 2024-10-26
|
Released: 2024-10-26
|
||||||
|
|
12
app/main.cpp
12
app/main.cpp
|
@ -22,6 +22,12 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QCoreApplication::setApplicationName("Pineapple Pictures");
|
QCoreApplication::setApplicationName("Pineapple Pictures");
|
||||||
QCoreApplication::setApplicationVersion(PPIC_VERSION_STRING);
|
QCoreApplication::setApplicationVersion(PPIC_VERSION_STRING);
|
||||||
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Settings::instance()->hiDpiScaleFactorBehavior());
|
||||||
|
|
||||||
|
QApplication a(argc, argv);
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
|
a.setAttribute(Qt::ApplicationAttribute::AA_UseHighDpiPixmaps);
|
||||||
|
#endif
|
||||||
|
|
||||||
QTranslator translator;
|
QTranslator translator;
|
||||||
QString qmDir;
|
QString qmDir;
|
||||||
|
@ -35,12 +41,6 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
QGuiApplication::setApplicationDisplayName(QCoreApplication::translate("main", "Pineapple Pictures"));
|
QGuiApplication::setApplicationDisplayName(QCoreApplication::translate("main", "Pineapple Pictures"));
|
||||||
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Settings::instance()->hiDpiScaleFactorBehavior());
|
|
||||||
|
|
||||||
QApplication a(argc, argv);
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
a.setAttribute(Qt::ApplicationAttribute::AA_UseHighDpiPixmaps);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// commandline options
|
// commandline options
|
||||||
QCommandLineOption supportedImageFormats(QStringLiteral("supported-image-formats"), QCoreApplication::translate("main", "List supported image format suffixes, and quit program."));
|
QCommandLineOption supportedImageFormats(QStringLiteral("supported-image-formats"), QCoreApplication::translate("main", "List supported image format suffixes, and quit program."));
|
||||||
|
|
|
@ -74,6 +74,14 @@
|
||||||
</screenshot>
|
</screenshot>
|
||||||
</screenshots>
|
</screenshots>
|
||||||
<releases>
|
<releases>
|
||||||
|
<release type="stable" version="0.8.2.1" date="2024-10-27T00:00:00Z">
|
||||||
|
<description>
|
||||||
|
<p>This release fixes the following bug:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Cannot load translations caused by a change in 0.8.2</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
<release type="stable" version="0.8.2" date="2024-10-26T00:00:00Z">
|
<release type="stable" version="0.8.2" date="2024-10-26T00:00:00Z">
|
||||||
<description>
|
<description>
|
||||||
<p>This release adds the following feature:</p>
|
<p>This release adds the following feature:</p>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user