fix(build): build with qmake

...and also fix missing translation strings caused by broken qmake
project file.
This commit is contained in:
Gary Wang 2021-03-14 01:03:25 +08:00
parent a98b69eb6c
commit deed477d49
10 changed files with 476 additions and 2 deletions

View File

@ -209,16 +209,68 @@
<source>&amp;Copy</source> <source>&amp;Copy</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="48"/>
<source>Copy P&amp;ixmap</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="49"/>
<source>Copy &amp;File Path</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="56"/>
<source>Properties</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<location filename="../aboutdialog.cpp" line="31"/> <location filename="../aboutdialog.cpp" line="31"/>
<location filename="../actionmanager.cpp" line="52"/>
<source>Stay on top</source> <source>Stay on top</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="35"/> <location filename="../aboutdialog.cpp" line="35"/>
<location filename="../actionmanager.cpp" line="53"/>
<source>Protected mode</source> <source>Protected mode</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="46"/>
<source>Zoom in</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="47"/>
<source>Zoom out</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="50"/>
<source>&amp;Paste</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="51"/>
<source>Toggle Checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="54"/>
<source>Configure...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="55"/>
<source>Help</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="57"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>MetadataDialog</name> <name>MetadataDialog</name>

View File

@ -209,16 +209,68 @@
<source>&amp;Copy</source> <source>&amp;Copy</source>
<translation>&amp;Kopieren</translation> <translation>&amp;Kopieren</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="48"/>
<source>Copy P&amp;ixmap</source>
<translation>P&amp;ixmap kopieren</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="49"/>
<source>Copy &amp;File Path</source>
<translation>&amp;Dateipfad kopieren</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="56"/>
<source>Properties</source>
<translation>Eigenschaften</translation>
</message>
<message> <message>
<location filename="../aboutdialog.cpp" line="31"/> <location filename="../aboutdialog.cpp" line="31"/>
<location filename="../actionmanager.cpp" line="52"/>
<source>Stay on top</source> <source>Stay on top</source>
<translation>Oben bleiben</translation> <translation>Oben bleiben</translation>
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="35"/> <location filename="../aboutdialog.cpp" line="35"/>
<location filename="../actionmanager.cpp" line="53"/>
<source>Protected mode</source> <source>Protected mode</source>
<translation>Geschützter Modus</translation> <translation>Geschützter Modus</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="46"/>
<source>Zoom in</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="47"/>
<source>Zoom out</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="50"/>
<source>&amp;Paste</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="51"/>
<source>Toggle Checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="54"/>
<source>Configure...</source>
<translation>Konfigurieren&#xa0;</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="55"/>
<source>Help</source>
<translation>Hilfe</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="57"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>MetadataDialog</name> <name>MetadataDialog</name>

View File

@ -209,16 +209,68 @@
<source>&amp;Copy</source> <source>&amp;Copy</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="48"/>
<source>Copy P&amp;ixmap</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="49"/>
<source>Copy &amp;File Path</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="56"/>
<source>Properties</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<location filename="../aboutdialog.cpp" line="31"/> <location filename="../aboutdialog.cpp" line="31"/>
<location filename="../actionmanager.cpp" line="52"/>
<source>Stay on top</source> <source>Stay on top</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="35"/> <location filename="../aboutdialog.cpp" line="35"/>
<location filename="../actionmanager.cpp" line="53"/>
<source>Protected mode</source> <source>Protected mode</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="46"/>
<source>Zoom in</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="47"/>
<source>Zoom out</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="50"/>
<source>&amp;Paste</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="51"/>
<source>Toggle Checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="54"/>
<source>Configure...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="55"/>
<source>Help</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="57"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>MetadataDialog</name> <name>MetadataDialog</name>

View File

@ -209,16 +209,68 @@
<source>&amp;Copy</source> <source>&amp;Copy</source>
<translation>&amp;Copier</translation> <translation>&amp;Copier</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="48"/>
<source>Copy P&amp;ixmap</source>
<translation>Copier P&amp;ixmap</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="49"/>
<source>Copy &amp;File Path</source>
<translation>Copier le &amp;chemin du fichier</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="56"/>
<source>Properties</source>
<translation>Propriétés</translation>
</message>
<message> <message>
<location filename="../aboutdialog.cpp" line="31"/> <location filename="../aboutdialog.cpp" line="31"/>
<location filename="../actionmanager.cpp" line="52"/>
<source>Stay on top</source> <source>Stay on top</source>
<translation>Rester en-haut</translation> <translation>Rester en-haut</translation>
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="35"/> <location filename="../aboutdialog.cpp" line="35"/>
<location filename="../actionmanager.cpp" line="53"/>
<source>Protected mode</source> <source>Protected mode</source>
<translation>Mode protégé</translation> <translation>Mode protégé</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="46"/>
<source>Zoom in</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="47"/>
<source>Zoom out</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="50"/>
<source>&amp;Paste</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="51"/>
<source>Toggle Checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="54"/>
<source>Configure...</source>
<translation>Configurer</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="55"/>
<source>Help</source>
<translation>Aide</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="57"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>MetadataDialog</name> <name>MetadataDialog</name>

