add i18n support

This commit is contained in:
Wim Taymans 2021-01-08 10:26:46 +01:00
parent a47e3584d3
commit 3c2794dcc9
5 changed files with 25 additions and 8 deletions

View file

@ -53,6 +53,22 @@ executable('pipewire-pulse',
dependencies : [pipewire_dep, ],
)
desktop_file = i18n.merge_file(
input : 'pipewire.desktop.in',
output : 'pipewire.desktop',
po_dir : po_dir,
type : 'desktop',
# install : true,
# install_dir : join_paths(pipewire_sysconfdir, 'xdg', 'autostart')
)
desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,
args: [ desktop_file ],
)
endif
if get_option('systemd') and systemd.found()
subdir('systemd')
endif

View file

@ -1,11 +1,9 @@
[Desktop Entry]
Version=1.0
_Name=PipeWire Media System
_Comment=Start the PipeWire Media System
Name=PipeWire Media System
Comment=Start the PipeWire Media System
Exec=pipewire
Terminal=false
Type=Application
Categories=
GenericName=
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1