1

In header.phtml I add new banner:

<div class="promo hide" id="promo"> <span class="closebtnpr" id="dismiss">x</span>
  <center><b><font color="red">BLACK WEEK!:</font> TYLKO TERAZ <b><font color="red">NAWET DO -63%*</font></b> NA +150 MAREK PREMIUM!</b></center>
</div>

But now this banner is displayed in Polish language on all stores website. How can I translate this banner for others websites stores?

  • first you need to put text like <?php echo __( 'your-context'); ?> and put translation in CSV like magento.stackexchange.com/questions/284768/… – Pawan Nov 24 at 14:41
  • Thank you. You can add answear below. After this I give you vote. – Sylvester Nov 24 at 15:00
  • welcome :) glad to know it worked! – Pawan Nov 24 at 15:14
3

As I said in comment, You need to Add text like:

<?php echo __('your-context'); ?>

After that you need to put translation in CSV file.

For more information about How to add translation You can refer Link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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