diff --git a/src/tools/meson.build b/src/tools/meson.build index 57aafd5d..5ed224e7 100644 --- a/src/tools/meson.build +++ b/src/tools/meson.build @@ -1,7 +1,7 @@ executable('wpctl', 'wpctl.c', install: true, - dependencies : [gobject_dep, gio_dep, wp_dep, pipewire_dep], + dependencies : [gobject_dep, gio_dep, wp_dep, pipewire_dep, libintl_dep], ) install_data('shell-completion/wpctl.zsh', diff --git a/src/tools/wpctl.c b/src/tools/wpctl.c index 4a9429bf..c4a4199e 100644 --- a/src/tools/wpctl.c +++ b/src/tools/wpctl.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -1431,6 +1432,7 @@ print_setting (WpSettings *s, const gchar *key) g_autoptr (WpSpaJson) value = NULL; g_autoptr (WpSpaJson) saved = NULL; g_autoptr (WpSettingsSpec) spec = NULL; + const gchar *name; const gchar *desc; WpSettingsSpecType val_type; g_autoptr (WpSpaJson) def = NULL; @@ -1440,6 +1442,7 @@ print_setting (WpSettings *s, const gchar *key) value = wp_settings_get (s, key); saved = wp_settings_get_saved (s, key); spec = wp_settings_get_spec (s, key); + name = wp_settings_spec_get_name (spec); desc = wp_settings_spec_get_description (spec); val_type = wp_settings_spec_get_value_type (spec); def = wp_settings_spec_get_default_value (spec); @@ -1447,10 +1450,11 @@ print_setting (WpSettings *s, const gchar *key) max = wp_settings_spec_get_max_value (spec); /* print key */ - printf ("- Name: %s\n", key); + printf ("- Id: %s\n", key); /* print spec */ - printf (" Desc: %s\n", desc); + printf (" Name: %s\n", dgettext (GETTEXT_PACKAGE, name)); + printf (" Desc: %s\n", dgettext (GETTEXT_PACKAGE, desc)); printf (" Type: %s\n", settings_spec_type_to_string (val_type)); printf (" Default: %s", wp_spa_json_get_data (def)); if (min && max)