PipeWire  0.3.66
src/pipewire/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
9 extern "C" {
10 #endif
11 
20 #include <spa/support/i18n.h>
21 
22 SPA_FORMAT_ARG_FUNC(1) const char *pw_gettext(const char *msgid);
23 SPA_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 */
SPA_FORMAT_ARG_FUNC(1) const char *pw_gettext(const char *msgid)
spa/support/i18n.h