Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 066212e

Browse files
authored
Merge pull request #7691 from magento/arnoudhgz-patch-1
Use updated way on how echo is done in phtml
2 parents e640ffe + 2e65e7e commit 066212e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guides/v2.3/frontend-dev-guide/translations/translate_theory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ To ensure that your new string is added to the dictionary and translated, use th
1818
For example:
1919

2020
```php
21-
<?php echo __('Create Backup') ?>
21+
<?= __('Create Backup') ?>
2222
```
2323

2424
If your string contains a variable, to add a placeholder for this variable in the dictionary, use syntax similar to the following:
2525

2626
```php
27-
<?php echo __('Hello %1', $yourVariable) ?>
27+
<?= __('Hello %1', $yourVariable) ?>
2828
```
2929

3030
In this example, the _'Hello %1'_ string is added to the dictionary when the i18n tool is run.

0 commit comments

Comments
 (0)