diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-12 15:14:20 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-12 15:14:20 +0200 |
| commit | 44755b2af3e1ea9110735b119e2c7d1538fae46f (patch) | |
| tree | e139e877dd9a6adfb9e80007efce42100de6f103 /test_support/src | |
| parent | 6527e61ada411787fa9f70b9c619aef499e0bf63 (diff) | |
| download | turns-44755b2af3e1ea9110735b119e2c7d1538fae46f.tar.xz turns-44755b2af3e1ea9110735b119e2c7d1538fae46f.zip | |
lang: add translation tests
Diffstat (limited to 'test_support/src')
| -rw-r--r-- | test_support/src/intl_main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test_support/src/intl_main.cpp b/test_support/src/intl_main.cpp new file mode 100644 index 0000000..4a74ac5 --- /dev/null +++ b/test_support/src/intl_main.cpp @@ -0,0 +1,13 @@ +#include <catch2/catch_session.hpp> + +#include <libintl.h> + +auto main(int argc, char * argv[]) -> int +{ + setlocale(LC_ALL, ""); + bindtextdomain("turns", TESTLOCALEDIR); + bind_textdomain_codeset("turns", "UTF-8"); + textdomain("turns"); + + return Catch::Session().run(argc, argv); +}
\ No newline at end of file |
