From 043178e16bed72bcce8b28a819a81b4e956a9788 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 15 Apr 2021 17:32:44 +0200 Subject: [PATCH] spa: improve i18n method Make the method names match the fields in the method. --- spa/include/spa/support/i18n.h | 4 ++-- spa/plugins/alsa/acp/compat.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spa/include/spa/support/i18n.h b/spa/include/spa/support/i18n.h index 59427b605..37e1c6af2 100644 --- a/spa/include/spa/support/i18n.h +++ b/spa/include/spa/support/i18n.h @@ -64,7 +64,7 @@ struct spa_i18n_methods { }; static inline const char * -spa_i18n_gettext(struct spa_i18n *i18n, const char *msgid) +spa_i18n_text(struct spa_i18n *i18n, const char *msgid) { const char *res = msgid; if (SPA_LIKELY(i18n != NULL)) @@ -75,7 +75,7 @@ spa_i18n_gettext(struct spa_i18n *i18n, const char *msgid) } static inline const char * -spa_i18n_ngettext(struct spa_i18n *i18n, const char *msgid, +spa_i18n_ntext(struct spa_i18n *i18n, const char *msgid, const char *msgid_plural, unsigned long int n) { const char *res = n == 1 ? msgid : msgid_plural; diff --git a/spa/plugins/alsa/acp/compat.h b/spa/plugins/alsa/acp/compat.h index a9580fe07..96846bd01 100644 --- a/spa/plugins/alsa/acp/compat.h +++ b/spa/plugins/alsa/acp/compat.h @@ -590,7 +590,7 @@ static inline char *pa_readlink(const char *p) { extern struct spa_i18n *acp_i18n; -#define _(String) spa_i18n_gettext(acp_i18n, String) +#define _(String) spa_i18n_text(acp_i18n, String) #ifdef gettext_noop #define N_(String) gettext_noop(String) #else