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:
David Henningsson 2015-04-20 17:36:53 +02:00
parent b5ee6280d6
commit 17e939dc15
2 changed files with 14 additions and 10 deletions

View file

@ -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");
}