Skip to content

Fix shop translations and unify untranslated message alerts. #5312

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

Merged
merged 4 commits into from
Apr 7, 2025

Conversation

Pepper0ni
Copy link
Contributor

@Pepper0ni Pepper0ni commented Apr 3, 2025

fixes #5305
Changes the randomised shop item translations to properly show prices, and for the flavor text to always show use 2 lines.
This is done with changes to how CustomMessage handles supplied languages, going from checking for an empty string to an explicit control message, and then changing the output of replace if that message exists. This message is defined as TODO_TRANSLATE.

Elsewhere in the code where translations were missing they were either removed completely with TODO_TRANSLATED added nearby as a comment, or had it explicitly declared.

I also added a cast to suppress a warning in CustomMessage::GetForCurrentLanguage.

Build Artifacts

Copy link
Member

@PurpleHato PurpleHato left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@leggettc18 leggettc18 left a comment

Choose a reason for hiding this comment

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

Don't love the string compares, but doing anything different would require much larger changes so this is fine for now.

@leggettc18 leggettc18 merged commit c351a2c into HarbourMasters:develop-blair Apr 7, 2025
6 checks passed
Varuuna pushed a commit to Varuuna/Shipwright that referenced this pull request Apr 12, 2025
…Masters#5312)

* try to fix messages, crashing on vanilla text

* oops

* adjust shop flavor translations to better fit on 2 lines

* run clang format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants