Hello i cant to translate this one http://prntscr.com/kt3mrb

my code is

<div class="block-content filter-content">
        <?= $block->getChildHtml('state') ?>

        <?php if ($block->getLayer()->getState()->getFilters()): ?>
            <div class="block-actions filter-actions">
                <a href="<?= /* @escapeNotVerified */ $block->getClearUrl() ?>" class="action clear filter-clear"><span><?= /* @escapeNotVerified */ __('Clear All') ?></span></a>
        <?php endif; ?>
        <?php $wrapOptions = false; ?>
        <?php foreach ($block->getFilters() as $filter): ?>
            <?php if (!$wrapOptions): ?>
                <strong role="heading" aria-level="2" class="block-subtitle filter-subtitle"><?= /* @escapeNotVerified */ __('Shopping Options') ?></strong>
                <dl class="filter-options" id="narrow-by-list">
            <?php $wrapOptions = true; endif; ?>
                <?php if ($filter->getItemsCount()): ?>
                    <dt role="heading" aria-level="3" class="filter-options-title"><?= $block->escapeHtml(__($filter->getName())) ?></dt>
                    <dd class="filter-options-content"><?= /* @escapeNotVerified */ $block->getChildBlock('renderer')->render($filter) ?></dd>
                <?php endif; ?>
        <?php endforeach; ?>
        <?php if ($wrapOptions): ?>
        <?php endif; ?>

and my translate is

"Filter","Φιλτράρετε με",module,Magento_Catalog

any suggest?

  • What is the actual text(attribute name) which is saved in admin? And how many languages you are using? Commented Sep 11, 2018 at 12:41
  • i have english and greek as languages from the attribute takes only By
    – darkattack
    Commented Sep 11, 2018 at 14:00
  • What is the default language in admin? Commented Sep 11, 2018 at 14:00
  • they set greek as default...
    – darkattack
    Commented Sep 11, 2018 at 14:02
  • ok, there is already an option to change the text by store view for every attributes. Commented Sep 11, 2018 at 14:03

1 Answer 1


As per the code you have used in your view.phtml you need to use the below code in your csv file:

Filter by "%1", YOUR TEXT "%1"


Filter by '%1', YOUR TEXT '%1'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.