diff --git a/meson.build b/meson.build index 39706195..1e0c3d70 100644 --- a/meson.build +++ b/meson.build @@ -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, diff --git a/resources/langs/meson.build b/resources/langs/meson.build new file mode 100644 index 00000000..1fcccfc6 --- /dev/null +++ b/resources/langs/meson.build @@ -0,0 +1 @@ +translations = qt5.compile_translations(qresource: 'translations.qrc') diff --git a/resources/langs/translations.qrc b/resources/langs/translations.qrc new file mode 100644 index 00000000..22d0a2b8 --- /dev/null +++ b/resources/langs/translations.qrc @@ -0,0 +1,13 @@ + + + nheko_de.qm + nheko_el.qm + nheko_en.qm + nheko_fi.qm + nheko_fr.qm + nheko_nl.qm + nheko_pl.qm + nheko_ru.qm + nheko_zh_CN.qm + +