summaryrefslogtreecommitdiff
path: root/lang/tests/translations.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-07-12 16:54:48 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-07-12 16:54:48 +0200
commit8714470ebb41abec07e178abf4d4739dcd6087fb (patch)
treeee7a82246286feb80457c96e71a9dd0e88207767 /lang/tests/translations.cpp
parenta1777f0c9b3322592c702293b747404730dd1a70 (diff)
downloadturns-8714470ebb41abec07e178abf4d4739dcd6087fb.tar.xz
turns-8714470ebb41abec07e178abf4d4739dcd6087fb.zip
lang: extract constants for messages
Diffstat (limited to 'lang/tests/translations.cpp')
-rw-r--r--lang/tests/translations.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/lang/tests/translations.cpp b/lang/tests/translations.cpp
deleted file mode 100644
index 1bb78a5..0000000
--- a/lang/tests/translations.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#include <catch2/catch_test_macros.hpp>
-#include <catch2/generators/catch_generators.hpp>
-
-#include <libintl.h>
-
-#include <format>
-#include <string>
-
-TEST_CASE("All supported languages have translations")
-{
- auto message = GENERATE(
- "Turns",
- "Add a participant",
- "No active turn-order",
- "_Quit"
- );
-
- 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);
- }
-}