Skip to content

[3.0] Preserve explicit personal message menu labels - #9905

Open
mattago93 wants to merge 1 commit into
SimpleMachines:release-3.0from
mattago93:fix-9362-pm-menu-labels
Open

mattago93 wants to merge 1 commit into
SimpleMachines:release-3.0from
mattago93:fix-9362-pm-menu-labels

Conversation

@mattago93

Copy link
Copy Markdown

Fixes #9362, where personal message menu items display internal identifiers such as send, sent, prune, manlabels, and manrules instead of their translated labels.

Menu::buildArea() previously discarded an explicitly supplied label if it was not recognized as a language key, falling back to the area ID.

This change preserves explicitly supplied labels while maintaining language-key resolution for areas without a label.

Also capitalizes "Manage Labels" consistently in the English language file.

Verification:

  • 8 isolated PHP regression checks passed.
  • Added a PHPUnit regression test covering translated labels, custom labels, and fallback behavior.
  • Confirmed the branch contains one signed-off commit.
  • The full PHPUnit suite and Composer lint have not been run.

Issues References (Fixes|Related|Closes)

Fixes #9362

Keep provided area labels when they are already translated, rather
than replacing them with the internal menu area ID. This restores
readable PM menu labels and corrects the English Manage Labels title.

Add a focused regression test for explicit labels and default fallback.

Fixes SimpleMachines#9362

Signed-off-by: Mattia Agostini <agostini.19@gmail.com>
@github-actions github-actions Bot added Localization Language & internationalization Unit Testing labels Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Localization Language & internationalization Unit Testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[3.0]: Missing/non-capitalized language strings

1 participant