mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 20:06:49 +01:00
Make more import preset name translatable
This commit is contained in:
parent
122a796535
commit
5d03519e6d
@ -66,12 +66,12 @@ int ResourceImporterLayeredTexture::get_preset_count() const {
|
|||||||
}
|
}
|
||||||
String ResourceImporterLayeredTexture::get_preset_name(int p_idx) const {
|
String ResourceImporterLayeredTexture::get_preset_name(int p_idx) const {
|
||||||
static const char *preset_names[] = {
|
static const char *preset_names[] = {
|
||||||
"3D",
|
TTRC("3D"),
|
||||||
"2D",
|
TTRC("2D"),
|
||||||
"ColorCorrect"
|
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 {
|
void ResourceImporterLayeredTexture::get_import_options(List<ImportOption> *r_options, int p_preset) const {
|
||||||
|
@ -183,13 +183,13 @@ int ResourceImporterTexture::get_preset_count() const {
|
|||||||
}
|
}
|
||||||
String ResourceImporterTexture::get_preset_name(int p_idx) const {
|
String ResourceImporterTexture::get_preset_name(int p_idx) const {
|
||||||
static const char *preset_names[] = {
|
static const char *preset_names[] = {
|
||||||
"2D, Detect 3D",
|
TTRC("2D, Detect 3D"),
|
||||||
"2D",
|
TTRC("2D"),
|
||||||
"2D Pixel",
|
TTRC("2D Pixel"),
|
||||||
"3D"
|
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 {
|
void ResourceImporterTexture::get_import_options(List<ImportOption> *r_options, int p_preset) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user