[planner] build: Fix translation handling for MIME type
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner] build: Fix translation handling for MIME type
- Date: Sun, 27 Jun 2021 10:13:56 +0000 (UTC)
commit 93597d0bbb7f88e1fdc8eff56d5a237863bd42bd
Author: Mart Raudsepp <leio gentoo org>
Date: Sun Jun 27 13:11:20 2021 +0300
build: Fix translation handling for MIME type
Fixes: 1aaf3c373924fb55aad70a1115d84e48e7d8af29
data/mime/meson.build | 2 +-
{data/mime => gettext}/its/mime.its | 0
{data/mime => gettext}/its/mime.loc | 0
meson.build | 1 +
po/POTFILES.in | 2 +-
po/meson.build | 6 +++++-
6 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/data/mime/meson.build b/data/mime/meson.build
index 3a204244..53bcd3b6 100644
--- a/data/mime/meson.build
+++ b/data/mime/meson.build
@@ -7,7 +7,7 @@ i18n.merge_file(
input: mime_xml_file + '.in',
output: mime_xml_file,
po_dir: po_dir,
- data_dirs: meson.current_source_dir(),
+ data_dirs: its_dir,
install: true,
install_dir: planner_mimedir,
)
diff --git a/data/mime/its/mime.its b/gettext/its/mime.its
similarity index 100%
rename from data/mime/its/mime.its
rename to gettext/its/mime.its
diff --git a/data/mime/its/mime.loc b/gettext/its/mime.loc
similarity index 100%
rename from data/mime/its/mime.loc
rename to gettext/its/mime.loc
diff --git a/meson.build b/meson.build
index df0eea38..2e24600e 100644
--- a/meson.build
+++ b/meson.build
@@ -15,6 +15,7 @@ planner_datadir = planner_prefix / get_option('datadir')
planner_pkgdatadir = planner_datadir / 'planner'
planner_localedir = planner_prefix / get_option('localedir')
planner_sysconfdir = get_option('sysconfdir')
+its_dir = meson.source_root() / 'gettext'
po_dir = meson.source_root() / 'po'
cc = meson.get_compiler('c')
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 3a044523..b56dac16 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,7 +1,7 @@
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
-data/mime/planner.xml.in
+data/mime/org.gnome.Planner.xml.in
data/planner.desktop.in
data/org.gnome.Planner.gschema.xml
diff --git a/po/meson.build b/po/meson.build
index e9b77d79..9440ab93 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1 +1,5 @@
-i18n.gettext(meson.project_name(), preset: 'glib')
+i18n.gettext(
+ meson.project_name(),
+ data_dirs: its_dir,
+ preset: 'glib'
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]