这是indexloc提供的服务,不要输入任何密码
Skip to content

Missing translation on the PreviewDialog.gd #326

@GustavoLR548

Description

@GustavoLR548

Describe the bug
In the PreviewDialog.gd there is a text that is not possible to translate and that should be "translatable", which is the text that displays what was loaded from the preview window

To Reproduce
Steps to reproduce the behavior:

  1. Go to tabletop-club/game/Scripts/Game/UI/Dialogs/PreviewDialog.gd

See line 70 and 72 where the text is changed

	if num_pieces == 0:
		pass
	elif num_pieces == 1:
		_status.text = status_text_one % entry_name
	else:
		_status.text = status_text_multiple % previews_selected.size()

Expected behavior

Change to this, and add the possibility to translate the "Loaded %s." and "Loaded %d assets."

	if num_pieces == 0:
		pass
	elif num_pieces == 1:
		_status.text = tr(status_text_one) % entry_name
	else:
		_status.text = tr(status_text_multiple) % previews_selected.size()

Screenshots
See Expected Behavior

Environment
Windows 10 Pro 22H2

Version
master

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguiRelated to the UI

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions