Ignore the translation of resolutions in the EbtSettingsDefaultWidget

Created on 8 February 2023, almost 2 years ago

Problem/Motivation

Inside of EbtSettingsDefaultWidget that extends WidgetBase we're using a field called "border_radius" and on this field there is an array with few options there, like:

'#options' => [
        'none' => $this->t('None'),
        '1px' => '1px',
        '2px' => '2px',
        '3px' => '3px',
        '4px' => '4px',
        '5px' => '5px',
        '10px' => '10px',
        '15px' => '15px',
        '20px' => '20px',
        '25px' => '25px',
        '30px' => '30px',
        '35px' => '35px',
      ],

It's working but the code verification will say the needs to translate all the string but on that the number is universal and there is no translation

Steps to reproduce

On that case we can mark the php cs to ignore this part with resolutions in the pixel value

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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

Comments & Activities

Production build 0.71.5 2024