Complete C++ i18n gettext() “hello world” example. sets the LANG environment variable using export before executing the program (Linux):
export LANG=es_MX.utf8
./hellogt
Is there a way to set the language just while executing hellogt, like a command line argument? This would be handy for testing programs.