Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add display name to chest prefab #5

Merged
merged 2 commits into from Aug 6, 2021

Conversation

jdrueckert
Copy link
Member

Minor adjustment to add a display name for chests.
Especially the feature added in Terasology/Inventory#45 will benefit of this.

@jdrueckert jdrueckert added Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Topic: UI/UX Requests, Issues and Changes related to screens, artwork, sound and overall user experience Type: Chore Request for or implementation of maintenance changes labels Aug 5, 2021
@jdrueckert jdrueckert self-assigned this Aug 5, 2021
@jdrueckert
Copy link
Member Author

Copy link
Contributor

@skaldarnar skaldarnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can make it translatable 🙃

@@ -1,4 +1,7 @@
{
"DisplayName": {
"name": "Chest"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this translatable?

@@ -1,4 +1,7 @@
{
"DisplayName": {
"name": "${coreadvancedassets:game#furnishings-chest}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One drawback of this approach is that if a screen just renders this value as a text without an explicit call to TranslationSystem#translate(...) this unreadable string will show up...

I don't understand (yet) why using this reference string in a .ui file directly is automatically translated, but we return this string in a programmatic binding it is not. 🤔

See https://github.com/Terasology/Inventory/pull/45/files#diff-04de2f5098d10bdd839f6f8c99d30807432d03ca23c6eebe36ab5a715341109bR11

@jdrueckert jdrueckert merged commit 56daaab into develop Aug 6, 2021
@jdrueckert jdrueckert deleted the feat/add-chest-displayname branch August 6, 2021 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content Topic: UI/UX Requests, Issues and Changes related to screens, artwork, sound and overall user experience Type: Chore Request for or implementation of maintenance changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants