10000 Fix "Type::" double colon in block tooltip · endlessm/godot-block-coding@6a13a71 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a13a71

Browse files
committed
Fix "Type::" double colon in block tooltip
In commit 3e208d7, the string "Type:" was extracted from the template string to be translated separately, including The colon. It is correct for the colon to be part of the translatable string, because (for example) in French there must be a non-breaking space between the word and the colon. However, there was also a stray colon in the template string. Remove it.
1 parent da44907 commit 6a13a71

File tree

1 file changed

+1
-1
lines changed
  • addons/block_code/ui/blocks/block

1 file changed

+1
-1
lines changed

addons/block_code/ui/blocks/block/block.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func _get_tooltip(at_position: Vector2) -> String:
221221
if definition.variant_type == Variant.Type.TYPE_NIL:
222222
return description_tx
223223

224-
return "{description}\n\n{type_field}: [b]{type}[/b]".format({"description": description_tx, "type_field": tr("Type:"), "type": type_string(definition.variant_type)})
224+
return "{description}\n\n{type_field} [b]{type}[/b]".format({"description": description_tx, "type_field": tr("Type:"), "type": type_string(definition.variant_type)})
225225

226226

227227
func _make_custom_tooltip(for_text) -> Control:

0 commit comments

Comments
 (0)
0