From 44755b2af3e1ea9110735b119e2c7d1538fae46f Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 12 Jul 2024 15:14:20 +0200 Subject: lang: add translation tests --- test_support/src/intl_main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test_support/src/intl_main.cpp (limited to 'test_support/src') 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 + +#include + +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 -- cgit v1.2.3