diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-08-06 18:54:13 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-08-06 18:54:13 +0200 |
commit | f1d2bf84089b1e5b5988a5e5d6d571a507a52337 (patch) | |
tree | d0035238b8cd08ab487dbb85f89ed129bd9b2509 /src/pulse/sample.c | |
parent | c4a953dc963fc8522b5ccdc35884fedafad1febe (diff) |
add i18n support
Diffstat (limited to 'src/pulse/sample.c')
-rw-r--r-- | src/pulse/sample.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pulse/sample.c b/src/pulse/sample.c index 4aef5bb0..93da2465 100644 --- a/src/pulse/sample.c +++ b/src/pulse/sample.c @@ -28,9 +28,11 @@ #include <math.h> #include <string.h> +#include <pulse/timeval.h> +#include <pulse/i18n.h> + #include <pulsecore/core-util.h> #include <pulsecore/macro.h> -#include <pulse/timeval.h> #include "sample.h" @@ -126,8 +128,10 @@ char *pa_sample_spec_snprint(char *s, size_t l, const pa_sample_spec *spec) { pa_assert(l); pa_assert(spec); + pa_init_i18n(); + if (!pa_sample_spec_valid(spec)) - pa_snprintf(s, l, "Invalid"); + pa_snprintf(s, l, _("Invalid")); else pa_snprintf(s, l, "%s %uch %uHz", pa_sample_format_to_string(spec->format), spec->channels, spec->rate); |