From 08bbb9cb615f0ecd0d041baacd7a024c1e30db5c Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 12 Jul 2024 17:05:27 +0200 Subject: app: add main menu button tooltip --- lang/tests/tooltips.cpp | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) (limited to 'lang/tests') diff --git a/lang/tests/tooltips.cpp b/lang/tests/tooltips.cpp index 66b6d72..63831c5 100644 --- a/lang/tests/tooltips.cpp +++ b/lang/tests/tooltips.cpp @@ -3,31 +3,34 @@ #include #include -#include - #include #include -namespace turns::lang::tests -{ +#include -TEST_CASE("Tooltip translations") +namespace turns::lang::tests { - auto message = GENERATE( - tooltips::add_a_participant - ); - - auto locale = GENERATE( - "de_CH.UTF-8", - "de_DE.UTF-8", - "de_AT.UTF-8" - ); - SECTION(std::format("'{}' has a translation in '{}'", message, locale)) + TEST_CASE("Tooltip translations") { - setlocale(LC_ALL, locale); - REQUIRE(std::string{gettext(message)} != message); + // clang-format off + auto message = GENERATE( + tooltips::add_a_participant, + tooltips::main_menu + ); + + auto locale = GENERATE( + "de_CH.UTF-8", + "de_DE.UTF-8", + "de_AT.UTF-8" + ); + // clang-format on + + SECTION(std::format("'{}' has a translation in '{}'", message, locale)) + { + setlocale(LC_ALL, locale); + REQUIRE(std::string{gettext(message)} != message); + } } -} -} \ No newline at end of file +} // namespace turns::lang::tests \ No newline at end of file -- cgit v1.2.3