build: Translate desktop and appdata files
While their strings are translated, they are installed as is, and appear untranslated.
This commit is contained in:
parent
9329ad0d0a
commit
e2ed9308c8
5 changed files with 20 additions and 3 deletions
|
@ -1,5 +1,20 @@
|
|||
subdir('icons')
|
||||
|
||||
install_data('org.gnome.Fractal.desktop', install_dir : datadir + '/applications')
|
||||
install_data('org.gnome.Fractal.appdata.xml', install_dir : datadir + '/appdata')
|
||||
i18n.merge_file ('desktop-file',
|
||||
type: 'desktop',
|
||||
input: 'org.gnome.Fractal.desktop.in',
|
||||
output: 'org.gnome.Fractal.desktop',
|
||||
po_dir: podir,
|
||||
install: true,
|
||||
install_dir: join_paths (datadir, 'applications')
|
||||
)
|
||||
|
||||
i18n.merge_file ('appdata-file',
|
||||
input: 'org.gnome.Fractal.appdata.xml.in',
|
||||
output: 'org.gnome.Fractal.appdata.xml',
|
||||
po_dir: podir,
|
||||
install: true,
|
||||
install_dir: join_paths (datadir, 'appdata')
|
||||
)
|
||||
|
||||
install_data('org.gnome.Fractal.gschema.xml', install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
|
||||
|
|
|
@ -19,6 +19,8 @@ icondir = join_paths(datadir, 'icons')
|
|||
|
||||
i18n = import('i18n')
|
||||
|
||||
podir = join_paths (meson.source_root (), 'fractal-gtk', 'po')
|
||||
|
||||
subdir('fractal-gtk/po')
|
||||
subdir('fractal-gtk/res')
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ esac
|
|||
sed -i "s/$current/$next/" meson.build
|
||||
sed -i "s/$current/$next/" fractal-gtk/Cargo.toml
|
||||
sed -i "s/$current/$next/" fractal-matrix-api/Cargo.toml
|
||||
sed -i "s/version=\"$current\".*/version=\"$next\" date=\"$(date +%Y-%m-%d)\"\/>/" fractal-gtk/res/org.gnome.Fractal.appdata.xml
|
||||
sed -i "s/version=\"$current\".*/version=\"$next\" date=\"$(date +%Y-%m-%d)\"\/>/" fractal-gtk/res/org.gnome.Fractal.appdata.xml.in
|
||||
|
||||
cargo check
|
||||
|
||||
|
|
Loading…
Reference in a new issue