PipeWire: pipewire/i18n.h Source File

PipeWire 1.6.7

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#include <spa/support/i18n.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
17
22
23 SPA_FORMAT_ARG_FUNC(1) const char *pw_gettext(const char *msgid);
24 SPA_FORMAT_ARG_FUNC(1) const char *pw_ngettext(const char *msgid, const char *msgid_plural, unsigned long int n);
25
26#define _(String) (pw_gettext(String))
27#define N_(String) (String)
28
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif /* PIPEWIRE_I18N_H */
pw_ngettext
const char * pw_ngettext(const char *msgid, const char *msgid_plural, unsigned long int n)
Definition pipewire.c:442
pw_gettext
const char * pw_gettext(const char *msgid)
Definition pipewire.c:437
SPA_FORMAT_ARG_FUNC
#define SPA_FORMAT_ARG_FUNC(arg1)
Definition defs.h:299
i18n.h
spa/support/i18n.h