Merge pull request #69695 from timothyqiu/id-capitalization

Make ID capitalization in tiles editor consistent
This commit is contained in:
Rémi Verschelde 2022-12-07 13:23:49 +01:00
commit 04cd36612a
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 5 additions and 5 deletions

View file

@ -236,7 +236,7 @@ void AtlasMergingDialog::update_tile_set(Ref<TileSet> p_tile_set) {
if (atlas_source.is_valid()) { if (atlas_source.is_valid()) {
Ref<Texture2D> texture = atlas_source->get_texture(); Ref<Texture2D> texture = atlas_source->get_texture();
if (texture.is_valid()) { if (texture.is_valid()) {
String item_text = vformat("%s (id:%d)", texture->get_path().get_file(), source_id); String item_text = vformat(TTR("%s (ID: %d)"), texture->get_path().get_file(), source_id);
atlas_merging_atlases_list->add_item(item_text, texture); atlas_merging_atlases_list->add_item(item_text, texture);
atlas_merging_atlases_list->set_item_metadata(-1, source_id); atlas_merging_atlases_list->set_item_metadata(-1, source_id);
} }

View file

@ -156,7 +156,7 @@ void TileMapEditorTilesPlugin::_update_tile_set_sources_list() {
// Common to all type of sources. // Common to all type of sources.
if (!source->get_name().is_empty()) { if (!source->get_name().is_empty()) {
item_text = vformat(TTR("%s (id:%d)"), source->get_name(), source_id); item_text = vformat(TTR("%s (ID: %d)"), source->get_name(), source_id);
} }
// Atlas source. // Atlas source.
@ -165,7 +165,7 @@ void TileMapEditorTilesPlugin::_update_tile_set_sources_list() {
texture = atlas_source->get_texture(); texture = atlas_source->get_texture();
if (item_text.is_empty()) { if (item_text.is_empty()) {
if (texture.is_valid()) { if (texture.is_valid()) {
item_text = vformat("%s (ID: %d)", texture->get_path().get_file(), source_id); item_text = vformat(TTR("%s (ID: %d)"), texture->get_path().get_file(), source_id);
} else { } else {
item_text = vformat(TTR("No Texture Atlas Source (ID: %d)"), source_id); item_text = vformat(TTR("No Texture Atlas Source (ID: %d)"), source_id);
} }

View file

@ -151,7 +151,7 @@ void TileSetEditor::_update_sources_list(int force_selected_id) {
// Common to all type of sources. // Common to all type of sources.
if (!source->get_name().is_empty()) { if (!source->get_name().is_empty()) {
item_text = vformat(TTR("%s (id:%d)"), source->get_name(), source_id); item_text = vformat(TTR("%s (ID: %d)"), source->get_name(), source_id);
} }
// Atlas source. // Atlas source.
@ -160,7 +160,7 @@ void TileSetEditor::_update_sources_list(int force_selected_id) {
texture = atlas_source->get_texture(); texture = atlas_source->get_texture();
if (item_text.is_empty()) { if (item_text.is_empty()) {
if (texture.is_valid()) { if (texture.is_valid()) {
item_text = vformat("%s (ID: %d)", texture->get_path().get_file(), source_id); item_text = vformat(TTR("%s (ID: %d)"), texture->get_path().get_file(), source_id);
} else { } else {
item_text = vformat(TTR("No Texture Atlas Source (ID: %d)"), source_id); item_text = vformat(TTR("No Texture Atlas Source (ID: %d)"), source_id);
} }