5 Commits

Author SHA1 Message Date
fad7a668e3 fix: not able to load translations 2024-10-27 13:49:24 +08:00
c68e82c7c8 chore: update release info to 0.8.2 2024-10-27 00:06:40 +08:00
7e04ba84eb chore(CI): msvc build with libavif 2024-10-26 15:18:54 +08:00
29355c7fc1 fix: actual proper fix for 471a3b1 2024-10-22 21:35:50 +08:00
95f85374cf i18n: Translations update from Hosted Weblate (#125)
* Translated using Weblate (Japanese)

Currently translated at 98.6% (149 of 151 strings)

Translation: pineapple-pictures/Application
Translate-URL: https://hosted.weblate.org/projects/pineapple-pictures/application/ja/

* Translated using Weblate (Italian)

Currently translated at 100.0% (152 of 152 strings)

Translation: pineapple-pictures/Application
Translate-URL: https://hosted.weblate.org/projects/pineapple-pictures/application/it/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (152 of 152 strings)

Translation: pineapple-pictures/Application
Translate-URL: https://hosted.weblate.org/projects/pineapple-pictures/application/es/

---------

Co-authored-by: mmahhi <mmahhi@users.noreply.hosted.weblate.org>
Co-authored-by: albanobattistella <albano_battistella@hotmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
2024-10-22 00:38:29 +08:00
9 changed files with 57 additions and 15 deletions

View File

@ -82,6 +82,16 @@ jobs:
cmake ./dependencies_src/zlib -Bbuild_dependencies/zlib -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
cmake --build build_dependencies/zlib --config Release --target=install || goto :error
curl -fsSL -o expat_src.zip https://github.com/libexpat/libexpat/archive/R_2_6_2.zip
:: ===== AOM for libavif AVI decoding support =====
git clone -q -b v3.10.0 --depth 1 https://aomedia.googlesource.com/aom dependencies_src/aom
cmake ./dependencies_src/aom -Bbuild_dependencies/aom -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DENABLE_DOCS=OFF -DBUILD_SHARED_LIBS=ON -DAOM_TARGET_CPU=generic -DENABLE_TESTS=OFF -DENABLE_TESTDATA=OFF -DENABLE_TOOLS=OFF -DENABLE_EXAMPLES=0 || goto :error
cmake --build build_dependencies/aom --config Release --target=install || goto :error
:: ===== libavif =====
curl -fsSL -o libavif-v1_1_1.zip https://github.com/AOMediaCodec/libavif/archive/v1.1.1.zip
7z x libavif-v1_1_1.zip -y -o"dependencies_src"
ren .\dependencies_src\libavif-1.1.1 libavif || goto :error
cmake ./dependencies_src/libavif -Bbuild_dependencies/libavif -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DAVIF_CODEC_AOM=ON -DAVIF_LOCAL_LIBYUV=ON
cmake --build build_dependencies/libavif --config Release --target=install || goto :error
:: ===== expat =====
7z x expat_src.zip -y -o"dependencies_src"
ren .\dependencies_src\libexpat-R_2_6_2 expat || goto :error

View File

@ -4,7 +4,7 @@
cmake_minimum_required (VERSION 3.9.5)
project(pineapple-pictures VERSION 0.8.1) # 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 (FeatureSummary)

17
NEWS
View File

@ -1,3 +1,20 @@
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
~~~~~~~~~~~~~
Released: 2024-10-26
Features:
* New option to allow use light-color checkerboard by default
Contributors:
albanobattistella, mmahhi, gallegonovato
Version 0.8.1
~~~~~~~~~~~~~
Released: 2024-08-25

View File

@ -20,6 +20,8 @@
int main(int argc, char *argv[])
{
QCoreApplication::setApplicationName("Pineapple Pictures");
QCoreApplication::setApplicationVersion(PPIC_VERSION_STRING);
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Settings::instance()->hiDpiScaleFactorBehavior());
QApplication a(argc, argv);
@ -35,11 +37,10 @@ int main(int argc, char *argv[])
qmDir = QT_STRINGIFY(QM_FILE_INSTALL_DIR);
#endif
if (translator.load(QLocale(), QLatin1String("PineapplePictures"), QLatin1String("_"), qmDir)) {
a.installTranslator(&translator);
QCoreApplication::installTranslator(&translator);
}
a.setApplicationName("Pineapple Pictures");
a.setApplicationDisplayName(QCoreApplication::translate("main", "Pineapple Pictures"));
a.setApplicationVersion(PPIC_VERSION_STRING);
QGuiApplication::setApplicationDisplayName(QCoreApplication::translate("main", "Pineapple Pictures"));
// commandline options
QCommandLineOption supportedImageFormats(QStringLiteral("supported-image-formats"), QCoreApplication::translate("main", "List supported image format suffixes, and quit program."));
@ -67,5 +68,5 @@ int main(int argc, char *argv[])
w.initWindowSize();
return a.exec();
return QApplication::exec();
}

View File

@ -6,7 +6,6 @@
#include <QApplication>
#include <QStandardPaths>
#include <QStringBuilder>
#include <QDebug>
#include <QDir>
#include <QMetaEnum>
@ -151,10 +150,7 @@ Settings::Settings()
if (configPath.isEmpty()) {
// Should be %LOCALAPPDATA%\<APPNAME> under Windows, ~/.config/<APPNAME> under Linux.
// Sadly <APPNAME> is unknown when Settings object is created (it's before the creation
// of QApplication), so we'll need to append the app name manually.
configPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) %
QDir::separator() % QLatin1String("Pineapple Pictures");
configPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
}
m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this);

View File

@ -782,7 +782,7 @@
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Use light-color checkerboard</source>
<translation type="unfinished"></translation>
<translation>Utilice un tablero de ajedrez de color claro</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>

View File

@ -778,7 +778,7 @@
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Use light-color checkerboard</source>
<translation type="unfinished"></translation>
<translation>Utilizzare scacchiera di colore chiaro</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>

View File

@ -301,7 +301,7 @@
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Fit to width</source>
<translation></translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
@ -336,7 +336,7 @@
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Rotate left</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>

View File

@ -74,6 +74,24 @@
</screenshot>
</screenshots>
<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">
<description>
<p>This release adds the following feature:</p>
<ul>
<li>New option to allow use light-color checkerboard by default</li>
</ul>
<p>With contributions from:</p>
<p>albanobattistella, mmahhi, gallegonovato</p>
</description>
</release>
<release type="stable" version="0.8.1" date="2024-08-25T00:00:00Z">
<description>
<p>This release adds the following feature:</p>