From db4b8bc473a7bc1bc875e588f0f862eedaab8162 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 7 Dec 2021 16:32:36 +0100 Subject: [PATCH] Fix translations in meson --- meson.build | 3 ++- resources/langs/meson.build | 1 + resources/langs/translations.qrc | 13 +++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 resources/langs/meson.build create mode 100644 resources/langs/translations.qrc 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 + +