Skip to content

Consolidated getFootprints to aid translation. - #5366

Merged
kwvanderlinde merged 4 commits into
RPTools:developfrom
bubblobill:xLate
Apr 21, 2025
Merged

Consolidated getFootprints to aid translation.#5366
kwvanderlinde merged 4 commits into
RPTools:developfrom
bubblobill:xLate

Conversation

@bubblobill

@bubblobill bubblobill commented Apr 20, 2025

Copy link
Copy Markdown
Collaborator

Identify the Bug or Feature request

fixes #5365
specifically addressing this comment

Description of the Change

Brought similar error messages together under one string with the grid type as an argument.
As the message is used with showError, I added overloads for showError and generateMessage to accept additional parameters.
Since I was consolidating code, I moved all getFootprints from the various grid classes and put them under Grid.

Possible Drawbacks

I may break things unwittingly.

Documentation Notes

N/A

Release Notes

N/A


This change is Reviewable

arguments to the i18n.getText.
Moved getFootprints out of individual Grid classes into Grid.
Consolidated error messages into one string with the grid type passed as
 an argument.
@bubblobill
bubblobill requested a review from cwisniew April 20, 2025 14:31
Comment thread src/main/java/net/rptools/maptool/model/Grid.java Outdated
Comment thread src/main/java/net/rptools/maptool/model/Grid.java Outdated
Comment thread src/main/java/net/rptools/maptool/client/MapTool.java Outdated
@kwvanderlinde
kwvanderlinde added this pull request to the merge queue Apr 21, 2025
Merged via the queue into RPTools:develop with commit 3e41733 Apr 21, 2025
@kwvanderlinde kwvanderlinde moved this from Todo to Merged in MapTool 1.18 Apr 22, 2025
@sentry

sentry Bot commented Apr 27, 2025

Copy link
Copy Markdown

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ IllegalArgumentException: can't parse argument number: 20D04FE0-3AEA-1069-A2D8-08002B30309D net.rptools.maptool.language.I18N in getText View Issue

Did you find this useful? React with a 👍 or 👎

@cwisniew cwisniew added the bug label May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

Consolidate grid footprint errors into one string

3 participants