View File

@ -209,16 +209,68 @@
<source>&amp;Copy</source> <source>&amp;Copy</source>
<translation>&amp;Kopier</translation> <translation>&amp;Kopier</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="48"/>
<source>Copy P&amp;ixmap</source>
<translation type="unfinished">Kopier p&amp;ixmap</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="49"/>
<source>Copy &amp;File Path</source>
<translation>Kopier %filsti</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="56"/>
<source>Properties</source>
<translation>Egenskaper</translation>
</message>
<message> <message>
<location filename="../aboutdialog.cpp" line="31"/> <location filename="../aboutdialog.cpp" line="31"/>
<location filename="../actionmanager.cpp" line="52"/>
<source>Stay on top</source> <source>Stay on top</source>
<translation>Behold øverst</translation> <translation>Behold øverst</translation>
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="35"/> <location filename="../aboutdialog.cpp" line="35"/>
<location filename="../actionmanager.cpp" line="53"/>
<source>Protected mode</source> <source>Protected mode</source>
<translation>Beskyttet modus</translation> <translation>Beskyttet modus</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="46"/>
<source>Zoom in</source>
<translation>Førstørr</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="47"/>
<source>Zoom out</source>
<translation>Forminsk</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="50"/>
<source>&amp;Paste</source>
<translation>&amp;Lim inn</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="51"/>
<source>Toggle Checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="54"/>
<source>Configure...</source>
<translation>Sett opp </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="55"/>
<source>Help</source>
<translation>Hjelp</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="57"/>
<source>Quit</source>
<translation>Avslutt</translation>
</message>
</context> </context>
<context> <context>
<name>MetadataDialog</name> <name>MetadataDialog</name>

View File

@ -209,16 +209,68 @@
<source>&amp;Copy</source> <source>&amp;Copy</source>
<translation>&amp;Kopiëren</translation> <translation>&amp;Kopiëren</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="48"/>
<source>Copy P&amp;ixmap</source>
<translation>P&amp;ixmap kopiëren</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="49"/>
<source>Copy &amp;File Path</source>
<translation>&amp;Bestandspad kopiëren</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="56"/>
<source>Properties</source>
<translation>Eigenschappen</translation>
</message>
<message> <message>
<location filename="../aboutdialog.cpp" line="31"/> <location filename="../aboutdialog.cpp" line="31"/>
<location filename="../actionmanager.cpp" line="52"/>
<source>Stay on top</source> <source>Stay on top</source>
<translation>Altijd bovenop</translation> <translation>Altijd bovenop</translation>
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="35"/> <location filename="../aboutdialog.cpp" line="35"/>
<location filename="../actionmanager.cpp" line="53"/>
<source>Protected mode</source> <source>Protected mode</source>
<translation>Beschermde modus</translation> <translation>Beschermde modus</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="46"/>
<source>Zoom in</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="47"/>
<source>Zoom out</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="50"/>
<source>&amp;Paste</source>
<translation>&amp;Plakken</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="51"/>
<source>Toggle Checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="54"/>
<source>Configure...</source>
<translation>Instellen...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="55"/>
<source>Help</source>
<translation>Hulp</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="57"/>
<source>Quit</source>
<translation>Afsluiten</translation>
</message>
</context> </context>
<context> <context>
<name>MetadataDialog</name> <name>MetadataDialog</name>

View File

@ -209,16 +209,68 @@
<source>&amp;Copy</source> <source>&amp;Copy</source>
<translation>&amp;Копировать</translation> <translation>&amp;Копировать</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="48"/>
<source>Copy P&amp;ixmap</source>
<translation>Копировать P&amp;ixmap</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="49"/>
<source>Copy &amp;File Path</source>
<translation>Копировать &amp;путь к файлу</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="56"/>
<source>Properties</source>
<translation>Свойства</translation>
</message>
<message> <message>
<location filename="../aboutdialog.cpp" line="31"/> <location filename="../aboutdialog.cpp" line="31"/>
<location filename="../actionmanager.cpp" line="52"/>
<source>Stay on top</source> <source>Stay on top</source>
<translation>Поверх всех окон</translation> <translation>Поверх всех окон</translation>
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="35"/> <location filename="../aboutdialog.cpp" line="35"/>
<location filename="../actionmanager.cpp" line="53"/>
<source>Protected mode</source> <source>Protected mode</source>
<translation>Защищённый режим</translation> <translation>Защищённый режим</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="46"/>
<source>Zoom in</source>
<translation>Увеличить</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="47"/>
<source>Zoom out</source>
<translation>Уменьшить</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="50"/>
<source>&amp;Paste</source>
<translation>&amp;Вставить</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="51"/>
<source>Toggle Checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="54"/>
<source>Configure...</source>
<translation>Настроить...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="55"/>
<source>Help</source>
<translation>Помощь</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="57"/>
<source>Quit</source>
<translation>Выход</translation>
</message>
</context> </context>
<context> <context>
<name>MetadataDialog</name> <name>MetadataDialog</name>

