mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
core-util, pactl: Make one localised and one non-localised version of pa_yes_no
We currently use pa_yes_no to write module arguments, so they can not be localised. Instead add a new pa_yes_no_localised function and use it in pactl (and thus, revert all other places to use the non-localised version). BugLink: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1445358 Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
b5ee6280d6
commit
17e939dc15
2 changed files with 14 additions and 10 deletions
|
|
@ -90,6 +90,10 @@ int pa_parse_boolean(const char *s) PA_GCC_PURE;
|
|||
int pa_parse_volume(const char *s, pa_volume_t *volume);
|
||||
|
||||
static inline const char *pa_yes_no(bool b) {
|
||||
return b ? "yes" : "no";
|
||||
}
|
||||
|
||||
static inline const char *pa_yes_no_localised(bool b) {
|
||||
return b ? _("yes") : _("no");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue