Skip to content

Commit d3de96e

Browse files
author
Stanislav Idolov
authored
ENGCOM-1231: [backport] fix translation issue with rating stars #14524
2 parents 63055ea + 83968d1 commit d3de96e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Review/i18n/en_US.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,5 @@ Summary,Summary
131131
"Allow Guests to Write Reviews","Allow Guests to Write Reviews"
132132
Active,Active
133133
Inactive,Inactive
134+
star,star
135+
stars,stars

app/code/Magento/Review/view/frontend/templates/form.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
<label
4343
class="rating-<?php /* @escapeNotVerified */ echo $iterator; ?>"
4444
for="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>"
45-
title="<?php /* @escapeNotVerified */ echo __('%1 %2', $iterator, $iterator > 1 ? 'stars' : 'star') ?>"
45+
title="<?php /* @escapeNotVerified */ echo __('%1 %2', $iterator, $iterator > 1 ? __('stars') : __('star')) ?>"
4646
id="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>_label">
47-
<span><?php /* @escapeNotVerified */ echo __('%1 %2', $iterator, $iterator > 1 ? 'stars' : 'star') ?></span>
47+
<span><?php /* @escapeNotVerified */ echo __('%1 %2', $iterator, $iterator > 1 ? __('stars') : __('star')) ?></span>
4848
</label>
4949
<?php $iterator++; ?>
5050
<?php endforeach; ?>

0 commit comments

Comments
 (0)