Skip to content

Commit

Permalink
Merge pull request #492 from danialbehzadi/i18n
Browse files Browse the repository at this point in the history
Make dektop file i18n.
  • Loading branch information
Rafostar authored Nov 22, 2024
2 parents 8e6599a + e81bcb2 commit cca4b00
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/bin/clapper-app/data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,18 @@ is_linux = ['linux'].contains(host_machine.system())
is_windows = ['windows'].contains(host_machine.system())

if is_linux
install_subdir('applications',
install_dir: join_paths(prefix, datadir)
desktop_file = i18n.merge_file(
input: 'applications/com.github.rafostar.Clapper.desktop.in',
output: 'com.github.rafostar.Clapper.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(prefix, 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')
endif

Expand Down
1 change: 1 addition & 0 deletions src/bin/clapper-app/po/POTFILES
Original file line number Diff line number Diff line change
@@ -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-headerbar.ui
src/bin/clapper-app/ui/clapper-app-help-overlay.ui
Expand Down

0 comments on commit cca4b00

Please sign in to comment.