Fix translations in meson

easy-qt6-bits
Nicolas Werner 3 years ago
parent c13946aa5e
commit db4b8bc473
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 3
      meson.build
  2. 1
      resources/langs/meson.build
  3. 13
      resources/langs/translations.qrc

@ -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,

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

@ -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>
Loading…
Cancel
Save