Problem/Motivation

On the sites I manage, I want to change "Reference" to "Publication" and "Reference entities" to "Publications". Other site owners may want to change "Reference entities" to "References" or make similar changes.

This should be easy with string overrides defined in settings.php.

Proposed resolution

Define the collection label "Reference entities" in modules/bibcite_entity/src/Entity/Reference.php. By default, this will not have any effect since that is the same as the fallback collection label. But adding a string override for "Reference entities" to settings.php will have the desired effect.

Remaining tasks

User interface changes

None, unless the site defines a string override

API changes

None

Data model changes

None

Issue fork bibcite-3567062

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

benjifisher created an issue. See original summary.

benjifisher’s picture

Assigned: benjifisher » Unassigned
Status: Active » Needs review

MR !52 implements the Proposed resolution.

clairero’s picture

Reviewed and tested the patch. It works as intended

Testing notes:
1. Added the string overrides in settings.php on a site that has the Trash module enabled..
2. Verified that /admin/content/trash labels remains unchanged.
3. Verified that /admin/content/trash/bibcite_reference now reflects the overrides. For example:

  • "Reference" label is changed to "Publication"
  • "Reference entities" is changed to "Publications"
  • "Reference type" is changed to "Publication type"
clairero’s picture

Status: Needs review » Reviewed & tested by the community
benjifisher’s picture

@clairero: Thanks for reviewing this issue.

Full disclosure: @clairero and I are working on the same project.

mark_fullmer made their first commit to this issue’s fork.

mark_fullmer’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.