Fix translations in meson

This commit is contained in:
Nicolas Werner 2021-12-07 16:32:36 +01:00
parent c13946aa5e
commit db4b8bc473
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 16 additions and 1 deletions

View file

@ -248,10 +248,11 @@ else
sources += ['src/notifications/ManagerLinux.cpp']
endif
subdir('resources/langs')
resources = qt5.compile_resources(name: 'res', sources: 'resources/res.qrc')
executable('nheko',
sources, moc_files, resources,
sources, moc_files, resources, translations,
cpp_args: '-DQAPPLICATION_CLASS=QApplication',
include_directories: inc,
dependencies : deps,

View file

@ -0,0 +1 @@
translations = qt5.compile_translations(qresource: 'translations.qrc')

View file

@ -0,0 +1,13 @@
<RCC>
<qresource prefix="/translations">
<file>nheko_de.qm</file>
<file>nheko_el.qm</file>
<file>nheko_en.qm</file>
<file>nheko_fi.qm</file>
<file>nheko_fr.qm</file>
<file>nheko_nl.qm</file>
<file>nheko_pl.qm</file>
<file>nheko_ru.qm</file>
<file>nheko_zh_CN.qm</file>
</qresource>
</RCC>