[gnome-sound-recorder/bilelmoussaoui/fix-i18n] i18n: change gettext domain to match the app-id
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/bilelmoussaoui/fix-i18n] i18n: change gettext domain to match the app-id
- Date: Wed, 4 Mar 2020 08:19:18 +0000 (UTC)
commit c4b877c5695268498c6155ede551c04847f9af70
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Wed Mar 4 09:18:46 2020 +0100
i18n: change gettext domain to match the app-id
Fixes #55
data/appdata/meson.build | 1 +
data/appdata/org.gnome.SoundRecorder.appdata.xml.in.in | 2 +-
data/meson.build | 1 +
data/org.gnome.SoundRecorder.gschema.xml.in | 2 +-
meson.build | 2 +-
po/meson.build | 2 +-
6 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/data/appdata/meson.build b/data/appdata/meson.build
index 97ac7d2..041a8e0 100644
--- a/data/appdata/meson.build
+++ b/data/appdata/meson.build
@@ -1,5 +1,6 @@
appdata_conf = configuration_data()
appdata_conf.set('app-id', application_id)
+appdata_conf.set('gettext-package', gettext_package)
appdata_file = i18n.merge_file(
'appdata-file',
diff --git a/data/appdata/org.gnome.SoundRecorder.appdata.xml.in.in
b/data/appdata/org.gnome.SoundRecorder.appdata.xml.in.in
index 94cff55..81c05df 100644
--- a/data/appdata/org.gnome.SoundRecorder.appdata.xml.in.in
+++ b/data/appdata/org.gnome.SoundRecorder.appdata.xml.in.in
@@ -46,5 +46,5 @@
<project_group>GNOME</project_group>
<developer_name>The GNOME Project</developer_name>
<update_contact>meg387_at_gmail.com</update_contact>
- <translation type="gettext">gnome-sound-recorder</translation>
+ <translation type="gettext">@gettext-package@</translation>
</component>
diff --git a/data/meson.build b/data/meson.build
index 70f58db..df7b30a 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -40,6 +40,7 @@ endif
gsettings_conf = configuration_data()
gsettings_conf.set('app-id', application_id)
+gsettings_conf.set('gettext-package', gettext_package)
configure_file(
input: 'org.gnome.SoundRecorder.gschema.xml.in',
output: '@0 gschema xml'.format(application_id),
diff --git a/data/org.gnome.SoundRecorder.gschema.xml.in b/data/org.gnome.SoundRecorder.gschema.xml.in
index 7749882..97a656c 100644
--- a/data/org.gnome.SoundRecorder.gschema.xml.in
+++ b/data/org.gnome.SoundRecorder.gschema.xml.in
@@ -1,5 +1,5 @@
<schemalist>
- <schema id="@app-id@" path="/org/gnome/SoundRecorder/" gettext-domain="gnome-sound-recorder">
+ <schema id="@app-id@" path="/org/gnome/SoundRecorder/" gettext-domain="@gettext-package@">
<key name="window-size" type="ai">
<default>[780, 480]</default>
<summary>Window size</summary>
diff --git a/meson.build b/meson.build
index 23047ad..b90a98f 100644
--- a/meson.build
+++ b/meson.build
@@ -22,7 +22,7 @@ endif
application_id = 'org.gnome.SoundRecorder@0@'.format(profile)
-
+gettext_package = application_id
sound_recorder_prefix = get_option('prefix')
sound_recorder_bindir = join_paths(sound_recorder_prefix, get_option('bindir'))
sound_recorder_libdir = join_paths(sound_recorder_prefix, get_option('libdir'))
diff --git a/po/meson.build b/po/meson.build
index 5eab52e..6a87565 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1 +1 @@
-i18n.gettext(meson.project_name(), preset: 'glib')
\ No newline at end of file
+i18n.gettext(gettext_package, preset: 'glib')
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]