Make dektop file i18n.

This commit is contained in:
Danial Behzadi
2024-09-28 03:32:15 +03:30
parent 14cdbef81c
commit ba64ff224e
3 changed files with 12 additions and 2 deletions

View File

@@ -33,9 +33,18 @@ is_linux = ['linux'].contains(host_machine.system())
is_windows = ['windows'].contains(host_machine.system()) is_windows = ['windows'].contains(host_machine.system())
if is_linux if is_linux
install_subdir('applications', desktop_file = i18n.merge_file(
install_dir: join_paths(prefix, datadir) input: 'applications/com.github.rafostar.Clapper.desktop.in',
output: 'com.github.rafostar.Clapper.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: get_option('datadir') / 'applications'
) )
desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils, args: [desktop_file])
endif
subdir('dbus-1') subdir('dbus-1')
endif endif

View File

@@ -1,3 +1,4 @@
src/bin/clapper-app/data/applications/com.github.rafostar.Clapper.desktop.in
src/bin/clapper-app/ui/clapper-app-audio-stream-list-item.ui src/bin/clapper-app/ui/clapper-app-audio-stream-list-item.ui
src/bin/clapper-app/ui/clapper-app-headerbar.ui src/bin/clapper-app/ui/clapper-app-headerbar.ui
src/bin/clapper-app/ui/clapper-app-help-overlay.ui src/bin/clapper-app/ui/clapper-app-help-overlay.ui