Generated with the help of an LLM.

Problem/Motivation

Part of #3621315: Plan: Pattern presets: one noun, preset, in every user-facing string.

The Libraries tab, the menu and the permission title already say "Presets".

The admin pages, the entity type labels and a few descriptions still say "Pattern preset".

Proposed resolution

Say "preset" in these strings:

  • src/Entity/PatternPreset.php: the four entity type labels.
  • display_builder_ui/src/Plugin/display_builder/Buildable/PatternPreset.php: the buildable label.
  • display_builder_ui.routing.yml: the four page titles, list, add, edit and delete.
  • display_builder_ui.links.menu.yml: both descriptions. "Available Pattern preset created." also needs rewording.
  • display_builder.permissions.yml: the description of administer pattern preset.
  • display_builder_ui.info.yml: the module description.
  • PresetLibraryPanel.php: the empty state line.
  • help_panel.twig: the documentation link title.

Update the matching msgids in translations/fr.po and translations/zh-hans.po, ten entries each, or those translations are lost.

pattern_preset stays as the machine name and config prefix. The permission machine name administer pattern preset stays too: roles store it.

Remaining tasks

  • Change the strings and the two .po files.
  • Grep the tests for asserted titles.
  • Optional: the headings in docs/, ten files.

User interface changes

Admin titles and labels say "preset" instead of "Pattern preset".

API changes

None. Labels only, no machine name changes.

Data model changes

None.

Comments

mogtofu33 created an issue. See original summary.

mogtofu33’s picture

Issue summary: View changes
mogtofu33’s picture

Issue summary: View changes