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
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
Comment #3
benjifisherMR !52 implements the Proposed resolution.
Comment #4
clairero commentedReviewed 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:
Comment #5
clairero commentedComment #6
benjifisher@clairero: Thanks for reviewing this issue.
Full disclosure: @clairero and I are working on the same project.
Comment #8
mark_fullmer