summaryrefslogtreecommitdiff
path: root/lang/tests/messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/tests/messages.cpp')
-rw-r--r--lang/tests/messages.cpp72
1 files changed, 0 insertions, 72 deletions
diff --git a/lang/tests/messages.cpp b/lang/tests/messages.cpp
deleted file mode 100644
index cecb038..0000000
--- a/lang/tests/messages.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-#include "turns/lang/messages.hpp"
-
-#include <catch2/catch_test_macros.hpp>
-#include <catch2/generators/catch_generators.hpp>
-
-#include <libintl.h>
-
-#include <clocale>
-#include <format>
-#include <string>
-
-namespace turns::lang::tests
-{
-
- TEST_CASE("Translated messages")
- {
- auto locale = GENERATE("de_CH.UTF-8", "de_DE.UTF-8", "de_AT.UTF-8");
- setlocale(LC_ALL, locale);
-
- SECTION(std::format("Locale '{}'", locale))
- {
- auto message = GENERATE(add_participant,
- cancel,
- clear,
- delete_participant,
- disposition,
- disposition_colors,
- edit_participant,
- end_turn_order,
- finish,
- flow,
- friendly,
- hostile,
- main_menu,
- mark_as_defeated,
- // a better solution is required to test the following entry:
- // name,
- new_turn_order_file_name,
- next_participant,
- no_active_turn_order,
- open,
- preferences,
- preferences_mnemonic,
- previous_participant,
- priority,
- priority_number,
- question_clear_turn_order,
- quit,
- reset,
- save,
- save_as,
- saving_failed_format,
- secret,
- skip_defeated,
- start_turn_order,
- stop,
- stop_and_clear,
- stop_turn_order,
- successfully_opened_format,
- successfully_saved_format,
- round_number,
- turns,
- turns_files);
-
- SECTION(std::format("has a translation for '{}'", message))
- {
- REQUIRE(std::string{gettext(message)} != message);
- }
- }
- }
-
-} // namespace turns::lang::tests \ No newline at end of file