summaryrefslogtreecommitdiff
path: root/core/translation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/translation.cpp')
-rw-r--r--core/translation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/translation.cpp b/core/translation.cpp
index 85e207e08d..ee0ef2ea09 100644
--- a/core/translation.cpp
+++ b/core/translation.cpp
@@ -672,9 +672,11 @@ void TranslationServer::set_tool_translation(const Ref<Translation>& p_translati
StringName TranslationServer::tool_translate(const StringName& p_message) const {
if (tool_translation.is_valid()) {
- StringName r = tool_translation->tr(p_message);
- if (r)
+ StringName r = tool_translation->get_message(p_message);
+
+ if (r) {
return r;
+ }
}
return p_message;