Merge pull request #60550 from timothyqiu/import-preset-i18n-3.x

This commit is contained in:
Rémi Verschelde 2022-04-27 10:33:36 +02:00 committed by GitHub
commit 360be72d4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -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<ImportOption> *r_options, int p_preset) const {

View file

@ -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<ImportOption> *r_options, int p_preset) const {