mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
acp: get i18n interface from support and use it
Save the i18n interface in a global variable. Make acp use the support interface when translating strings.
This commit is contained in:
parent
0b5741e725
commit
3babedec9c
3 changed files with 16 additions and 2 deletions
|
|
@ -586,8 +586,16 @@ static inline char *pa_readlink(const char *p) {
|
|||
#endif
|
||||
}
|
||||
|
||||
#define _(...) (__VA_ARGS__)
|
||||
#define N_(...) (__VA_ARGS__)
|
||||
#include <spa/support/i18n.h>
|
||||
|
||||
extern struct spa_i18n *acp_i18n;
|
||||
|
||||
#define _(String) spa_i18n_gettext(acp_i18n, String)
|
||||
#ifdef gettext_noop
|
||||
#define N_(String) gettext_noop(String)
|
||||
#else
|
||||
#define N_(String) (String)
|
||||
#endif
|
||||
|
||||
#include "channelmap.h"
|
||||
#include "volume.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue