From dd29d79e30d0da8eae54bb0f84e8fa041ef75664 Mon Sep 17 00:00:00 2001 From: nikitalita <69168929+nikitalita@users.noreply.github.com> Date: Wed, 20 Nov 2024 08:04:33 -0600 Subject: [PATCH] allow duplicate keys in translations --- exporters/translation_exporter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporters/translation_exporter.cpp b/exporters/translation_exporter.cpp index d98fa6c5d..13811035c 100644 --- a/exporters/translation_exporter.cpp +++ b/exporters/translation_exporter.cpp @@ -254,8 +254,8 @@ Ref TranslationExporter::export_resource(const String &output_dir, WARN_PRINT(vformat("Found matching key '%s' for message '%s' but key is used for message '%s'", matching_key, msg, key_to_message[matching_key])); } else { print_verbose(vformat("WARNING: Found duplicate key '%s' for message '%s'", matching_key, msg)); - // keys.push_back(matching_key); - // continue; + keys.push_back(matching_key); + continue; } } else { print_verbose(vformat("Could not find key for message '%s'", msg));