mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
core-util: Make pa_yes_no() translatable
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=76529
This commit is contained in:
parent
a9351f1a71
commit
cd13fb368d
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue