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

Added 'Strings added in Underscore templates' section to 'Translate theme strings' page #6926

Conversation

sergiy-v
Copy link

Purpose of this pull request

This pull request (PR) adds the 'Strings added in Underscore templates' section to the 'Translate theme strings' page according to the following PR.

Affected DevDocs pages

https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/translations/translate_theory.html

Links to Magento source code

https://github.com/magento/magento2/blob/2.4-develop/lib/web/mage/translate.js#L50
https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Translation/etc/di.xml#L67

@devops-devdocs
Copy link
Collaborator

An admin must run tests on this PR before it can be merged.

<%= _.i18n('Hello') %>
```

- When a string contains a variable, to add a placeholder for this variable to the string stored in the dictionary, use the syntax similar to the following:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, simplify this statement

Suggested change
- When a string contains a variable, to add a placeholder for this variable to the string stored in the dictionary, use the syntax similar to the following:
- When the string contains a variable, use the variable placeholder for processing string stored in the dictionary:

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for suggestion, the changes has been added.

@rogyar rogyar added 2.4.x Magento 2.4.x related changes Technical Updates to the code or processes that alter the technical content of the doc labels Mar 25, 2020
@sergiy-v sergiy-v force-pushed the translate-theory-add-strings-underscore-html branch from 97d9acf to 6a1715e Compare March 25, 2020 15:27
@sergiy-v sergiy-v requested a review from rogyar March 25, 2020 15:29
@dobooth
Copy link
Contributor

dobooth commented Mar 26, 2020

running tests

@dobooth dobooth merged commit c45e5d3 into magento:2.4.0-develop Mar 26, 2020
@ghost
Copy link

ghost commented Mar 26, 2020

Hi @sergiy-v, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.4.x Magento 2.4.x related changes Partner: Atwix partners-contribution PR created by Magento partner Technical Updates to the code or processes that alter the technical content of the doc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants