Inject and allow for the translation of the modules various strings

Created on 5 May 2023, about 1 year ago
Updated 19 May 2023, about 1 year ago

Problem/Motivation

The module uses the translate function in places and should use the injected service.
Not all strings are made available for translation, these should also use the translation service.
e.g.: $this->t("Site Guardian has not been activated for this site. Please contact a site administrator.")

Steps to reproduce

View the code
Install the module
Try to translate the various strings

Proposed resolution

Replace the translation function with the injected service and make all strings translatable.

Remaining tasks

Find all strings
Ensure they are available to the translation service
Replace the translation function with the injected service

User interface changes

More strings available

API changes

As above

Data model changes

None

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom the_g_bomb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024