[pulseaudio-commits] src/pulsecore

Tanu Kaskinen tanuk at kemper.freedesktop.org
Mon Mar 24 00:18:38 PDT 2014


 src/pulsecore/core-util.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit cd13fb368dd5ee286f83eba500098c37b0df28f0
Author: Tanu Kaskinen <tanu.kaskinen at linux.intel.com>
Date:   Mon Mar 24 09:17:53 2014 +0200

    core-util: Make pa_yes_no() translatable
    
    BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=76529

diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h
index e6cb261..9596b97 100644
--- a/src/pulsecore/core-util.h
+++ b/src/pulsecore/core-util.h
@@ -35,6 +35,8 @@
 
 #include <pulse/gccmacro.h>
 #include <pulse/volume.h>
+
+#include <pulsecore/i18n.h>
 #include <pulsecore/macro.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);
 
 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) {



More information about the pulseaudio-commits mailing list