From 22affd3c791679f05ccde937a1804ecb3f5bf5e2 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 14 Jul 2024 12:31:24 +0200 Subject: app/gui: add translations for create participant dialog --- lang/tests/buttons.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lang/tests/buttons.cpp (limited to 'lang/tests/buttons.cpp') diff --git a/lang/tests/buttons.cpp b/lang/tests/buttons.cpp new file mode 100644 index 0000000..b016ecf --- /dev/null +++ b/lang/tests/buttons.cpp @@ -0,0 +1,29 @@ +#include "turns/lang/messages.hpp" + +#include +#include + +#include +#include + +#include + +namespace turns::lang::tests +{ + + TEST_CASE("Button translations") + { + auto message = GENERATE( + buttons::finish + ); + + auto locale = GENERATE("de_CH.UTF-8", "de_DE.UTF-8", "de_AT.UTF-8"); + + SECTION(std::format("'{}' has a translation in '{}'", message, locale)) + { + setlocale(LC_ALL, locale); + REQUIRE(std::string{gettext(message)} != message); + } + } + +} // namespace turns::lang::tests \ No newline at end of file -- cgit v1.2.3