summaryrefslogtreecommitdiff
path: root/lang/tests/tooltips.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/tests/tooltips.cpp')
-rw-r--r--lang/tests/tooltips.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/lang/tests/tooltips.cpp b/lang/tests/tooltips.cpp
deleted file mode 100644
index 8274487..0000000
--- a/lang/tests/tooltips.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#include "turns/lang/messages.hpp"
-
-#include <catch2/catch_test_macros.hpp>
-#include <catch2/generators/catch_generators.hpp>
-
-#include <format>
-#include <string>
-
-#include <libintl.h>
-
-namespace turns::lang::tests
-{
-
- TEST_CASE("Tooltip translations")
- {
- // clang-format off
- auto message = GENERATE(
- tooltips::add_a_participant,
- tooltips::main_menu,
- tooltips::mark_as_defeated
- );
-
- 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);
- }
- }
-
-} // namespace turns::lang::tests \ No newline at end of file