Why some translation is invalid, the other is valid in same file?
In magento2, there are much magical thing. That is, in the same file, some translation is valid, the other is invalid(not display the locale text). For example:
- In app/code/Mage/Backend/view/adminhtml/widget/grid/extended.phtml, the translation of 'View'(line 99) and 'per page'(line 118) is invalid.
- In app/code/Mage/Backend/Block/Widget/Grid/Extended.php, the translation of 'Search'(line 214) is invalid.
I use zh_CN, in the locale file, both the valid and the invalid translation all exist.
Hello. What do you mean by valid/invalid translations? Is it quality of translator work? The files were translated by more than 1 person which could cause such issues.
In the same file, some text was translated, the other text was not translated.
Hi, If someone collects non-translated texts they will be corrected?
Example: app\code\Mage\Persistent\view\frontend\remember_me_tooltip.phtml What's this? --> __('What\'s this?'); ?>
We will update translations when preparing the release version. So far I can tell you that for cases when the string is not localized, means there is no translation and the English key is used for displaying the localized string.