PipeWire 1.2.5
Loading...
Searching...
No Matches
i18n.h
Go to the documentation of this file.
1/* PipeWire */
2/* SPDX-FileCopyrightText: Copyright © 2021 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef PIPEWIRE_I18N_H
6#define PIPEWIRE_I18N_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
20#include <spa/support/i18n.h>
21
22SPA_FORMAT_ARG_FUNC(1) const char *pw_gettext(const char *msgid);
23SPA_FORMAT_ARG_FUNC(1) const char *pw_ngettext(const char *msgid, const char *msgid_plural, unsigned long int n);
24
25#define _(String) (pw_gettext(String))
26#define N_(String) (String)
27
32#ifdef __cplusplus
33}
34#endif
35
36#endif /* PIPEWIRE_I18N_H */
const char * pw_ngettext(const char *msgid, const char *msgid_plural, unsigned long int n)
Definition pipewire.c:431
const char * pw_gettext(const char *msgid)
Definition pipewire.c:426
#define SPA_FORMAT_ARG_FUNC(arg1)
Definition defs.h:297
spa/support/i18n.h