]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/core-util.h
core-util: Make pa_yes_no() translatable
[pulseaudio] / src / pulsecore / core-util.h
index e6cb261bbddc98669043ec30eb418fe304f4beb9..9596b97541cf97c6a9b7065110bd7af2dfa6ed56 100644 (file)
@@ -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) {