From cd13fb368dd5ee286f83eba500098c37b0df28f0 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Mon, 24 Mar 2014 09:17:53 +0200 Subject: [PATCH] core-util: Make pa_yes_no() translatable BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=76529 --- src/pulsecore/core-util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h index e6cb261b..9596b975 100644 --- a/src/pulsecore/core-util.h +++ b/src/pulsecore/core-util.h @@ -35,6 +35,8 @@ #include #include + +#include #include #include @@ -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); 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) { -- 2.39.2