gettext-pseudolocale mangles English/ASCII text into something that makes internationalisation issues obvious, similarly to Android's pseudolocales feature.
This is implemented as an
LD_PRELOAD shared library.
$ mkdir build $ cd build $ meson .. $ ninja
PSEUDOLOCALE_MODE=rtl LD_PRELOAD=gettext-pseudolocale.so myapplication
PSEUDOLOCALE_MODE can be one of:
ltr: mangled and bracketed English looking text (default if
rtl: Right-to-left English text
The shared library overrides libintl calls, which are usually part of the glibc DSO on Linux systems. This software has not been tested on anything but Linux.
This code is under the same license as the glibc itself (GNU Lesser General Public License v 2.1)
See the glibc license for details: http://www.gnu.org/software/libc/manual/html_mono/libc.html#Copying
The current mangle table is based on the “Bent” effect from Lunicode.js,
bent.h for details.
Copyright Bastien Nocera <email@example.com> 2019