octobercms / october

Self-hosted CMS platform based on the Laravel PHP Framework.

Home Page:https://octobercms.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Column selectable not translate

winai543 opened this issue · comments

In file: modules/backend/widgets/lists/partials/_column_selectable.php

Line: 27

<?= implode(', ', $selectedValues) ?>

Change To

<?= implode(', ', array_map(function($value){ return e(__($value)); }, $selectedValues)) ?>

Hey @winai543

Thanks for this bug report. It will be fixed in the next patch release (v3.4.14)

BTW - There is an Arr::trans helper for this type of thing:

<?= e(implode(', ', Arr::trans($selectedValues))) ?>

Hopefully it helps!