1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Gettext and plural support for client-side translations (#14726)

---------

Co-authored-by: Ekdohibs <nathanael.courant@laposte.net>
Co-authored-by: y5nw <y5nw@protonmail.com>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
This commit is contained in:
y5nw 2024-10-13 11:29:08 +02:00 committed by GitHub
parent dbbe0ca065
commit e3aa79cffb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 1360 additions and 74 deletions

View file

@ -36,7 +36,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
// the USE_GETTEXT=0 case and can't assume that gettext is installed.
#include <locale>
#define gettext(String) String
#define gettext(String) (String)
#define ngettext(String1, String2, n) ((n) == 1 ? (String1) : (String2))
#endif
#define _(String) gettext(String)