- π§πͺBelgium weseze
2 remarks on this approach:
Templates that are stored in the library should have the language from the host entity from which they were cloned.
With the changes you are proposing this could differ. Assume you are editing a page in a certain language (Chinese), while keeping the admin interface in another language (English). The current language would be English, but the template you are storing in the library should remain in the Chinese language, because it was cloned from a Chinese language page.Templates cloned into a page from the library should take on the language of the entity on which they are cloned.
This is basically the same as the above, but in reverse.
It also applies when you are simply translating your website and using templates created in another language.I suggest passing the host entity to the clone functions and getting the language from there.
But I don't see anyway of doing that with the current code as it does not contain the host entity anywhere... - π§πͺBelgium Thomas Cys
Thomas Cys β made their first commit to this issueβs fork.
- Open on Drupal.org βCore: 10.1.4 + Environment: PHP 8.1 & MySQL 8last update
7 months ago Waiting for branch to pass - last update
7 months ago 2 fail