Make 'prefix_text' field translatable in default configuration

Created on 2 October 2023, about 1 year ago
Updated 5 January 2024, 11 months ago

Problem/Motivation

Currently, the 'prefix_text' field in the Commerce Agree Terms module's default configuration is not translatable. This limitation poses challenges for websites with multilingual content that require translations for this field. To enhance multilingual support and flexibility, this issue proposes making the 'prefix_text' field translatable.

Steps to reproduce

1. Install and enable the Commerce Agree Terms module.
2. Configure a checkout pane with the 'Agree to the terms and conditions' option.
3. Visit the checkout page.
4. Observe that the 'prefix_text' field, which typically appears as "I agree with the Terms and Conditions," is not translatable in the default configuration.

Proposed resolution

The proposed resolution is to make the 'prefix_text' field translatable within the module's default configuration. This will enable site administrators to customize and translate the prefix text based on their specific language and content requirements. We will achieve this by implementing translatable strings for the 'prefix_text' field and providing translation support in the user interface.

Remaining tasks

- [ ] Implement translatable strings for the 'prefix_text' field.
- [ ] Test the changes thoroughly to ensure they work as expected.

User interface changes

With this enhancement, site administrators will have the ability to translate the 'prefix_text' field within the Commerce Agree Terms module's configuration. This will be accessible through the module's settings in the Drupal admin interface.

API changes

There are no proposed API changes for this issue.

Data model changes

This issue does not introduce changes to the data model.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇳🇱Netherlands Kevin.-

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

Comments & Activities

Production build 0.71.5 2024