0ad/source/third_party/tinygettext
Ralph Sennhauser 58219b974c
Fix trailing whitespace and add pre-commit hook
Some have their editor configured to remove trailing whitespace and
editing such a file would "fix" it, adding an unrelated change.

Fix whitespace violations excluding third party libs and generated files
like glad or patches.

Enable pre-commit hook trailing-whitespace to enforce it in the future.

Fixes: #8016
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-06-15 20:08:48 +02:00
..
include/tinygettext Update tinygettext to match upstream. 2020-12-07 13:15:31 +00:00
src Fix trailing whitespace and add pre-commit hook 2025-06-15 20:08:48 +02:00
LICENSE.md Update tinygettext. 2015-06-01 01:09:19 +00:00
README.md Update tinygettext. 2015-06-01 01:09:19 +00:00

tinygettext

tinygettext is a minimal replacement for gettext written in C++. It can read .po files directly and doesn't need .mo files generated from .po. It also can read the .po files from arbitary locations, so it's better suited for non-Unix systems and situations in which one wants to store or distribute .po files seperately from the software itself. It is licensed under zlib license.

The latest version can be found at:

Detecting the locale setting

Different operating systems store the default locale in different places; a portable way to find it is provided by FindLocale: