diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-12 16:54:48 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-12 16:54:48 +0200 |
| commit | 8714470ebb41abec07e178abf4d4739dcd6087fb (patch) | |
| tree | ee7a82246286feb80457c96e71a9dd0e88207767 /lang/tests/translations.cpp | |
| parent | a1777f0c9b3322592c702293b747404730dd1a70 (diff) | |
| download | turns-8714470ebb41abec07e178abf4d4739dcd6087fb.tar.xz turns-8714470ebb41abec07e178abf4d4739dcd6087fb.zip | |
lang: extract constants for messages
Diffstat (limited to 'lang/tests/translations.cpp')
| -rw-r--r-- | lang/tests/translations.cpp | 29 |
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); - } -} |
