From b35a847109f88c2b6afd0bd4998f8a93e088335d Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 23 Jul 2023 11:18:45 +0800 Subject: [PATCH] Make blend file importer warnings translatable --- modules/gltf/register_types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gltf/register_types.cpp b/modules/gltf/register_types.cpp index 87149fa11dd..1788ffac3ae 100644 --- a/modules/gltf/register_types.cpp +++ b/modules/gltf/register_types.cpp @@ -70,9 +70,9 @@ static void _editor_init() { if (blend_enabled) { Ref da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); if (blender3_path.is_empty()) { - WARN_PRINT("Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported."); + WARN_PRINT(TTR("Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.")); } else if (!da->dir_exists(blender3_path)) { - WARN_PRINT("Blend file import is enabled, but the Blender path doesn't point to an accessible directory. Blend files will not be imported."); + WARN_PRINT(TTR("Blend file import is enabled, but the Blender path doesn't point to an accessible directory. Blend files will not be imported.")); } else { Ref importer; importer.instantiate();