core-util: Make pa_yes_no() translatable

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=76529
This commit is contained in:
Tanu Kaskinen 2014-03-24 09:17:53 +02:00
parent a9351f1a71
commit cd13fb368d

View file

@ -35,6 +35,8 @@
#include <pulse/gccmacro.h> #include <pulse/gccmacro.h>
#include <pulse/volume.h> #include <pulse/volume.h>
#include <pulsecore/i18n.h>
#include <pulsecore/macro.h> #include <pulsecore/macro.h>
#include <pulsecore/socket.h> #include <pulsecore/socket.h>
@ -90,7 +92,7 @@ int pa_parse_boolean(const char *s) PA_GCC_PURE;
int pa_parse_volume(const char *s, pa_volume_t *volume); int pa_parse_volume(const char *s, pa_volume_t *volume);
static inline const char *pa_yes_no(bool b) { static inline const char *pa_yes_no(bool b) {
return b ? "yes" : "no"; return b ? _("yes") : _("no");
} }
static inline const char *pa_strnull(const char *x) { static inline const char *pa_strnull(const char *x) {