From 5d150559a3ad5aa06ed9f6dcee840df6ea38fa53 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 27 Apr 2022 13:50:59 +0800 Subject: [PATCH] Make more import preset name translatable --- editor/import/resource_importer_layered_texture.cpp | 8 ++++---- editor/import/resource_importer_texture.cpp | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/editor/import/resource_importer_layered_texture.cpp b/editor/import/resource_importer_layered_texture.cpp index 341510ba99c..5c980a9b826 100644 --- a/editor/import/resource_importer_layered_texture.cpp +++ b/editor/import/resource_importer_layered_texture.cpp @@ -65,12 +65,12 @@ int ResourceImporterLayeredTexture::get_preset_count() const { } String ResourceImporterLayeredTexture::get_preset_name(int p_idx) const { static const char *preset_names[] = { - "3D", - "2D", - "ColorCorrect" + TTRC("3D"), + TTRC("2D"), + TTRC("ColorCorrect"), }; - return preset_names[p_idx]; + return TTRGET(preset_names[p_idx]); } void ResourceImporterLayeredTexture::get_import_options(List *r_options, int p_preset) const { diff --git a/editor/import/resource_importer_texture.cpp b/editor/import/resource_importer_texture.cpp index 784574eef38..3eb6bbf0466 100644 --- a/editor/import/resource_importer_texture.cpp +++ b/editor/import/resource_importer_texture.cpp @@ -182,13 +182,13 @@ int ResourceImporterTexture::get_preset_count() const { } String ResourceImporterTexture::get_preset_name(int p_idx) const { static const char *preset_names[] = { - "2D, Detect 3D", - "2D", - "2D Pixel", - "3D" + TTRC("2D, Detect 3D"), + TTRC("2D"), + TTRC("2D Pixel"), + TTRC("3D"), }; - return preset_names[p_idx]; + return TTRGET(preset_names[p_idx]); } void ResourceImporterTexture::get_import_options(List *r_options, int p_preset) const {