mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Fix translations in meson
This commit is contained in:
parent
c13946aa5e
commit
db4b8bc473
3 changed files with 16 additions and 1 deletions
|
@ -248,10 +248,11 @@ else
|
||||||
sources += ['src/notifications/ManagerLinux.cpp']
|
sources += ['src/notifications/ManagerLinux.cpp']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
subdir('resources/langs')
|
||||||
resources = qt5.compile_resources(name: 'res', sources: 'resources/res.qrc')
|
resources = qt5.compile_resources(name: 'res', sources: 'resources/res.qrc')
|
||||||
|
|
||||||
executable('nheko',
|
executable('nheko',
|
||||||
sources, moc_files, resources,
|
sources, moc_files, resources, translations,
|
||||||
cpp_args: '-DQAPPLICATION_CLASS=QApplication',
|
cpp_args: '-DQAPPLICATION_CLASS=QApplication',
|
||||||
include_directories: inc,
|
include_directories: inc,
|
||||||
dependencies : deps,
|
dependencies : deps,
|
||||||
|
|
1
resources/langs/meson.build
Normal file
1
resources/langs/meson.build
Normal file
|
@ -0,0 +1 @@
|
||||||
|
translations = qt5.compile_translations(qresource: 'translations.qrc')
|
13
resources/langs/translations.qrc
Normal file
13
resources/langs/translations.qrc
Normal 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>
|
Loading…
Reference in a new issue