View File

@ -211,14 +211,66 @@
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="31"/> <location filename="../aboutdialog.cpp" line="31"/>
<location filename="../actionmanager.cpp" line="52"/>
<source>Stay on top</source> <source>Stay on top</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="35"/> <location filename="../aboutdialog.cpp" line="35"/>
<location filename="../actionmanager.cpp" line="53"/>
<source>Protected mode</source> <source>Protected mode</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="46"/>
<source>Zoom in</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="47"/>
<source>Zoom out</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="48"/>
<source>Copy P&amp;ixmap</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="49"/>
<source>Copy &amp;File Path</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="50"/>
<source>&amp;Paste</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="51"/>
<source>Toggle Checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="54"/>
<source>Configure...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="55"/>
<source>Help</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="56"/>
<source>Properties</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="57"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>MetadataDialog</name> <name>MetadataDialog</name>

View File

@ -209,16 +209,68 @@
<source>&amp;Copy</source> <source>&amp;Copy</source>
<translation>(&amp;C)</translation> <translation>(&amp;C)</translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="48"/>
<source>Copy P&amp;ixmap</source>
<translation>(&amp;I)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="49"/>
<source>Copy &amp;File Path</source>
<translation>(&amp;F)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="56"/>
<source>Properties</source>
<translation></translation>
</message>
<message> <message>
<location filename="../aboutdialog.cpp" line="31"/> <location filename="../aboutdialog.cpp" line="31"/>
<location filename="../actionmanager.cpp" line="52"/>
<source>Stay on top</source> <source>Stay on top</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../aboutdialog.cpp" line="35"/> <location filename="../aboutdialog.cpp" line="35"/>
<location filename="../actionmanager.cpp" line="53"/>
<source>Protected mode</source> <source>Protected mode</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<location filename="../actionmanager.cpp" line="46"/>
<source>Zoom in</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="47"/>
<source>Zoom out</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="50"/>
<source>&amp;Paste</source>
<translation>(&amp;P)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="51"/>
<source>Toggle Checkerboard</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="54"/>
<source>Configure...</source>
<translation>...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="55"/>
<source>Help</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="57"/>
<source>Quit</source>
<translation>退</translation>
</message>
</context> </context>
<context> <context>
<name>MetadataDialog</name> <name>MetadataDialog</name>

View File

@ -19,6 +19,7 @@ CONFIG += c++11 lrelease embed_translations
SOURCES += \ SOURCES += \
app/aboutdialog.cpp \ app/aboutdialog.cpp \
app/main.cpp \ app/main.cpp \
app/framelesswindow.cpp \
app/mainwindow.cpp \ app/mainwindow.cpp \
app/graphicsview.cpp \ app/graphicsview.cpp \
app/bottombuttongroup.cpp \ app/bottombuttongroup.cpp \
@ -30,10 +31,13 @@ SOURCES += \
app/settingsdialog.cpp \ app/settingsdialog.cpp \
app/metadatamodel.cpp \ app/metadatamodel.cpp \
app/metadatadialog.cpp \ app/metadatadialog.cpp \
app/exiv2wrapper.cpp app/exiv2wrapper.cpp \
app/actionmanager.cpp \
app/playlistmanager.cpp
HEADERS += \ HEADERS += \
app/aboutdialog.h \ app/aboutdialog.h \
app/framelesswindow.h \
app/mainwindow.h \ app/mainwindow.h \
app/graphicsview.h \ app/graphicsview.h \
app/bottombuttongroup.h \ app/bottombuttongroup.h \
@ -45,7 +49,9 @@ HEADERS += \
app/settingsdialog.h \ app/settingsdialog.h \
app/metadatamodel.h \ app/metadatamodel.h \
app/metadatadialog.h \ app/metadatadialog.h \
app/exiv2wrapper.h app/exiv2wrapper.h \
app/actionmanager.h \
app/playlistmanager.h
TRANSLATIONS = \ TRANSLATIONS = \
app/translations/PineapplePictures.ts \ app/translations/PineapplePictures.ts \